Class ComputeInstanceTemplateNetworkInterface.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_instance_template.ComputeInstanceTemplateNetworkInterface.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInstanceTemplateNetworkInterface>
- Enclosing interface:
- ComputeInstanceTemplateNetworkInterface
@Stability(Stable) public static final class ComputeInstanceTemplateNetworkInterface.Builder extends Object implements software.amazon.jsii.Builder<ComputeInstanceTemplateNetworkInterface>
A builder forComputeInstanceTemplateNetworkInterface
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
accessConfig
@Stability(Stable) public ComputeInstanceTemplateNetworkInterface.Builder accessConfig(com.hashicorp.cdktf.IResolvable accessConfig)
Sets the value ofComputeInstanceTemplateNetworkInterface.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_template#access_config ComputeInstanceTemplate#access_config}- Returns:
this
-
accessConfig
@Stability(Stable) public ComputeInstanceTemplateNetworkInterface.Builder accessConfig(List<? extends ComputeInstanceTemplateNetworkInterfaceAccessConfig> accessConfig)
Sets the value ofComputeInstanceTemplateNetworkInterface.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_template#access_config ComputeInstanceTemplate#access_config}- Returns:
this
-
aliasIpRange
@Stability(Stable) public ComputeInstanceTemplateNetworkInterface.Builder aliasIpRange(com.hashicorp.cdktf.IResolvable aliasIpRange)
Sets the value ofComputeInstanceTemplateNetworkInterface.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_template#alias_ip_range ComputeInstanceTemplate#alias_ip_range}- Returns:
this
-
aliasIpRange
@Stability(Stable) public ComputeInstanceTemplateNetworkInterface.Builder aliasIpRange(List<? extends ComputeInstanceTemplateNetworkInterfaceAliasIpRange> aliasIpRange)
Sets the value ofComputeInstanceTemplateNetworkInterface.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_template#alias_ip_range ComputeInstanceTemplate#alias_ip_range}- Returns:
this
-
internalIpv6PrefixLength
@Stability(Stable) public ComputeInstanceTemplateNetworkInterface.Builder internalIpv6PrefixLength(Number internalIpv6PrefixLength)
Sets the value ofComputeInstanceTemplateNetworkInterface.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_template#internal_ipv6_prefix_length ComputeInstanceTemplate#internal_ipv6_prefix_length}- Returns:
this
-
ipv6AccessConfig
@Stability(Stable) public ComputeInstanceTemplateNetworkInterface.Builder ipv6AccessConfig(com.hashicorp.cdktf.IResolvable ipv6AccessConfig)
Sets the value ofComputeInstanceTemplateNetworkInterface.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_template#ipv6_access_config ComputeInstanceTemplate#ipv6_access_config}- Returns:
this
-
ipv6AccessConfig
@Stability(Stable) public ComputeInstanceTemplateNetworkInterface.Builder ipv6AccessConfig(List<? extends ComputeInstanceTemplateNetworkInterfaceIpv6AccessConfig> ipv6AccessConfig)
Sets the value ofComputeInstanceTemplateNetworkInterface.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_template#ipv6_access_config ComputeInstanceTemplate#ipv6_access_config}- Returns:
this
-
ipv6Address
@Stability(Stable) public ComputeInstanceTemplateNetworkInterface.Builder ipv6Address(String ipv6Address)
Sets the value ofComputeInstanceTemplateNetworkInterface.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_template#ipv6_address ComputeInstanceTemplate#ipv6_address}- Returns:
this
-
network
@Stability(Stable) public ComputeInstanceTemplateNetworkInterface.Builder network(String network)
Sets the value ofComputeInstanceTemplateNetworkInterface.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_instance_template#network ComputeInstanceTemplate#network}- Returns:
this
-
networkIp
@Stability(Stable) public ComputeInstanceTemplateNetworkInterface.Builder networkIp(String networkIp)
Sets the value ofComputeInstanceTemplateNetworkInterface.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_instance_template#network_ip ComputeInstanceTemplate#network_ip}- Returns:
this
-
nicType
@Stability(Stable) public ComputeInstanceTemplateNetworkInterface.Builder nicType(String nicType)
Sets the value ofComputeInstanceTemplateNetworkInterface.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_template#nic_type ComputeInstanceTemplate#nic_type}- Returns:
this
-
queueCount
@Stability(Stable) public ComputeInstanceTemplateNetworkInterface.Builder queueCount(Number queueCount)
Sets the value ofComputeInstanceTemplateNetworkInterface.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_template#queue_count ComputeInstanceTemplate#queue_count}- Returns:
this
-
stackType
@Stability(Stable) public ComputeInstanceTemplateNetworkInterface.Builder stackType(String stackType)
Sets the value ofComputeInstanceTemplateNetworkInterface.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_template#stack_type ComputeInstanceTemplate#stack_type}- Returns:
this
-
subnetwork
@Stability(Stable) public ComputeInstanceTemplateNetworkInterface.Builder subnetwork(String subnetwork)
Sets the value ofComputeInstanceTemplateNetworkInterface.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_instance_template#subnetwork ComputeInstanceTemplate#subnetwork}- Returns:
this
-
subnetworkProject
@Stability(Stable) public ComputeInstanceTemplateNetworkInterface.Builder subnetworkProject(String subnetworkProject)
Sets the value ofComputeInstanceTemplateNetworkInterface.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_instance_template#subnetwork_project ComputeInstanceTemplate#subnetwork_project}- Returns:
this
-
build
@Stability(Stable) public ComputeInstanceTemplateNetworkInterface build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInstanceTemplateNetworkInterface>- Returns:
- a new instance of
ComputeInstanceTemplateNetworkInterface - Throws:
NullPointerException- if any required attribute was not provided
-
-