Class ComputeRegionInstanceTemplateNetworkInterface.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_instance_template.ComputeRegionInstanceTemplateNetworkInterface.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionInstanceTemplateNetworkInterface>
- Enclosing interface:
- ComputeRegionInstanceTemplateNetworkInterface
@Stability(Stable) public static final class ComputeRegionInstanceTemplateNetworkInterface.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionInstanceTemplateNetworkInterface>
A builder forComputeRegionInstanceTemplateNetworkInterface
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
accessConfig
@Stability(Stable) public ComputeRegionInstanceTemplateNetworkInterface.Builder accessConfig(com.hashicorp.cdktf.IResolvable accessConfig)
Sets the value ofComputeRegionInstanceTemplateNetworkInterface.getAccessConfig()- Parameters:
accessConfig- access_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_instance_template#access_config ComputeRegionInstanceTemplate#access_config}- Returns:
this
-
accessConfig
@Stability(Stable) public ComputeRegionInstanceTemplateNetworkInterface.Builder accessConfig(List<? extends ComputeRegionInstanceTemplateNetworkInterfaceAccessConfig> accessConfig)
Sets the value ofComputeRegionInstanceTemplateNetworkInterface.getAccessConfig()- Parameters:
accessConfig- access_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_instance_template#access_config ComputeRegionInstanceTemplate#access_config}- Returns:
this
-
aliasIpRange
@Stability(Stable) public ComputeRegionInstanceTemplateNetworkInterface.Builder aliasIpRange(com.hashicorp.cdktf.IResolvable aliasIpRange)
Sets the value ofComputeRegionInstanceTemplateNetworkInterface.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_region_instance_template#alias_ip_range ComputeRegionInstanceTemplate#alias_ip_range}- Returns:
this
-
aliasIpRange
@Stability(Stable) public ComputeRegionInstanceTemplateNetworkInterface.Builder aliasIpRange(List<? extends ComputeRegionInstanceTemplateNetworkInterfaceAliasIpRange> aliasIpRange)
Sets the value ofComputeRegionInstanceTemplateNetworkInterface.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_region_instance_template#alias_ip_range ComputeRegionInstanceTemplate#alias_ip_range}- Returns:
this
-
internalIpv6PrefixLength
@Stability(Stable) public ComputeRegionInstanceTemplateNetworkInterface.Builder internalIpv6PrefixLength(Number internalIpv6PrefixLength)
- 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_region_instance_template#internal_ipv6_prefix_length ComputeRegionInstanceTemplate#internal_ipv6_prefix_length}- Returns:
this
-
ipv6AccessConfig
@Stability(Stable) public ComputeRegionInstanceTemplateNetworkInterface.Builder ipv6AccessConfig(com.hashicorp.cdktf.IResolvable ipv6AccessConfig)
Sets the value ofComputeRegionInstanceTemplateNetworkInterface.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_region_instance_template#ipv6_access_config ComputeRegionInstanceTemplate#ipv6_access_config}- Returns:
this
-
ipv6AccessConfig
@Stability(Stable) public ComputeRegionInstanceTemplateNetworkInterface.Builder ipv6AccessConfig(List<? extends ComputeRegionInstanceTemplateNetworkInterfaceIpv6AccessConfig> ipv6AccessConfig)
Sets the value ofComputeRegionInstanceTemplateNetworkInterface.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_region_instance_template#ipv6_access_config ComputeRegionInstanceTemplate#ipv6_access_config}- Returns:
this
-
ipv6Address
@Stability(Stable) public ComputeRegionInstanceTemplateNetworkInterface.Builder ipv6Address(String ipv6Address)
Sets the value ofComputeRegionInstanceTemplateNetworkInterface.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_region_instance_template#ipv6_address ComputeRegionInstanceTemplate#ipv6_address}- Returns:
this
-
network
@Stability(Stable) public ComputeRegionInstanceTemplateNetworkInterface.Builder network(String network)
Sets the value ofComputeRegionInstanceTemplateNetworkInterface.getNetwork()- Parameters:
network- The name or self_link of the network to attach this interface to. Use network attribute for Legacy or Auto subnetted networks and subnetwork for custom subnetted networks. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_instance_template#network ComputeRegionInstanceTemplate#network}- Returns:
this
-
networkIp
@Stability(Stable) public ComputeRegionInstanceTemplateNetworkInterface.Builder networkIp(String networkIp)
Sets the value ofComputeRegionInstanceTemplateNetworkInterface.getNetworkIp()- Parameters:
networkIp- The private IP address to assign to the instance. If empty, the address will be automatically assigned. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_instance_template#network_ip ComputeRegionInstanceTemplate#network_ip}- Returns:
this
-
nicType
@Stability(Stable) public ComputeRegionInstanceTemplateNetworkInterface.Builder nicType(String nicType)
Sets the value ofComputeRegionInstanceTemplateNetworkInterface.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_region_instance_template#nic_type ComputeRegionInstanceTemplate#nic_type}- Returns:
this
-
queueCount
@Stability(Stable) public ComputeRegionInstanceTemplateNetworkInterface.Builder queueCount(Number queueCount)
Sets the value ofComputeRegionInstanceTemplateNetworkInterface.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_region_instance_template#queue_count ComputeRegionInstanceTemplate#queue_count}- Returns:
this
-
stackType
@Stability(Stable) public ComputeRegionInstanceTemplateNetworkInterface.Builder stackType(String stackType)
Sets the value ofComputeRegionInstanceTemplateNetworkInterface.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_region_instance_template#stack_type ComputeRegionInstanceTemplate#stack_type}- Returns:
this
-
subnetwork
@Stability(Stable) public ComputeRegionInstanceTemplateNetworkInterface.Builder subnetwork(String subnetwork)
Sets the value ofComputeRegionInstanceTemplateNetworkInterface.getSubnetwork()- Parameters:
subnetwork- The name of the subnetwork to attach this interface to. The subnetwork must exist in the same region this instance will be created in. Either network or subnetwork must be provided. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_instance_template#subnetwork ComputeRegionInstanceTemplate#subnetwork}- Returns:
this
-
subnetworkProject
@Stability(Stable) public ComputeRegionInstanceTemplateNetworkInterface.Builder subnetworkProject(String subnetworkProject)
Sets the value ofComputeRegionInstanceTemplateNetworkInterface.getSubnetworkProject()- Parameters:
subnetworkProject- The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_instance_template#subnetwork_project ComputeRegionInstanceTemplate#subnetwork_project}- Returns:
this
-
build
@Stability(Stable) public ComputeRegionInstanceTemplateNetworkInterface build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionInstanceTemplateNetworkInterface>- Returns:
- a new instance of
ComputeRegionInstanceTemplateNetworkInterface - Throws:
NullPointerException- if any required attribute was not provided
-
-