NameAvailabilityInner Class
- java.
lang. Object - com.
azure. resourcemanager. postgresql. fluent. models. NameAvailabilityInner
- com.
Implements
public final class NameAvailabilityInner
implements JsonSerializable<NameAvailabilityInner>
Represents a resource name availability.
Constructor Summary
| Constructor | Description |
|---|---|
| NameAvailabilityInner() |
Creates an instance of Name |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Name |
fromJson(JsonReader jsonReader)
Reads an instance of Name |
| String |
message()
Get the message property: Error Message. |
| Boolean |
nameAvailable()
Get the name |
| String |
reason()
Get the reason property: Reason for name being unavailable. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Name |
withMessage(String message)
Set the message property: Error Message. |
|
Name |
withNameAvailable(Boolean nameAvailable)
Set the name |
|
Name |
withReason(String reason)
Set the reason property: Reason for name being unavailable. |
Methods inherited from java.lang.Object
Constructor Details
NameAvailabilityInner
public NameAvailabilityInner()
Creates an instance of NameAvailabilityInner class.
Method Details
fromJson
public static NameAvailabilityInner fromJson(JsonReader jsonReader)
Reads an instance of NameAvailabilityInner from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: Error Message.
Returns:
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: Indicates whether the resource name is available.
Returns:
reason
public String reason()
Get the reason property: Reason for name being unavailable.
Returns:
toJson
validate
public void validate()
Validates the instance.
withMessage
public NameAvailabilityInner withMessage(String message)
Set the message property: Error Message.
Parameters:
Returns:
withNameAvailable
public NameAvailabilityInner withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: Indicates whether the resource name is available.
Parameters:
Returns:
withReason
public NameAvailabilityInner withReason(String reason)
Set the reason property: Reason for name being unavailable.
Parameters:
Returns: