Class CheckNameAvailabilityResultInner
- java.lang.Object
-
- com.azure.resourcemanager.dataprotection.fluent.models.CheckNameAvailabilityResultInner
-
public final class CheckNameAvailabilityResultInner extends Object
CheckNameAvailabilityResult CheckNameAvailability Result.
-
-
Constructor Summary
Constructors Constructor Description CheckNameAvailabilityResultInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
message()
Get the message property: Gets or sets the message.Boolean
nameAvailable()
Get the nameAvailable property: Gets or sets a value indicating whether [name available].String
reason()
Get the reason property: Gets or sets the reason.void
validate()
Validates the instance.CheckNameAvailabilityResultInner
withMessage(String message)
Set the message property: Gets or sets the message.CheckNameAvailabilityResultInner
withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: Gets or sets a value indicating whether [name available].CheckNameAvailabilityResultInner
withReason(String reason)
Set the reason property: Gets or sets the reason.
-
-
-
Method Detail
-
message
public String message()
Get the message property: Gets or sets the message.- Returns:
- the message value.
-
withMessage
public CheckNameAvailabilityResultInner withMessage(String message)
Set the message property: Gets or sets the message.- Parameters:
message
- the message value to set.- Returns:
- the CheckNameAvailabilityResultInner object itself.
-
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: Gets or sets a value indicating whether [name available].- Returns:
- the nameAvailable value.
-
withNameAvailable
public CheckNameAvailabilityResultInner withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: Gets or sets a value indicating whether [name available].- Parameters:
nameAvailable
- the nameAvailable value to set.- Returns:
- the CheckNameAvailabilityResultInner object itself.
-
reason
public String reason()
Get the reason property: Gets or sets the reason.- Returns:
- the reason value.
-
withReason
public CheckNameAvailabilityResultInner withReason(String reason)
Set the reason property: Gets or sets the reason.- Parameters:
reason
- the reason value to set.- Returns:
- the CheckNameAvailabilityResultInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-