Class CustomImagePropertiesCustom
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.CustomImagePropertiesCustom
Properties for creating a custom image from a VHD.
-
Constructor Summary
ConstructorDescriptionCreates an instance of CustomImagePropertiesCustom class. -
Method Summary
Modifier and TypeMethodDescriptionGet the imageName property: The image name.osType()
Get the osType property: The OS type of the custom image (i.e.sysPrep()
Get the sysPrep property: Indicates whether sysprep has been run on the VHD.void
validate()
Validates the instance.withImageName
(String imageName) Set the imageName property: The image name.withOsType
(CustomImageOsType osType) Set the osType property: The OS type of the custom image (i.e.withSysPrep
(Boolean sysPrep) Set the sysPrep property: Indicates whether sysprep has been run on the VHD.
-
Constructor Details
-
CustomImagePropertiesCustom
public CustomImagePropertiesCustom()Creates an instance of CustomImagePropertiesCustom class.
-
-
Method Details
-
imageName
Get the imageName property: The image name.- Returns:
- the imageName value.
-
withImageName
Set the imageName property: The image name.- Parameters:
imageName
- the imageName value to set.- Returns:
- the CustomImagePropertiesCustom object itself.
-
sysPrep
Get the sysPrep property: Indicates whether sysprep has been run on the VHD.- Returns:
- the sysPrep value.
-
withSysPrep
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
Get the osType property: The OS type of the custom image (i.e. Windows, Linux).- Returns:
- the osType value.
-
withOsType
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.
-