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

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

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

/** Represents cluster name availability. */
@Fluent
public final class NameAvailabilityInner {
    /*
     * Error message.
     */
    @JsonProperty(value = "message")
    private String message;

    /*
     * Indicates whether the cluster name is available.
     */
    @JsonProperty(value = "nameAvailable")
    private Boolean nameAvailable;

    /*
     * Name of the cluster.
     */
    @JsonProperty(value = "name")
    private String name;

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

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

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

    /**
     * Set the message property: Error message.
     *
     * @param message the message value to set.
     * @return the NameAvailabilityInner object itself.
     */
    public NameAvailabilityInner withMessage(String message) {
        this.message = message;
        return this;
    }

    /**
     * Get the nameAvailable property: Indicates whether the cluster name is available.
     *
     * @return the nameAvailable value.
     */
    public Boolean nameAvailable() {
        return this.nameAvailable;
    }

    /**
     * Set the nameAvailable property: Indicates whether the cluster name is available.
     *
     * @param nameAvailable the nameAvailable value to set.
     * @return the NameAvailabilityInner object itself.
     */
    public NameAvailabilityInner withNameAvailable(Boolean nameAvailable) {
        this.nameAvailable = nameAvailable;
        return this;
    }

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

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

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

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

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