Class CustomImagePropertiesFromVm
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.CustomImagePropertiesFromVm
Properties for creating a custom image from a virtual machine.
-
Constructor Summary
ConstructorDescriptionCreates an instance of CustomImagePropertiesFromVm class. -
Method Summary
Modifier and TypeMethodDescriptionGet the linuxOsInfo property: The Linux OS information of the VM.Get the sourceVmId property: The source vm identifier.void
validate()
Validates the instance.Get the windowsOsInfo property: The Windows OS information of the VM.withLinuxOsInfo
(LinuxOsInfo linuxOsInfo) Set the linuxOsInfo property: The Linux OS information of the VM.withSourceVmId
(String sourceVmId) Set the sourceVmId property: The source vm identifier.withWindowsOsInfo
(WindowsOsInfo windowsOsInfo) Set the windowsOsInfo property: The Windows OS information of the VM.
-
Constructor Details
-
CustomImagePropertiesFromVm
public CustomImagePropertiesFromVm()Creates an instance of CustomImagePropertiesFromVm class.
-
-
Method Details
-
sourceVmId
Get the sourceVmId property: The source vm identifier.- Returns:
- the sourceVmId value.
-
withSourceVmId
Set the sourceVmId property: The source vm identifier.- Parameters:
sourceVmId
- the sourceVmId value to set.- Returns:
- the CustomImagePropertiesFromVm object itself.
-
windowsOsInfo
Get the windowsOsInfo property: The Windows OS information of the VM.- Returns:
- the windowsOsInfo value.
-
withWindowsOsInfo
Set the windowsOsInfo property: The Windows OS information of the VM.- Parameters:
windowsOsInfo
- the windowsOsInfo value to set.- Returns:
- the CustomImagePropertiesFromVm object itself.
-
linuxOsInfo
Get the linuxOsInfo property: The Linux OS information of the VM.- Returns:
- the linuxOsInfo value.
-
withLinuxOsInfo
Set the linuxOsInfo property: The Linux OS information of the VM.- Parameters:
linuxOsInfo
- the linuxOsInfo value to set.- Returns:
- the CustomImagePropertiesFromVm object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-