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.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the executionTime property: This property specifies the starting timestamp.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ExecutedValidation from the JsonReader.
    Get the status property: This property specifies the status of the validationProfile of the image version.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the type property: This property specifies the type of image version validation.
    void
    Validates the instance.
    Get the version property: This property specifies the valid version of the validation.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • type

      public String type()
      Get the type property: This property specifies the type of image version validation.
      Returns:
      the type value.
    • status

      public ValidationStatus status()
      Get the status property: This property specifies the status of the validationProfile of the image version.
      Returns:
      the status value.
    • version

      public String version()
      Get the version property: This property specifies the valid version of the validation.
      Returns:
      the version value.
    • executionTime

      public OffsetDateTime executionTime()
      Get the executionTime property: This property specifies the starting timestamp.
      Returns:
      the executionTime value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ExecutedValidation>
      Throws:
      IOException
    • fromJson

      public static ExecutedValidation fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.