CustomImagePropertiesFromVm Class

  • java.lang.Object
    • com.azure.resourcemanager.devtestlabs.models.CustomImagePropertiesFromVm

public final class CustomImagePropertiesFromVm

Properties for creating a custom image from a virtual machine.

Constructor Summary

Constructor Description
CustomImagePropertiesFromVm()

Creates an instance of CustomImagePropertiesFromVm class.

Method Summary

Modifier and Type Method and Description
LinuxOsInfo linuxOsInfo()

Get the linuxOsInfo property: The Linux OS information of the VM.

String sourceVmId()

Get the sourceVmId property: The source vm identifier.

void validate()

Validates the instance.

WindowsOsInfo windowsOsInfo()

Get the windowsOsInfo property: The Windows OS information of the VM.

CustomImagePropertiesFromVm withLinuxOsInfo(LinuxOsInfo linuxOsInfo)

Set the linuxOsInfo property: The Linux OS information of the VM.

CustomImagePropertiesFromVm withSourceVmId(String sourceVmId)

Set the sourceVmId property: The source vm identifier.

CustomImagePropertiesFromVm withWindowsOsInfo(WindowsOsInfo windowsOsInfo)

Set the windowsOsInfo property: The Windows OS information of the VM.

Methods inherited from java.lang.Object

Constructor Details

CustomImagePropertiesFromVm

public CustomImagePropertiesFromVm()

Creates an instance of CustomImagePropertiesFromVm class.

Method Details

linuxOsInfo

public LinuxOsInfo linuxOsInfo()

Get the linuxOsInfo property: The Linux OS information of the VM.

Returns:

the linuxOsInfo value.

sourceVmId

public String sourceVmId()

Get the sourceVmId property: The source vm identifier.

Returns:

the sourceVmId value.

validate

public void validate()

Validates the instance.

windowsOsInfo

public WindowsOsInfo windowsOsInfo()

Get the windowsOsInfo property: The Windows OS information of the VM.

Returns:

the windowsOsInfo value.

withLinuxOsInfo

public CustomImagePropertiesFromVm withLinuxOsInfo(LinuxOsInfo linuxOsInfo)

Set the linuxOsInfo property: The Linux OS information of the VM.

Parameters:

linuxOsInfo - the linuxOsInfo value to set.

Returns:

the CustomImagePropertiesFromVm object itself.

withSourceVmId

public CustomImagePropertiesFromVm withSourceVmId(String sourceVmId)

Set the sourceVmId property: The source vm identifier.

Parameters:

sourceVmId - the sourceVmId value to set.

Returns:

the CustomImagePropertiesFromVm object itself.

withWindowsOsInfo

public CustomImagePropertiesFromVm withWindowsOsInfo(WindowsOsInfo windowsOsInfo)

Set the windowsOsInfo property: The Windows OS information of the VM.

Parameters:

windowsOsInfo - the windowsOsInfo value to set.

Returns:

the CustomImagePropertiesFromVm object itself.

Applies to