Class ImageTemplateVmProfile
- java.lang.Object
-
- com.azure.resourcemanager.imagebuilder.models.ImageTemplateVmProfile
-
public final class ImageTemplateVmProfile extends Object
Describes the virtual machines used to build and validate images.
-
-
Constructor Summary
Constructors Constructor Description ImageTemplateVmProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
osDiskSizeGB()
Get the osDiskSizeGB property: Size of the OS disk in GB.List<String>
userAssignedIdentities()
Get the userAssignedIdentities property: Optional array of resource IDs of user assigned managed identities to be configured on the build VM and validation VM.void
validate()
Validates the instance.String
vmSize()
Get the vmSize property: Size of the virtual machine used to build, customize and capture images.VirtualNetworkConfig
vnetConfig()
Get the vnetConfig property: Optional configuration of the virtual network to use to deploy the build VM and validation VM in.ImageTemplateVmProfile
withOsDiskSizeGB(Integer osDiskSizeGB)
Set the osDiskSizeGB property: Size of the OS disk in GB.ImageTemplateVmProfile
withUserAssignedIdentities(List<String> userAssignedIdentities)
Set the userAssignedIdentities property: Optional array of resource IDs of user assigned managed identities to be configured on the build VM and validation VM.ImageTemplateVmProfile
withVmSize(String vmSize)
Set the vmSize property: Size of the virtual machine used to build, customize and capture images.ImageTemplateVmProfile
withVnetConfig(VirtualNetworkConfig vnetConfig)
Set the vnetConfig property: Optional configuration of the virtual network to use to deploy the build VM and validation VM in.
-
-
-
Method Detail
-
vmSize
public String vmSize()
Get the vmSize property: Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).- Returns:
- the vmSize value.
-
withVmSize
public ImageTemplateVmProfile withVmSize(String vmSize)
Set the vmSize property: Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).- Parameters:
vmSize
- the vmSize value to set.- Returns:
- the ImageTemplateVmProfile object itself.
-
osDiskSizeGB
public Integer osDiskSizeGB()
Get the osDiskSizeGB property: Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.- Returns:
- the osDiskSizeGB value.
-
withOsDiskSizeGB
public ImageTemplateVmProfile withOsDiskSizeGB(Integer osDiskSizeGB)
Set the osDiskSizeGB property: Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.- Parameters:
osDiskSizeGB
- the osDiskSizeGB value to set.- Returns:
- the ImageTemplateVmProfile object itself.
-
userAssignedIdentities
public List<String> userAssignedIdentities()
Get the userAssignedIdentities property: Optional array of resource IDs of user assigned managed identities to be configured on the build VM and validation VM. This may include the identity of the image template.- Returns:
- the userAssignedIdentities value.
-
withUserAssignedIdentities
public ImageTemplateVmProfile withUserAssignedIdentities(List<String> userAssignedIdentities)
Set the userAssignedIdentities property: Optional array of resource IDs of user assigned managed identities to be configured on the build VM and validation VM. This may include the identity of the image template.- Parameters:
userAssignedIdentities
- the userAssignedIdentities value to set.- Returns:
- the ImageTemplateVmProfile object itself.
-
vnetConfig
public VirtualNetworkConfig vnetConfig()
Get the vnetConfig property: Optional configuration of the virtual network to use to deploy the build VM and validation VM in. Omit if no specific virtual network needs to be used.- Returns:
- the vnetConfig value.
-
withVnetConfig
public ImageTemplateVmProfile withVnetConfig(VirtualNetworkConfig vnetConfig)
Set the vnetConfig property: Optional configuration of the virtual network to use to deploy the build VM and validation VM in. Omit if no specific virtual network needs to be used.- Parameters:
vnetConfig
- the vnetConfig value to set.- Returns:
- the ImageTemplateVmProfile object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-