VirtualNetworkConfig Class

  • java.lang.Object
    • com.azure.resourcemanager.imagebuilder.models.VirtualNetworkConfig

Implements

public final class VirtualNetworkConfig
implements JsonSerializable<VirtualNetworkConfig>

Virtual Network configuration.

Constructor Summary

Constructor Description
VirtualNetworkConfig()

Creates an instance of VirtualNetworkConfig class.

Method Summary

Modifier and Type Method and Description
String containerInstanceSubnetId()

Get the containerInstanceSubnetId property: Resource id of a pre-existing subnet on which Azure Container Instance will be deployed for Isolated Builds.

static VirtualNetworkConfig fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkConfig from the JsonReader.

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 on which the build VM and validation VM will be deployed.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

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.

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 on which the build VM and validation VM will be deployed.

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:

the containerInstanceSubnetId value.

fromJson

public static VirtualNetworkConfig fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkConfig from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualNetworkConfig if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the VirtualNetworkConfig.

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:

the proxyVmSize value.

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:

the subnetId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

containerInstanceSubnetId - the containerInstanceSubnetId value to set.

Returns:

the VirtualNetworkConfig object itself.

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:

proxyVmSize - the proxyVmSize value to set.

Returns:

the VirtualNetworkConfig object itself.

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:

subnetId - the subnetId value to set.

Returns:

the VirtualNetworkConfig object itself.

Applies to