Class ComputeInstanceFromTemplateNetworkInterface.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_instance_from_template.ComputeInstanceFromTemplateNetworkInterface.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInstanceFromTemplateNetworkInterface>
- Enclosing interface:
- ComputeInstanceFromTemplateNetworkInterface
@Stability(Stable) public static final class ComputeInstanceFromTemplateNetworkInterface.Builder extends Object implements software.amazon.jsii.Builder<ComputeInstanceFromTemplateNetworkInterface>
A builder forComputeInstanceFromTemplateNetworkInterface
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
accessConfig
@Stability(Stable) public ComputeInstanceFromTemplateNetworkInterface.Builder accessConfig(com.hashicorp.cdktf.IResolvable accessConfig)
Sets the value ofComputeInstanceFromTemplateNetworkInterface.getAccessConfig()- Parameters:
accessConfig- Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_from_template#access_config ComputeInstanceFromTemplate#access_config}- Returns:
this
-
accessConfig
@Stability(Stable) public ComputeInstanceFromTemplateNetworkInterface.Builder accessConfig(List<? extends ComputeInstanceFromTemplateNetworkInterfaceAccessConfig> accessConfig)
Sets the value ofComputeInstanceFromTemplateNetworkInterface.getAccessConfig()- Parameters:
accessConfig- Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_from_template#access_config ComputeInstanceFromTemplate#access_config}- Returns:
this
-
aliasIpRange
@Stability(Stable) public ComputeInstanceFromTemplateNetworkInterface.Builder aliasIpRange(com.hashicorp.cdktf.IResolvable aliasIpRange)
Sets the value ofComputeInstanceFromTemplateNetworkInterface.getAliasIpRange()- Parameters:
aliasIpRange- An array of alias IP ranges for this network interface. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_from_template#alias_ip_range ComputeInstanceFromTemplate#alias_ip_range}- Returns:
this
-
aliasIpRange
@Stability(Stable) public ComputeInstanceFromTemplateNetworkInterface.Builder aliasIpRange(List<? extends ComputeInstanceFromTemplateNetworkInterfaceAliasIpRange> aliasIpRange)
Sets the value ofComputeInstanceFromTemplateNetworkInterface.getAliasIpRange()- Parameters:
aliasIpRange- An array of alias IP ranges for this network interface. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_from_template#alias_ip_range ComputeInstanceFromTemplate#alias_ip_range}- Returns:
this
-
internalIpv6PrefixLength
@Stability(Stable) public ComputeInstanceFromTemplateNetworkInterface.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_instance_from_template#internal_ipv6_prefix_length ComputeInstanceFromTemplate#internal_ipv6_prefix_length}- Returns:
this
-
ipv6AccessConfig
@Stability(Stable) public ComputeInstanceFromTemplateNetworkInterface.Builder ipv6AccessConfig(com.hashicorp.cdktf.IResolvable ipv6AccessConfig)
Sets the value ofComputeInstanceFromTemplateNetworkInterface.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_from_template#ipv6_access_config ComputeInstanceFromTemplate#ipv6_access_config}- Returns:
this
-
ipv6AccessConfig
@Stability(Stable) public ComputeInstanceFromTemplateNetworkInterface.Builder ipv6AccessConfig(List<? extends ComputeInstanceFromTemplateNetworkInterfaceIpv6AccessConfig> ipv6AccessConfig)
Sets the value ofComputeInstanceFromTemplateNetworkInterface.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_from_template#ipv6_access_config ComputeInstanceFromTemplate#ipv6_access_config}- Returns:
this
-
ipv6Address
@Stability(Stable) public ComputeInstanceFromTemplateNetworkInterface.Builder ipv6Address(String ipv6Address)
Sets the value ofComputeInstanceFromTemplateNetworkInterface.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_from_template#ipv6_address ComputeInstanceFromTemplate#ipv6_address}- Returns:
this
-
network
@Stability(Stable) public ComputeInstanceFromTemplateNetworkInterface.Builder network(String network)
Sets the value ofComputeInstanceFromTemplateNetworkInterface.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_from_template#network ComputeInstanceFromTemplate#network}- Returns:
this
-
networkIp
@Stability(Stable) public ComputeInstanceFromTemplateNetworkInterface.Builder networkIp(String networkIp)
Sets the value ofComputeInstanceFromTemplateNetworkInterface.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_from_template#network_ip ComputeInstanceFromTemplate#network_ip}- Returns:
this
-
nicType
@Stability(Stable) public ComputeInstanceFromTemplateNetworkInterface.Builder nicType(String nicType)
Sets the value ofComputeInstanceFromTemplateNetworkInterface.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_from_template#nic_type ComputeInstanceFromTemplate#nic_type}- Returns:
this
-
queueCount
@Stability(Stable) public ComputeInstanceFromTemplateNetworkInterface.Builder queueCount(Number queueCount)
Sets the value ofComputeInstanceFromTemplateNetworkInterface.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_from_template#queue_count ComputeInstanceFromTemplate#queue_count}- Returns:
this
-
stackType
@Stability(Stable) public ComputeInstanceFromTemplateNetworkInterface.Builder stackType(String stackType)
Sets the value ofComputeInstanceFromTemplateNetworkInterface.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_from_template#stack_type ComputeInstanceFromTemplate#stack_type}- Returns:
this
-
subnetwork
@Stability(Stable) public ComputeInstanceFromTemplateNetworkInterface.Builder subnetwork(String subnetwork)
Sets the value ofComputeInstanceFromTemplateNetworkInterface.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_from_template#subnetwork ComputeInstanceFromTemplate#subnetwork}- Returns:
this
-
subnetworkProject
@Stability(Stable) public ComputeInstanceFromTemplateNetworkInterface.Builder subnetworkProject(String subnetworkProject)
Sets the value ofComputeInstanceFromTemplateNetworkInterface.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_from_template#subnetwork_project ComputeInstanceFromTemplate#subnetwork_project}- Returns:
this
-
build
@Stability(Stable) public ComputeInstanceFromTemplateNetworkInterface build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInstanceFromTemplateNetworkInterface>- Returns:
- a new instance of
ComputeInstanceFromTemplateNetworkInterface - Throws:
NullPointerException- if any required attribute was not provided
-
-