Class VirtualNetworkConfig
- java.lang.Object
-
- com.azure.resourcemanager.imagebuilder.models.VirtualNetworkConfig
-
public final class VirtualNetworkConfig extends Object
Virtual Network configuration.
-
-
Constructor Summary
Constructors Constructor Description VirtualNetworkConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
proxyVmSize()
Get the proxyVmSize property: Size of the virtual machine used to build, customize and capture images.String
subnetId()
Get the subnetId property: Resource id of a pre-existing subnet.void
validate()
Validates the instance.VirtualNetworkConfig
withProxyVmSize(String proxyVmSize)
Set the proxyVmSize property: Size of the virtual machine used to build, customize and capture images.VirtualNetworkConfig
withSubnetId(String subnetId)
Set the subnetId property: Resource id of a pre-existing subnet.
-
-
-
Method Detail
-
subnetId
public String subnetId()
Get the subnetId property: Resource id of a pre-existing subnet.- Returns:
- the subnetId value.
-
withSubnetId
public VirtualNetworkConfig withSubnetId(String subnetId)
Set the subnetId property: Resource id of a pre-existing subnet.- Parameters:
subnetId
- the subnetId value to set.- Returns:
- the VirtualNetworkConfig object itself.
-
proxyVmSize
public String proxyVmSize()
Get the proxyVmSize 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 proxyVmSize value.
-
withProxyVmSize
public VirtualNetworkConfig withProxyVmSize(String proxyVmSize)
Set the proxyVmSize 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:
proxyVmSize
- the proxyVmSize value to set.- Returns:
- the VirtualNetworkConfig object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-