Class NameAvailabilityInner
java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.CheckNameAvailabilityResponse
com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.NameAvailabilityInner
Represents a resource name availability.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionname()
Get the name property: name of the PostgreSQL server.type()
Get the type property: type of the server.void
validate()
Validates the instance.withMessage
(String message) Set the message property: Detailed reason why the given name is available.withNameAvailable
(Boolean nameAvailable) Set the nameAvailable property: Indicates if the resource name is available.Set the reason property: The reason why the given name is not available.Methods inherited from class com.azure.resourcemanager.postgresqlflexibleserver.models.CheckNameAvailabilityResponse
message, nameAvailable, reason
-
Constructor Details
-
NameAvailabilityInner
public NameAvailabilityInner()Creates an instance of NameAvailabilityInner class.
-
-
Method Details
-
name
Get the name property: name of the PostgreSQL server.- Returns:
- the name value.
-
type
Get the type property: type of the server.- Returns:
- the type value.
-
withNameAvailable
Set the nameAvailable property: Indicates if the resource name is available.- Overrides:
withNameAvailable
in classCheckNameAvailabilityResponse
- Parameters:
nameAvailable
- the nameAvailable value to set.- Returns:
- the CheckNameAvailabilityResponse object itself.
-
withReason
Set the reason property: The reason why the given name is not available.- Overrides:
withReason
in classCheckNameAvailabilityResponse
- Parameters:
reason
- the reason value to set.- Returns:
- the CheckNameAvailabilityResponse object itself.
-
withMessage
Set the message property: Detailed reason why the given name is available.- Overrides:
withMessage
in classCheckNameAvailabilityResponse
- Parameters:
message
- the message value to set.- Returns:
- the CheckNameAvailabilityResponse object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classCheckNameAvailabilityResponse
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-