NameAvailabilityResponseInner Class
- java.
lang. Object - com.
azure. resourcemanager. datamigration. fluent. models. NameAvailabilityResponseInner
- com.
Implements
public final class NameAvailabilityResponseInner
implements JsonSerializable<NameAvailabilityResponseInner>
Indicates whether a proposed resource name is available.
Constructor Summary
| Constructor | Description |
|---|---|
| NameAvailabilityResponseInner() |
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: The localized reason why the name is not available, if name |
| Boolean |
nameAvailable()
Get the name |
|
Name |
reason()
Get the reason property: The reason why the name is not available, if name |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Name |
withMessage(String message)
Set the message property: The localized reason why the name is not available, if name |
|
Name |
withNameAvailable(Boolean nameAvailable)
Set the name |
|
Name |
withReason(NameCheckFailureReason reason)
Set the reason property: The reason why the name is not available, if name |
Methods inherited from java.lang.Object
Constructor Details
NameAvailabilityResponseInner
public NameAvailabilityResponseInner()
Creates an instance of NameAvailabilityResponseInner class.
Method Details
fromJson
public static NameAvailabilityResponseInner fromJson(JsonReader jsonReader)
Reads an instance of NameAvailabilityResponseInner from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: The localized reason why the name is not available, if nameAvailable is false.
Returns:
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: If true, the name is valid and available. If false, 'reason' describes why not.
Returns:
reason
public NameCheckFailureReason reason()
Get the reason property: The reason why the name is not available, if nameAvailable is false.
Returns:
toJson
validate
public void validate()
Validates the instance.
withMessage
public NameAvailabilityResponseInner withMessage(String message)
Set the message property: The localized reason why the name is not available, if nameAvailable is false.
Parameters:
Returns:
withNameAvailable
public NameAvailabilityResponseInner withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: If true, the name is valid and available. If false, 'reason' describes why not.
Parameters:
Returns:
withReason
public NameAvailabilityResponseInner withReason(NameCheckFailureReason reason)
Set the reason property: The reason why the name is not available, if nameAvailable is false.
Parameters:
Returns: