Class ContainerRegistryValidateResultInner
java.lang.Object
com.azure.resourcemanager.appplatform.fluent.models.ContainerRegistryValidateResultInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerRegistryValidateResultInner>
public final class ContainerRegistryValidateResultInner
extends Object
implements com.azure.json.JsonSerializable<ContainerRegistryValidateResultInner>
Validation result for container registry properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ContainerRegistryValidateResultInner class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerRegistryValidateResultInner from the JsonReader.isValid()Get the isValid property: Indicate if the container registry properties are valid.message()Get the message property: Detailed validation messages.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIsValid(Boolean isValid) Set the isValid property: Indicate if the container registry properties are valid.withMessage(String message) Set the message property: Detailed validation messages.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ContainerRegistryValidateResultInner
public ContainerRegistryValidateResultInner()Creates an instance of ContainerRegistryValidateResultInner class.
-
-
Method Details
-
isValid
Get the isValid property: Indicate if the container registry properties are valid.- Returns:
- the isValid value.
-
withIsValid
Set the isValid property: Indicate if the container registry properties are valid.- Parameters:
isValid- the isValid value to set.- Returns:
- the ContainerRegistryValidateResultInner object itself.
-
message
Get the message property: Detailed validation messages.- Returns:
- the message value.
-
withMessage
Set the message property: Detailed validation messages.- Parameters:
message- the message value to set.- Returns:
- the ContainerRegistryValidateResultInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ContainerRegistryValidateResultInner>- Throws:
IOException
-
fromJson
public static ContainerRegistryValidateResultInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ContainerRegistryValidateResultInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ContainerRegistryValidateResultInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ContainerRegistryValidateResultInner.
-