Class EntityNameAvailabilityCheckOutputInner
java.lang.Object
com.azure.resourcemanager.mediaservices.fluent.models.EntityNameAvailabilityCheckOutputInner
The response from the check name availability request.
-
Constructor Summary
ConstructorDescriptionCreates an instance of EntityNameAvailabilityCheckOutputInner class. -
Method Summary
Modifier and TypeMethodDescriptionmessage()
Get the message property: Specifies the detailed reason if the name is not available.boolean
Get the nameAvailable property: Specifies if the name is available.reason()
Get the reason property: Specifies the reason if the name is not available.void
validate()
Validates the instance.withMessage
(String message) Set the message property: Specifies the detailed reason if the name is not available.withNameAvailable
(boolean nameAvailable) Set the nameAvailable property: Specifies if the name is available.withReason
(String reason) Set the reason property: Specifies the reason if the name is not available.
-
Constructor Details
-
EntityNameAvailabilityCheckOutputInner
public EntityNameAvailabilityCheckOutputInner()Creates an instance of EntityNameAvailabilityCheckOutputInner class.
-
-
Method Details
-
nameAvailable
public boolean nameAvailable()Get the nameAvailable property: Specifies if the name is available.- Returns:
- the nameAvailable value.
-
withNameAvailable
Set the nameAvailable property: Specifies if the name is available.- Parameters:
nameAvailable
- the nameAvailable value to set.- Returns:
- the EntityNameAvailabilityCheckOutputInner object itself.
-
reason
Get the reason property: Specifies the reason if the name is not available.- Returns:
- the reason value.
-
withReason
Set the reason property: Specifies the reason if the name is not available.- Parameters:
reason
- the reason value to set.- Returns:
- the EntityNameAvailabilityCheckOutputInner object itself.
-
message
Get the message property: Specifies the detailed reason if the name is not available.- Returns:
- the message value.
-
withMessage
Set the message property: Specifies the detailed reason if the name is not available.- Parameters:
message
- the message value to set.- Returns:
- the EntityNameAvailabilityCheckOutputInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-