Class SaveImageBody
- java.lang.Object
-
- com.azure.resourcemanager.labservices.models.SaveImageBody
-
public final class SaveImageBody extends Object
Body for the save image POST.
-
-
Constructor Summary
Constructors Constructor Description SaveImageBody()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
labVirtualMachineId()
Get the labVirtualMachineId property: The ID of the lab virtual machine you want to save an image from.String
name()
Get the name property: The name for the image we create.void
validate()
Validates the instance.SaveImageBody
withLabVirtualMachineId(String labVirtualMachineId)
Set the labVirtualMachineId property: The ID of the lab virtual machine you want to save an image from.SaveImageBody
withName(String name)
Set the name property: The name for the image we create.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The name for the image we create.- Returns:
- the name value.
-
withName
public SaveImageBody withName(String name)
Set the name property: The name for the image we create.- Parameters:
name
- the name value to set.- Returns:
- the SaveImageBody object itself.
-
labVirtualMachineId
public String labVirtualMachineId()
Get the labVirtualMachineId property: The ID of the lab virtual machine you want to save an image from.- Returns:
- the labVirtualMachineId value.
-
withLabVirtualMachineId
public SaveImageBody withLabVirtualMachineId(String labVirtualMachineId)
Set the labVirtualMachineId property: The ID of the lab virtual machine you want to save an image from.- Parameters:
labVirtualMachineId
- the labVirtualMachineId value to set.- Returns:
- the SaveImageBody object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-