Class ImageVersionSecurityProfile

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

public final class ImageVersionSecurityProfile extends Object implements com.azure.json.JsonSerializable<ImageVersionSecurityProfile>
The security profile of a gallery image version.
  • Constructor Details

    • ImageVersionSecurityProfile

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

    • uefiSettings

      public GalleryImageVersionUefiSettings uefiSettings()
      Get the uefiSettings property: Contains UEFI settings for the image version.
      Returns:
      the uefiSettings value.
    • withUefiSettings

      public ImageVersionSecurityProfile withUefiSettings(GalleryImageVersionUefiSettings uefiSettings)
      Set the uefiSettings property: Contains UEFI settings for the image version.
      Parameters:
      uefiSettings - the uefiSettings value to set.
      Returns:
      the ImageVersionSecurityProfile 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<ImageVersionSecurityProfile>
      Throws:
      IOException
    • fromJson

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