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

package com.azure.resourcemanager.cognitiveservices.fluent.models;

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

/** Domain availability. */
@Fluent
public final class DomainAvailabilityInner {
    /*
     * Indicates the given SKU is available or not.
     */
    @JsonProperty(value = "isSubdomainAvailable")
    private Boolean isSubdomainAvailable;

    /*
     * Reason why the SKU is not available.
     */
    @JsonProperty(value = "reason")
    private String reason;

    /*
     * The subdomain name to use.
     */
    @JsonProperty(value = "subdomainName")
    private String subdomainName;

    /*
     * The Type of the resource.
     */
    @JsonProperty(value = "type")
    private String type;

    /*
     * The Kind of the resource.
     */
    @JsonProperty(value = "kind")
    private String kind;

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

    /**
     * Get the isSubdomainAvailable property: Indicates the given SKU is available or not.
     *
     * @return the isSubdomainAvailable value.
     */
    public Boolean isSubdomainAvailable() {
        return this.isSubdomainAvailable;
    }

    /**
     * Set the isSubdomainAvailable property: Indicates the given SKU is available or not.
     *
     * @param isSubdomainAvailable the isSubdomainAvailable value to set.
     * @return the DomainAvailabilityInner object itself.
     */
    public DomainAvailabilityInner withIsSubdomainAvailable(Boolean isSubdomainAvailable) {
        this.isSubdomainAvailable = isSubdomainAvailable;
        return this;
    }

    /**
     * Get the reason property: Reason why the SKU is not available.
     *
     * @return the reason value.
     */
    public String reason() {
        return this.reason;
    }

    /**
     * Set the reason property: Reason why the SKU is not available.
     *
     * @param reason the reason value to set.
     * @return the DomainAvailabilityInner object itself.
     */
    public DomainAvailabilityInner withReason(String reason) {
        this.reason = reason;
        return this;
    }

    /**
     * Get the subdomainName property: The subdomain name to use.
     *
     * @return the subdomainName value.
     */
    public String subdomainName() {
        return this.subdomainName;
    }

    /**
     * Set the subdomainName property: The subdomain name to use.
     *
     * @param subdomainName the subdomainName value to set.
     * @return the DomainAvailabilityInner object itself.
     */
    public DomainAvailabilityInner withSubdomainName(String subdomainName) {
        this.subdomainName = subdomainName;
        return this;
    }

    /**
     * Get the type property: The Type of the resource.
     *
     * @return the type value.
     */
    public String type() {
        return this.type;
    }

    /**
     * Set the type property: The Type of the resource.
     *
     * @param type the type value to set.
     * @return the DomainAvailabilityInner object itself.
     */
    public DomainAvailabilityInner withType(String type) {
        this.type = type;
        return this;
    }

    /**
     * Get the kind property: The Kind of the resource.
     *
     * @return the kind value.
     */
    public String kind() {
        return this.kind;
    }

    /**
     * Set the kind property: The Kind of the resource.
     *
     * @param kind the kind value to set.
     * @return the DomainAvailabilityInner object itself.
     */
    public DomainAvailabilityInner withKind(String kind) {
        this.kind = kind;
        return this;
    }

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