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 proxy virtual machine used to pass traffic to the build VM and validation VM.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 proxy virtual machine used to pass traffic to the build VM and validation VM.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 proxy virtual machine used to pass traffic to the build VM and validation VM. Omit or specify empty string to use the default (Standard_A1_v2).- Returns:
- the proxyVmSize value.
-
withProxyVmSize
public VirtualNetworkConfig withProxyVmSize(String proxyVmSize)
Set the proxyVmSize property: Size of the proxy virtual machine used to pass traffic to the build VM and validation VM. Omit or specify empty string to use the default (Standard_A1_v2).- 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.
-
-