Class CustomImagePropertiesCustom

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

public final class CustomImagePropertiesCustom extends Object implements com.azure.json.JsonSerializable<CustomImagePropertiesCustom>
Properties for creating a custom image from a VHD.
  • Constructor Details

    • CustomImagePropertiesCustom

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

    • imageName

      public String imageName()
      Get the imageName property: The image name.
      Returns:
      the imageName value.
    • withImageName

      public CustomImagePropertiesCustom withImageName(String imageName)
      Set the imageName property: The image name.
      Parameters:
      imageName - the imageName value to set.
      Returns:
      the CustomImagePropertiesCustom object itself.
    • sysPrep

      public Boolean sysPrep()
      Get the sysPrep property: Indicates whether sysprep has been run on the VHD.
      Returns:
      the sysPrep value.
    • withSysPrep

      public CustomImagePropertiesCustom withSysPrep(Boolean sysPrep)
      Set the sysPrep property: Indicates whether sysprep has been run on the VHD.
      Parameters:
      sysPrep - the sysPrep value to set.
      Returns:
      the CustomImagePropertiesCustom object itself.
    • osType

      public CustomImageOsType osType()
      Get the osType property: The OS type of the custom image (i.e. Windows, Linux).
      Returns:
      the osType value.
    • withOsType

      public CustomImagePropertiesCustom withOsType(CustomImageOsType osType)
      Set the osType property: The OS type of the custom image (i.e. Windows, Linux).
      Parameters:
      osType - the osType value to set.
      Returns:
      the CustomImagePropertiesCustom 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<CustomImagePropertiesCustom>
      Throws:
      IOException
    • fromJson

      public static CustomImagePropertiesCustom fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CustomImagePropertiesCustom from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CustomImagePropertiesCustom if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the CustomImagePropertiesCustom.