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 Summary
ConstructorsConstructorDescriptionCreates an instance of CustomImagePropertiesCustom class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomImagePropertiesCustom
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CustomImagePropertiesCustom from the JsonReader.Get 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.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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.
-
toJson
- Specified by:
toJson
in interfacecom.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.
-