CustomImagePropertiesFromVm Class
- java.
lang. Object - com.
azure. resourcemanager. devtestlabs. models. CustomImagePropertiesFromVm
- com.
public final class CustomImagePropertiesFromVm
Properties for creating a custom image from a virtual machine.
Constructor Summary
Constructor | Description |
---|---|
CustomImagePropertiesFromVm() |
Creates an instance of Custom |
Method Summary
Modifier and Type | Method and Description |
---|---|
Linux |
linuxOsInfo()
Get the linux |
String |
sourceVmId()
Get the source |
void |
validate()
Validates the instance. |
Windows |
windowsOsInfo()
Get the windows |
Custom |
withLinuxOsInfo(LinuxOsInfo linuxOsInfo)
Set the linux |
Custom |
withSourceVmId(String sourceVmId)
Set the source |
Custom |
withWindowsOsInfo(WindowsOsInfo windowsOsInfo)
Set the windows |
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:
sourceVmId
public String sourceVmId()
Get the sourceVmId property: The source vm identifier.
Returns:
validate
public void validate()
Validates the instance.
windowsOsInfo
public WindowsOsInfo windowsOsInfo()
Get the windowsOsInfo property: The Windows OS information of the VM.
Returns:
withLinuxOsInfo
public CustomImagePropertiesFromVm withLinuxOsInfo(LinuxOsInfo linuxOsInfo)
Set the linuxOsInfo property: The Linux OS information of the VM.
Parameters:
Returns:
withSourceVmId
public CustomImagePropertiesFromVm withSourceVmId(String sourceVmId)
Set the sourceVmId property: The source vm identifier.
Parameters:
Returns:
withWindowsOsInfo
public CustomImagePropertiesFromVm withWindowsOsInfo(WindowsOsInfo windowsOsInfo)
Set the windowsOsInfo property: The Windows OS information of the VM.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for