Class NetworkServicesLbTrafficExtensionConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.network_services_lb_traffic_extension.NetworkServicesLbTrafficExtensionConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkServicesLbTrafficExtensionConfig>
- Enclosing interface:
- NetworkServicesLbTrafficExtensionConfig
@Stability(Stable) public static final class NetworkServicesLbTrafficExtensionConfig.Builder extends Object implements software.amazon.jsii.Builder<NetworkServicesLbTrafficExtensionConfig>
A builder forNetworkServicesLbTrafficExtensionConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
extensionChains
@Stability(Stable) public NetworkServicesLbTrafficExtensionConfig.Builder extensionChains(com.hashicorp.cdktf.IResolvable extensionChains)
Sets the value ofNetworkServicesLbTrafficExtensionConfig.getExtensionChains()- Parameters:
extensionChains- extension_chains block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_lb_traffic_extension#extension_chains NetworkServicesLbTrafficExtension#extension_chains}- Returns:
this
-
extensionChains
@Stability(Stable) public NetworkServicesLbTrafficExtensionConfig.Builder extensionChains(List<? extends NetworkServicesLbTrafficExtensionExtensionChains> extensionChains)
Sets the value ofNetworkServicesLbTrafficExtensionConfig.getExtensionChains()- Parameters:
extensionChains- extension_chains block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_lb_traffic_extension#extension_chains NetworkServicesLbTrafficExtension#extension_chains}- Returns:
this
-
forwardingRules
@Stability(Stable) public NetworkServicesLbTrafficExtensionConfig.Builder forwardingRules(List<String> forwardingRules)
Sets the value ofNetworkServicesLbTrafficExtensionConfig.getForwardingRules()- Parameters:
forwardingRules- A list of references to the forwarding rules to which this service extension is attached to. This parameter is required. At least one forwarding rule is required. There can be only one LBTrafficExtension resource per forwarding rule. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_lb_traffic_extension#forwarding_rules NetworkServicesLbTrafficExtension#forwarding_rules}- Returns:
this
-
location
@Stability(Stable) public NetworkServicesLbTrafficExtensionConfig.Builder location(String location)
Sets the value ofNetworkServicesLbTrafficExtensionConfig.getLocation()- Parameters:
location- The location of the traffic extension. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_lb_traffic_extension#location NetworkServicesLbTrafficExtension#location}- Returns:
this
-
name
@Stability(Stable) public NetworkServicesLbTrafficExtensionConfig.Builder name(String name)
Sets the value ofNetworkServicesLbTrafficExtensionConfig.getName()- Parameters:
name- Name of the LbTrafficExtension resource in the following format: projects/{project}/locations/{location}/lbTrafficExtensions/{lbTrafficExtension}. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_lb_traffic_extension#name NetworkServicesLbTrafficExtension#name}- Returns:
this
-
description
@Stability(Stable) public NetworkServicesLbTrafficExtensionConfig.Builder description(String description)
Sets the value ofNetworkServicesLbTrafficExtensionConfig.getDescription()- Parameters:
description- A human-readable description of the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_lb_traffic_extension#description NetworkServicesLbTrafficExtension#description}- Returns:
this
-
id
@Stability(Stable) public NetworkServicesLbTrafficExtensionConfig.Builder id(String id)
Sets the value ofNetworkServicesLbTrafficExtensionConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_lb_traffic_extension#id NetworkServicesLbTrafficExtension#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
labels
@Stability(Stable) public NetworkServicesLbTrafficExtensionConfig.Builder labels(Map<String,String> labels)
Sets the value ofNetworkServicesLbTrafficExtensionConfig.getLabels()- Parameters:
labels- Set of labels associated with the LbTrafficExtension resource. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_lb_traffic_extension#labels NetworkServicesLbTrafficExtension#labels}- Returns:
this
-
loadBalancingScheme
@Stability(Stable) public NetworkServicesLbTrafficExtensionConfig.Builder loadBalancingScheme(String loadBalancingScheme)
Sets the value ofNetworkServicesLbTrafficExtensionConfig.getLoadBalancingScheme()- Parameters:
loadBalancingScheme- All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. For more information, refer to [Choosing a load balancer](https://cloud.google.com/load-balancing/docs/backend-service) and [Supported application load balancers](https://cloud.google.com/service-extensions/docs/callouts-overview#supported-lbs). Possible values: ["INTERNAL_MANAGED", "EXTERNAL_MANAGED"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_lb_traffic_extension#load_balancing_scheme NetworkServicesLbTrafficExtension#load_balancing_scheme}- Returns:
this
-
project
@Stability(Stable) public NetworkServicesLbTrafficExtensionConfig.Builder project(String project)
Sets the value ofNetworkServicesLbTrafficExtensionConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_lb_traffic_extension#project NetworkServicesLbTrafficExtension#project}.- Returns:
this
-
timeouts
@Stability(Stable) public NetworkServicesLbTrafficExtensionConfig.Builder timeouts(NetworkServicesLbTrafficExtensionTimeouts timeouts)
Sets the value ofNetworkServicesLbTrafficExtensionConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_lb_traffic_extension#timeouts NetworkServicesLbTrafficExtension#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public NetworkServicesLbTrafficExtensionConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public NetworkServicesLbTrafficExtensionConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public NetworkServicesLbTrafficExtensionConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public NetworkServicesLbTrafficExtensionConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public NetworkServicesLbTrafficExtensionConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public NetworkServicesLbTrafficExtensionConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public NetworkServicesLbTrafficExtensionConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public NetworkServicesLbTrafficExtensionConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public NetworkServicesLbTrafficExtensionConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public NetworkServicesLbTrafficExtensionConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetworkServicesLbTrafficExtensionConfig>- Returns:
- a new instance of
NetworkServicesLbTrafficExtensionConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-