Class ValidationsProfile

java.lang.Object
com.azure.resourcemanager.compute.models.ValidationsProfile
All Implemented Interfaces:
com.azure.json.JsonSerializable<ValidationsProfile>

public final class ValidationsProfile extends Object implements com.azure.json.JsonSerializable<ValidationsProfile>
This is the validations profile of a Gallery Image Version.
  • Constructor Details

    • ValidationsProfile

      public ValidationsProfile()
      Creates an instance of ValidationsProfile class.
  • Method Details

    • validationEtag

      public String validationEtag()
      Get the validationEtag property: The published time of the image version.
      Returns:
      the validationEtag value.
    • withValidationEtag

      public ValidationsProfile withValidationEtag(String validationEtag)
      Set the validationEtag property: The published time of the image version.
      Parameters:
      validationEtag - the validationEtag value to set.
      Returns:
      the ValidationsProfile object itself.
    • executedValidations

      public List<ExecutedValidation> executedValidations()
      Get the executedValidations property: The executedValidations property.
      Returns:
      the executedValidations value.
    • withExecutedValidations

      public ValidationsProfile withExecutedValidations(List<ExecutedValidation> executedValidations)
      Set the executedValidations property: The executedValidations property.
      Parameters:
      executedValidations - the executedValidations value to set.
      Returns:
      the ValidationsProfile object itself.
    • platformAttributes

      public List<PlatformAttribute> platformAttributes()
      Get the platformAttributes property: This specifies the pub, offer, sku and version of the image version metadata.
      Returns:
      the platformAttributes value.
    • withPlatformAttributes

      public ValidationsProfile withPlatformAttributes(List<PlatformAttribute> platformAttributes)
      Set the platformAttributes property: This specifies the pub, offer, sku and version of the image version metadata.
      Parameters:
      platformAttributes - the platformAttributes value to set.
      Returns:
      the ValidationsProfile object itself.
    • 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<ValidationsProfile>
      Throws:
      IOException
    • fromJson

      public static ValidationsProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ValidationsProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ValidationsProfile 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 ValidationsProfile.