Class ExecutedValidation
java.lang.Object
com.azure.resourcemanager.compute.models.ExecutedValidation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExecutedValidation>
public final class ExecutedValidation
extends Object
implements com.azure.json.JsonSerializable<ExecutedValidation>
This is the executed Validation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the executionTime property: This property specifies the starting timestamp.static ExecutedValidationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExecutedValidation from the JsonReader.status()Get the status property: This property specifies the status of the validationProfile of the image version.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: This property specifies the type of image version validation.voidvalidate()Validates the instance.version()Get the version property: This property specifies the valid version of the validation.withExecutionTime(OffsetDateTime executionTime) Set the executionTime property: This property specifies the starting timestamp.withStatus(ValidationStatus status) Set the status property: This property specifies the status of the validationProfile of the image version.Set the type property: This property specifies the type of image version validation.withVersion(String version) Set the version property: This property specifies the valid version of the validation.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
-
ExecutedValidation
public ExecutedValidation()Creates an instance of ExecutedValidation class.
-
-
Method Details
-
type
Get the type property: This property specifies the type of image version validation.- Returns:
- the type value.
-
withType
Set the type property: This property specifies the type of image version validation.- Parameters:
type- the type value to set.- Returns:
- the ExecutedValidation object itself.
-
status
Get the status property: This property specifies the status of the validationProfile of the image version.- Returns:
- the status value.
-
withStatus
Set the status property: This property specifies the status of the validationProfile of the image version.- Parameters:
status- the status value to set.- Returns:
- the ExecutedValidation object itself.
-
version
Get the version property: This property specifies the valid version of the validation.- Returns:
- the version value.
-
withVersion
Set the version property: This property specifies the valid version of the validation.- Parameters:
version- the version value to set.- Returns:
- the ExecutedValidation object itself.
-
executionTime
Get the executionTime property: This property specifies the starting timestamp.- Returns:
- the executionTime value.
-
withExecutionTime
Set the executionTime property: This property specifies the starting timestamp.- Parameters:
executionTime- the executionTime value to set.- Returns:
- the ExecutedValidation 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<ExecutedValidation>- Throws:
IOException
-
fromJson
Reads an instance of ExecutedValidation from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ExecutedValidation 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 ExecutedValidation.
-