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

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

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.appservice.models.DomainType;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Domain availability check result. */
@Fluent
public final class DomainAvailabilityCheckResultInner {
    /*
     * Name of the domain.
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * <code>true</code> if domain can be purchased using CreateDomain API; otherwise, <code>false</code>.
     */
    @JsonProperty(value = "available")
    private Boolean available;

    /*
     * Valid values are Regular domain: Azure will charge the full price of domain registration, SoftDeleted:
     * Purchasing this domain will simply restore it and this operation will not cost anything.
     */
    @JsonProperty(value = "domainType")
    private DomainType domainType;

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

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

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

    /**
     * Get the available property: &lt;code&gt;true&lt;/code&gt; if domain can be purchased using CreateDomain API;
     * otherwise, &lt;code&gt;false&lt;/code&gt;.
     *
     * @return the available value.
     */
    public Boolean available() {
        return this.available;
    }

    /**
     * Set the available property: &lt;code&gt;true&lt;/code&gt; if domain can be purchased using CreateDomain API;
     * otherwise, &lt;code&gt;false&lt;/code&gt;.
     *
     * @param available the available value to set.
     * @return the DomainAvailabilityCheckResultInner object itself.
     */
    public DomainAvailabilityCheckResultInner withAvailable(Boolean available) {
        this.available = available;
        return this;
    }

    /**
     * Get the domainType property: Valid values are Regular domain: Azure will charge the full price of domain
     * registration, SoftDeleted: Purchasing this domain will simply restore it and this operation will not cost
     * anything.
     *
     * @return the domainType value.
     */
    public DomainType domainType() {
        return this.domainType;
    }

    /**
     * Set the domainType property: Valid values are Regular domain: Azure will charge the full price of domain
     * registration, SoftDeleted: Purchasing this domain will simply restore it and this operation will not cost
     * anything.
     *
     * @param domainType the domainType value to set.
     * @return the DomainAvailabilityCheckResultInner object itself.
     */
    public DomainAvailabilityCheckResultInner withDomainType(DomainType domainType) {
        this.domainType = domainType;
        return this;
    }

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