com.azure.resourcemanager.costmanagement.fluent.models.CheckNameAvailabilityResponseInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-costmanagement Show documentation
Show all versions of azure-resourcemanager-costmanagement Show documentation
This package contains Microsoft Azure SDK for CostManagement Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. CostManagement management client provides access to CostManagement resources for Azure Enterprise Subscriptions. Package tag package-2022-10.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.costmanagement.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.costmanagement.models.CheckNameAvailabilityReason;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The check availability result. */
@Fluent
public final class CheckNameAvailabilityResponseInner {
/*
* Indicates if the resource name is available.
*/
@JsonProperty(value = "nameAvailable")
private Boolean nameAvailable;
/*
* The reason why the given name is not available.
*/
@JsonProperty(value = "reason")
private CheckNameAvailabilityReason reason;
/*
* Detailed reason why the given name is available.
*/
@JsonProperty(value = "message")
private String message;
/** Creates an instance of CheckNameAvailabilityResponseInner class. */
public CheckNameAvailabilityResponseInner() {
}
/**
* Get the nameAvailable property: Indicates if the resource name is available.
*
* @return the nameAvailable value.
*/
public Boolean nameAvailable() {
return this.nameAvailable;
}
/**
* Set the nameAvailable property: Indicates if the resource name is available.
*
* @param nameAvailable the nameAvailable value to set.
* @return the CheckNameAvailabilityResponseInner object itself.
*/
public CheckNameAvailabilityResponseInner withNameAvailable(Boolean nameAvailable) {
this.nameAvailable = nameAvailable;
return this;
}
/**
* Get the reason property: The reason why the given name is not available.
*
* @return the reason value.
*/
public CheckNameAvailabilityReason reason() {
return this.reason;
}
/**
* Set the reason property: The reason why the given name is not available.
*
* @param reason the reason value to set.
* @return the CheckNameAvailabilityResponseInner object itself.
*/
public CheckNameAvailabilityResponseInner withReason(CheckNameAvailabilityReason reason) {
this.reason = reason;
return this;
}
/**
* Get the message property: Detailed reason why the given name is available.
*
* @return the message value.
*/
public String message() {
return this.message;
}
/**
* Set the message property: Detailed reason why the given name is available.
*
* @param message the message value to set.
* @return the CheckNameAvailabilityResponseInner object itself.
*/
public CheckNameAvailabilityResponseInner withMessage(String message) {
this.message = message;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}