public final class CheckNameResultInner extends Object
Constructor and Description |
---|
CheckNameResultInner() |
Modifier and Type | Method and Description |
---|---|
String |
message()
Get the message property: Message indicating an unavailable name due to a conflict, or a description of the
naming rules that are violated.
|
String |
name()
Get the name property: The name that was checked.
|
Boolean |
nameAvailable()
Get the nameAvailable property: Specifies a Boolean value that indicates if the name is available.
|
Reason |
reason()
Get the reason property: Message providing the reason why the given name is invalid.
|
void |
validate()
Validates the instance.
|
CheckNameResultInner |
withMessage(String message)
Set the message property: Message indicating an unavailable name due to a conflict, or a description of the
naming rules that are violated.
|
CheckNameResultInner |
withName(String name)
Set the name property: The name that was checked.
|
CheckNameResultInner |
withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: Specifies a Boolean value that indicates if the name is available.
|
CheckNameResultInner |
withReason(Reason reason)
Set the reason property: Message providing the reason why the given name is invalid.
|
public Boolean nameAvailable()
public CheckNameResultInner withNameAvailable(Boolean nameAvailable)
nameAvailable
- the nameAvailable value to set.public String name()
public CheckNameResultInner withName(String name)
name
- the name value to set.public String message()
public CheckNameResultInner withMessage(String message)
message
- the message value to set.public Reason reason()
public CheckNameResultInner withReason(Reason reason)
reason
- the reason value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.