
com.azure.resourcemanager.netapp.fluent.models.CheckAvailabilityResponseInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-netapp Show documentation
Show all versions of azure-resourcemanager-netapp Show documentation
This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-preview-2024-07-01-preview.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.netapp.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.netapp.models.InAvailabilityReasonType;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Information regarding availability of a resource.
*/
@Fluent
public final class CheckAvailabilityResponseInner {
/*
* true
indicates name is valid and available. false
indicates the name is invalid,
* unavailable, or both.
*/
@JsonProperty(value = "isAvailable")
private Boolean isAvailable;
/*
* Invalid
indicates the name provided does not match Azure App Service naming requirements.
* AlreadyExists
indicates that the name is already in use and is therefore unavailable.
*/
@JsonProperty(value = "reason")
private InAvailabilityReasonType reason;
/*
* If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource
* naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource
* name is already in use, and direct them to select a different name.
*/
@JsonProperty(value = "message")
private String message;
/**
* Creates an instance of CheckAvailabilityResponseInner class.
*/
public CheckAvailabilityResponseInner() {
}
/**
* Get the isAvailable property: <code>true</code> indicates name is valid and available.
* <code>false</code> indicates the name is invalid, unavailable, or both.
*
* @return the isAvailable value.
*/
public Boolean isAvailable() {
return this.isAvailable;
}
/**
* Set the isAvailable property: <code>true</code> indicates name is valid and available.
* <code>false</code> indicates the name is invalid, unavailable, or both.
*
* @param isAvailable the isAvailable value to set.
* @return the CheckAvailabilityResponseInner object itself.
*/
public CheckAvailabilityResponseInner withIsAvailable(Boolean isAvailable) {
this.isAvailable = isAvailable;
return this;
}
/**
* Get the reason property: <code>Invalid</code> indicates the name provided does not match Azure App
* Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use
* and is therefore unavailable.
*
* @return the reason value.
*/
public InAvailabilityReasonType reason() {
return this.reason;
}
/**
* Set the reason property: <code>Invalid</code> indicates the name provided does not match Azure App
* Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use
* and is therefore unavailable.
*
* @param reason the reason value to set.
* @return the CheckAvailabilityResponseInner object itself.
*/
public CheckAvailabilityResponseInner withReason(InAvailabilityReasonType reason) {
this.reason = reason;
return this;
}
/**
* Get the message property: If reason == invalid, provide the user with the reason why the given name is invalid,
* and provide the resource naming requirements so that the user can select a valid name. If reason ==
* AlreadyExists, explain that resource name is already in use, and direct them to select a different name.
*
* @return the message value.
*/
public String message() {
return this.message;
}
/**
* Set the message property: If reason == invalid, provide the user with the reason why the given name is invalid,
* and provide the resource naming requirements so that the user can select a valid name. If reason ==
* AlreadyExists, explain that resource name is already in use, and direct them to select a different name.
*
* @param message the message value to set.
* @return the CheckAvailabilityResponseInner object itself.
*/
public CheckAvailabilityResponseInner withMessage(String message) {
this.message = message;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy