Class CustomImagePropertiesCustom

java.lang.Object
com.azure.resourcemanager.devtestlabs.models.CustomImagePropertiesCustom

public final class CustomImagePropertiesCustom extends Object
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.