Class NameAvailabilityResultInner
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.fluent.models.NameAvailabilityResultInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NameAvailabilityResultInner>
public final class NameAvailabilityResultInner
extends Object
implements com.azure.json.JsonSerializable<NameAvailabilityResultInner>
Result of check name availability.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NameAvailabilityResultInner class. -
Method Summary
Modifier and TypeMethodDescriptionstatic NameAvailabilityResultInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NameAvailabilityResultInner from the JsonReader.message()Get the message property: The error message of unavailability.Get the nameAvailable property: Indicator of availability of the Microsoft.HDInsight resource name.reason()Get the reason property: The reason of unavailability.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withMessage(String message) Set the message property: The error message of unavailability.withNameAvailable(Boolean nameAvailable) Set the nameAvailable property: Indicator of availability of the Microsoft.HDInsight resource name.withReason(String reason) Set the reason property: The reason of unavailability.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
NameAvailabilityResultInner
public NameAvailabilityResultInner()Creates an instance of NameAvailabilityResultInner class.
-
-
Method Details
-
nameAvailable
Get the nameAvailable property: Indicator of availability of the Microsoft.HDInsight resource name.- Returns:
- the nameAvailable value.
-
withNameAvailable
Set the nameAvailable property: Indicator of availability of the Microsoft.HDInsight resource name.- Parameters:
nameAvailable- the nameAvailable value to set.- Returns:
- the NameAvailabilityResultInner object itself.
-
reason
Get the reason property: The reason of unavailability.- Returns:
- the reason value.
-
withReason
Set the reason property: The reason of unavailability.- Parameters:
reason- the reason value to set.- Returns:
- the NameAvailabilityResultInner object itself.
-
message
Get the message property: The error message of unavailability.- Returns:
- the message value.
-
withMessage
Set the message property: The error message of unavailability.- Parameters:
message- the message value to set.- Returns:
- the NameAvailabilityResultInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<NameAvailabilityResultInner>- Throws:
IOException
-
fromJson
public static NameAvailabilityResultInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NameAvailabilityResultInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NameAvailabilityResultInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the NameAvailabilityResultInner.
-