Class NameAvailabilityInfoInner
java.lang.Object
com.azure.resourcemanager.deviceprovisioningservices.fluent.models.NameAvailabilityInfoInner
Description of name availability.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmessage()
Get the message property: message containing a detailed reason name is unavailable.Get the nameAvailable property: specifies if a name is available or not.reason()
Get the reason property: specifies the reason a name is unavailable.void
validate()
Validates the instance.withMessage
(String message) Set the message property: message containing a detailed reason name is unavailable.withNameAvailable
(Boolean nameAvailable) Set the nameAvailable property: specifies if a name is available or not.withReason
(NameUnavailabilityReason reason) Set the reason property: specifies the reason a name is unavailable.
-
Constructor Details
-
NameAvailabilityInfoInner
public NameAvailabilityInfoInner()
-
-
Method Details
-
nameAvailable
Get the nameAvailable property: specifies if a name is available or not.- Returns:
- the nameAvailable value.
-
withNameAvailable
Set the nameAvailable property: specifies if a name is available or not.- Parameters:
nameAvailable
- the nameAvailable value to set.- Returns:
- the NameAvailabilityInfoInner object itself.
-
reason
Get the reason property: specifies the reason a name is unavailable.- Returns:
- the reason value.
-
message
Get the message property: message containing a detailed reason name is unavailable.- Returns:
- the message value.
-
withMessage
Set the message property: message containing a detailed reason name is unavailable.- Parameters:
message
- the message value to set.- Returns:
- the NameAvailabilityInfoInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-