Class NameAvailabilityResponseInner
java.lang.Object
com.azure.resourcemanager.datamigration.fluent.models.NameAvailabilityResponseInner
Indicates whether a proposed resource name is available.
-
Constructor Summary
ConstructorDescriptionCreates an instance of NameAvailabilityResponseInner class. -
Method Summary
Modifier and TypeMethodDescriptionmessage()
Get the message property: The localized reason why the name is not available, if nameAvailable is false.Get the nameAvailable property: If true, the name is valid and available.reason()
Get the reason property: The reason why the name is not available, if nameAvailable is false.void
validate()
Validates the instance.
-
Constructor Details
-
NameAvailabilityResponseInner
public NameAvailabilityResponseInner()Creates an instance of NameAvailabilityResponseInner class.
-
-
Method Details
-
nameAvailable
Get the nameAvailable property: If true, the name is valid and available. If false, 'reason' describes why not.- Returns:
- the nameAvailable value.
-
reason
Get the reason property: The reason why the name is not available, if nameAvailable is false.- Returns:
- the reason value.
-
message
Get the message property: The localized reason why the name is not available, if nameAvailable is false.- Returns:
- the message value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-