RegistryNameStatusInner Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. fluent. models. RegistryNameStatusInner
- com.
Implements
public final class RegistryNameStatusInner
implements JsonSerializable<RegistryNameStatusInner>
The result of a request to check the availability of a container registry name.
Constructor Summary
Constructor | Description |
---|---|
RegistryNameStatusInner() |
Creates an instance of Registry |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Registry |
fromJson(JsonReader jsonReader)
Reads an instance of Registry |
String |
message()
Get the message property: If any, the error message that provides more detail for the reason that the name is not available. |
Boolean |
nameAvailable()
Get the name |
String |
reason()
Get the reason property: If any, the reason that the name is not available. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Registry |
withMessage(String message)
Set the message property: If any, the error message that provides more detail for the reason that the name is not available. |
Registry |
withNameAvailable(Boolean nameAvailable)
Set the name |
Registry |
withReason(String reason)
Set the reason property: If any, the reason that the name is not available. |
Methods inherited from java.lang.Object
Constructor Details
RegistryNameStatusInner
public RegistryNameStatusInner()
Creates an instance of RegistryNameStatusInner class.
Method Details
fromJson
public static RegistryNameStatusInner fromJson(JsonReader jsonReader)
Reads an instance of RegistryNameStatusInner from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: If any, the error message that provides more detail for the reason that the name is not available.
Returns:
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: The value that indicates whether the name is available.
Returns:
reason
public String reason()
Get the reason property: If any, the reason that the name is not available.
Returns:
toJson
validate
public void validate()
Validates the instance.
withMessage
public RegistryNameStatusInner withMessage(String message)
Set the message property: If any, the error message that provides more detail for the reason that the name is not available.
Parameters:
Returns:
withNameAvailable
public RegistryNameStatusInner withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: The value that indicates whether the name is available.
Parameters:
Returns:
withReason
public RegistryNameStatusInner withReason(String reason)
Set the reason property: If any, the reason that the name is not available.
Parameters:
Returns:
Applies to
Azure SDK for Java