Class NameAvailabilityInfoInner
- java.lang.Object
-
- com.azure.resourcemanager.deviceprovisioningservices.fluent.models.NameAvailabilityInfoInner
-
public final class NameAvailabilityInfoInner extends Object
Description of name availability.
-
-
Constructor Summary
Constructors Constructor Description NameAvailabilityInfoInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
message()
Get the message property: message containing a detailed reason name is unavailable.Boolean
nameAvailable()
Get the nameAvailable property: specifies if a name is available or not.NameUnavailabilityReason
reason()
Get the reason property: specifies the reason a name is unavailable.void
validate()
Validates the instance.NameAvailabilityInfoInner
withMessage(String message)
Set the message property: message containing a detailed reason name is unavailable.NameAvailabilityInfoInner
withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: specifies if a name is available or not.NameAvailabilityInfoInner
withReason(NameUnavailabilityReason reason)
Set the reason property: specifies the reason a name is unavailable.
-
-
-
Method Detail
-
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: specifies if a name is available or not.- Returns:
- the nameAvailable value.
-
withNameAvailable
public NameAvailabilityInfoInner withNameAvailable(Boolean nameAvailable)
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
public NameUnavailabilityReason reason()
Get the reason property: specifies the reason a name is unavailable.- Returns:
- the reason value.
-
withReason
public NameAvailabilityInfoInner withReason(NameUnavailabilityReason reason)
Set the reason property: specifies the reason a name is unavailable.- Parameters:
reason
- the reason value to set.- Returns:
- the NameAvailabilityInfoInner object itself.
-
message
public String message()
Get the message property: message containing a detailed reason name is unavailable.- Returns:
- the message value.
-
withMessage
public NameAvailabilityInfoInner withMessage(String message)
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.
-
-