Class ComputeInstanceNetworkInterface.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_instance.ComputeInstanceNetworkInterface.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInstanceNetworkInterface>
- Enclosing interface:
- ComputeInstanceNetworkInterface
@Stability(Stable) public static final class ComputeInstanceNetworkInterface.Builder extends Object implements software.amazon.jsii.Builder<ComputeInstanceNetworkInterface>
A builder forComputeInstanceNetworkInterface
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
accessConfig
@Stability(Stable) public ComputeInstanceNetworkInterface.Builder accessConfig(com.hashicorp.cdktf.IResolvable accessConfig)
Sets the value ofComputeInstanceNetworkInterface.getAccessConfig()- Parameters:
accessConfig- access_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#access_config ComputeInstance#access_config}- Returns:
this
-
accessConfig
@Stability(Stable) public ComputeInstanceNetworkInterface.Builder accessConfig(List<? extends ComputeInstanceNetworkInterfaceAccessConfig> accessConfig)
Sets the value ofComputeInstanceNetworkInterface.getAccessConfig()- Parameters:
accessConfig- access_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#access_config ComputeInstance#access_config}- Returns:
this
-
aliasIpRange
@Stability(Stable) public ComputeInstanceNetworkInterface.Builder aliasIpRange(com.hashicorp.cdktf.IResolvable aliasIpRange)
Sets the value ofComputeInstanceNetworkInterface.getAliasIpRange()- Parameters:
aliasIpRange- alias_ip_range block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#alias_ip_range ComputeInstance#alias_ip_range}- Returns:
this
-
aliasIpRange
@Stability(Stable) public ComputeInstanceNetworkInterface.Builder aliasIpRange(List<? extends ComputeInstanceNetworkInterfaceAliasIpRange> aliasIpRange)
Sets the value ofComputeInstanceNetworkInterface.getAliasIpRange()- Parameters:
aliasIpRange- alias_ip_range block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#alias_ip_range ComputeInstance#alias_ip_range}- Returns:
this
-
internalIpv6PrefixLength
@Stability(Stable) public ComputeInstanceNetworkInterface.Builder internalIpv6PrefixLength(Number internalIpv6PrefixLength)
Sets the value ofComputeInstanceNetworkInterface.getInternalIpv6PrefixLength()- Parameters:
internalIpv6PrefixLength- The prefix length of the primary internal IPv6 range. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#internal_ipv6_prefix_length ComputeInstance#internal_ipv6_prefix_length}- Returns:
this
-
ipv6AccessConfig
@Stability(Stable) public ComputeInstanceNetworkInterface.Builder ipv6AccessConfig(com.hashicorp.cdktf.IResolvable ipv6AccessConfig)
Sets the value ofComputeInstanceNetworkInterface.getIpv6AccessConfig()- Parameters:
ipv6AccessConfig- ipv6_access_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#ipv6_access_config ComputeInstance#ipv6_access_config}- Returns:
this
-
ipv6AccessConfig
@Stability(Stable) public ComputeInstanceNetworkInterface.Builder ipv6AccessConfig(List<? extends ComputeInstanceNetworkInterfaceIpv6AccessConfig> ipv6AccessConfig)
Sets the value ofComputeInstanceNetworkInterface.getIpv6AccessConfig()- Parameters:
ipv6AccessConfig- ipv6_access_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#ipv6_access_config ComputeInstance#ipv6_access_config}- Returns:
this
-
ipv6Address
@Stability(Stable) public ComputeInstanceNetworkInterface.Builder ipv6Address(String ipv6Address)
Sets the value ofComputeInstanceNetworkInterface.getIpv6Address()- Parameters:
ipv6Address- An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#ipv6_address ComputeInstance#ipv6_address}- Returns:
this
-
network
@Stability(Stable) public ComputeInstanceNetworkInterface.Builder network(String network)
Sets the value ofComputeInstanceNetworkInterface.getNetwork()- Parameters:
network- The name or self_link of the network attached to this interface. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#network ComputeInstance#network}- Returns:
this
-
networkIp
@Stability(Stable) public ComputeInstanceNetworkInterface.Builder networkIp(String networkIp)
Sets the value ofComputeInstanceNetworkInterface.getNetworkIp()- Parameters:
networkIp- The private IP address assigned to the instance. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#network_ip ComputeInstance#network_ip}- Returns:
this
-
nicType
@Stability(Stable) public ComputeInstanceNetworkInterface.Builder nicType(String nicType)
Sets the value ofComputeInstanceNetworkInterface.getNicType()- Parameters:
nicType- The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#nic_type ComputeInstance#nic_type}- Returns:
this
-
queueCount
@Stability(Stable) public ComputeInstanceNetworkInterface.Builder queueCount(Number queueCount)
Sets the value ofComputeInstanceNetworkInterface.getQueueCount()- Parameters:
queueCount- The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#queue_count ComputeInstance#queue_count}- Returns:
this
-
stackType
@Stability(Stable) public ComputeInstanceNetworkInterface.Builder stackType(String stackType)
Sets the value ofComputeInstanceNetworkInterface.getStackType()- Parameters:
stackType- The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#stack_type ComputeInstance#stack_type}- Returns:
this
-
subnetwork
@Stability(Stable) public ComputeInstanceNetworkInterface.Builder subnetwork(String subnetwork)
Sets the value ofComputeInstanceNetworkInterface.getSubnetwork()- Parameters:
subnetwork- The name or self_link of the subnetwork attached to this interface. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#subnetwork ComputeInstance#subnetwork}- Returns:
this
-
subnetworkProject
@Stability(Stable) public ComputeInstanceNetworkInterface.Builder subnetworkProject(String subnetworkProject)
Sets the value ofComputeInstanceNetworkInterface.getSubnetworkProject()- Parameters:
subnetworkProject- The project in which the subnetwork belongs. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance#subnetwork_project ComputeInstance#subnetwork_project}- Returns:
this
-
build
@Stability(Stable) public ComputeInstanceNetworkInterface build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInstanceNetworkInterface>- Returns:
- a new instance of
ComputeInstanceNetworkInterface - Throws:
NullPointerException- if any required attribute was not provided
-
-