// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.vmwarecloudsimple.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Host name model. */
@Fluent
public final class CustomizationHostname {
    /*
     * Hostname
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * Type of host name
     */
    @JsonProperty(value = "type")
    private CustomizationHostnameType type;

    /** Creates an instance of CustomizationHostname class. */
    public CustomizationHostname() {
    }

    /**
     * Get the name property: Hostname.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: Hostname.
     *
     * @param name the name value to set.
     * @return the CustomizationHostname object itself.
     */
    public CustomizationHostname withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the type property: Type of host name.
     *
     * @return the type value.
     */
    public CustomizationHostnameType type() {
        return this.type;
    }

    /**
     * Set the type property: Type of host name.
     *
     * @param type the type value to set.
     * @return the CustomizationHostname object itself.
     */
    public CustomizationHostname withType(CustomizationHostnameType type) {
        this.type = type;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
