NameAvailabilityInfoInner Class
- java.
lang. Object - com.
azure. resourcemanager. deviceprovisioningservices. fluent. models. NameAvailabilityInfoInner
- com.
public final class NameAvailabilityInfoInner
Description of name availability.
Constructor Summary
Constructor | Description | |
---|---|---|
NameAvailabilityInfoInner() |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
message()
Get the message property: message containing a detailed reason name is unavailable. |
Boolean |
nameAvailable()
Get the name |
Name |
reason()
Get the reason property: specifies the reason a name is unavailable. |
void |
validate()
Validates the instance. |
Name |
withMessage(String message)
Set the message property: message containing a detailed reason name is unavailable. |
Name |
withNameAvailable(Boolean nameAvailable)
Set the name |
Name |
withReason(NameUnavailabilityReason reason)
Set the reason property: specifies the reason a name is unavailable. |
Methods inherited from java.lang.Object
Constructor Details
NameAvailabilityInfoInner
public NameAvailabilityInfoInner()
Method Details
message
public String message()
Get the message property: message containing a detailed reason name is unavailable.
Returns:
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: specifies if a name is available or not.
Returns:
reason
public NameUnavailabilityReason reason()
Get the reason property: specifies the reason a name is unavailable.
Returns:
validate
public void validate()
Validates the instance.
withMessage
public NameAvailabilityInfoInner withMessage(String message)
Set the message property: message containing a detailed reason name is unavailable.
Parameters:
Returns:
withNameAvailable
public NameAvailabilityInfoInner withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: specifies if a name is available or not.
Parameters:
Returns:
withReason
public NameAvailabilityInfoInner withReason(NameUnavailabilityReason reason)
Set the reason property: specifies the reason a name is unavailable.
Parameters:
Returns: