VirtualNetworkConfig Class
- java.
lang. Object - com.
azure. resourcemanager. imagebuilder. models. VirtualNetworkConfig
- com.
Implements
public final class VirtualNetworkConfig
implements JsonSerializable<VirtualNetworkConfig>
Virtual Network configuration.
Constructor Summary
| Constructor | Description |
|---|---|
| VirtualNetworkConfig() |
Creates an instance of Virtual |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
containerInstanceSubnetId()
Get the container |
|
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
| String |
proxyVmSize()
Get the proxy |
| String |
subnetId()
Get the subnet |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Virtual |
withContainerInstanceSubnetId(String containerInstanceSubnetId)
Set the container |
|
Virtual |
withProxyVmSize(String proxyVmSize)
Set the proxy |
|
Virtual |
withSubnetId(String subnetId)
Set the subnet |
Methods inherited from java.lang.Object
Constructor Details
VirtualNetworkConfig
public VirtualNetworkConfig()
Creates an instance of VirtualNetworkConfig class.
Method Details
containerInstanceSubnetId
public String containerInstanceSubnetId()
Get the containerInstanceSubnetId property: Resource id of a pre-existing subnet on which Azure Container Instance will be deployed for Isolated Builds. This field may be specified only if `subnetId` is also specified and must be on the same Virtual Network as the subnet specified in `subnetId`.
Returns:
fromJson
public static VirtualNetworkConfig fromJson(JsonReader jsonReader)
Reads an instance of VirtualNetworkConfig from the JsonReader.
Parameters:
Returns:
Throws:
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. This must not be specified if `containerInstanceSubnetId` is specified because no proxy virtual machine is deployed in that case. Omit or specify empty string to use the default (Standard_A1_v2).
Returns:
subnetId
public String subnetId()
Get the subnetId property: Resource id of a pre-existing subnet on which the build VM and validation VM will be deployed.
Returns:
toJson
validate
public void validate()
Validates the instance.
withContainerInstanceSubnetId
public VirtualNetworkConfig withContainerInstanceSubnetId(String containerInstanceSubnetId)
Set the containerInstanceSubnetId property: Resource id of a pre-existing subnet on which Azure Container Instance will be deployed for Isolated Builds. This field may be specified only if `subnetId` is also specified and must be on the same Virtual Network as the subnet specified in `subnetId`.
Parameters:
Returns:
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. This must not be specified if `containerInstanceSubnetId` is specified because no proxy virtual machine is deployed in that case. Omit or specify empty string to use the default (Standard_A1_v2).
Parameters:
Returns:
withSubnetId
public VirtualNetworkConfig withSubnetId(String subnetId)
Set the subnetId property: Resource id of a pre-existing subnet on which the build VM and validation VM will be deployed.
Parameters:
Returns: