Class NetworkServicesEdgeCacheServiceConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.network_services_edge_cache_service.NetworkServicesEdgeCacheServiceConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkServicesEdgeCacheServiceConfig>
- Enclosing interface:
- NetworkServicesEdgeCacheServiceConfig
@Stability(Stable) public static final class NetworkServicesEdgeCacheServiceConfig.Builder extends Object implements software.amazon.jsii.Builder<NetworkServicesEdgeCacheServiceConfig>
A builder forNetworkServicesEdgeCacheServiceConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
@Stability(Stable) public NetworkServicesEdgeCacheServiceConfig.Builder name(String name)
Sets the value ofNetworkServicesEdgeCacheServiceConfig.getName()- Parameters:
name- Name of the resource;. This parameter is required. provided by the client when the resource is created. The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]* which means the first character must be a letter, and all following characters must be a dash, underscore, letter or digit. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#name NetworkServicesEdgeCacheService#name}- Returns:
this
-
routing
@Stability(Stable) public NetworkServicesEdgeCacheServiceConfig.Builder routing(NetworkServicesEdgeCacheServiceRouting routing)
Sets the value ofNetworkServicesEdgeCacheServiceConfig.getRouting()- Parameters:
routing- routing block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#routing NetworkServicesEdgeCacheService#routing}- Returns:
this
-
description
@Stability(Stable) public NetworkServicesEdgeCacheServiceConfig.Builder description(String description)
Sets the value ofNetworkServicesEdgeCacheServiceConfig.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_edge_cache_service#description NetworkServicesEdgeCacheService#description}- Returns:
this
-
disableHttp2
@Stability(Stable) public NetworkServicesEdgeCacheServiceConfig.Builder disableHttp2(Boolean disableHttp2)
Sets the value ofNetworkServicesEdgeCacheServiceConfig.getDisableHttp2()- Parameters:
disableHttp2- Disables HTTP/2. HTTP/2 (h2) is enabled by default and recommended for performance. HTTP/2 improves connection re-use and reduces connection setup overhead by sending multiple streams over the same connection. Some legacy HTTP clients may have issues with HTTP/2 connections due to broken HTTP/2 implementations. Setting this to true will prevent HTTP/2 from being advertised and negotiated. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#disable_http2 NetworkServicesEdgeCacheService#disable_http2}- Returns:
this
-
disableHttp2
@Stability(Stable) public NetworkServicesEdgeCacheServiceConfig.Builder disableHttp2(com.hashicorp.cdktf.IResolvable disableHttp2)
Sets the value ofNetworkServicesEdgeCacheServiceConfig.getDisableHttp2()- Parameters:
disableHttp2- Disables HTTP/2. HTTP/2 (h2) is enabled by default and recommended for performance. HTTP/2 improves connection re-use and reduces connection setup overhead by sending multiple streams over the same connection. Some legacy HTTP clients may have issues with HTTP/2 connections due to broken HTTP/2 implementations. Setting this to true will prevent HTTP/2 from being advertised and negotiated. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#disable_http2 NetworkServicesEdgeCacheService#disable_http2}- Returns:
this
-
disableQuic
@Stability(Stable) public NetworkServicesEdgeCacheServiceConfig.Builder disableQuic(Boolean disableQuic)
Sets the value ofNetworkServicesEdgeCacheServiceConfig.getDisableQuic()- Parameters:
disableQuic- HTTP/3 (IETF QUIC) and Google QUIC are enabled by default. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#disable_quic NetworkServicesEdgeCacheService#disable_quic}- Returns:
this
-
disableQuic
@Stability(Stable) public NetworkServicesEdgeCacheServiceConfig.Builder disableQuic(com.hashicorp.cdktf.IResolvable disableQuic)
Sets the value ofNetworkServicesEdgeCacheServiceConfig.getDisableQuic()- Parameters:
disableQuic- HTTP/3 (IETF QUIC) and Google QUIC are enabled by default. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#disable_quic NetworkServicesEdgeCacheService#disable_quic}- Returns:
this
-
edgeSecurityPolicy
@Stability(Stable) public NetworkServicesEdgeCacheServiceConfig.Builder edgeSecurityPolicy(String edgeSecurityPolicy)
Sets the value ofNetworkServicesEdgeCacheServiceConfig.getEdgeSecurityPolicy()- Parameters:
edgeSecurityPolicy- Resource URL that points at the Cloud Armor edge security policy that is applied on each request against the EdgeCacheService. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#edge_security_policy NetworkServicesEdgeCacheService#edge_security_policy}- Returns:
this
-
edgeSslCertificates
@Stability(Stable) public NetworkServicesEdgeCacheServiceConfig.Builder edgeSslCertificates(List<String> edgeSslCertificates)
Sets the value ofNetworkServicesEdgeCacheServiceConfig.getEdgeSslCertificates()- Parameters:
edgeSslCertificates- URLs to sslCertificate resources that are used to authenticate connections between users and the EdgeCacheService. Note that only "global" certificates with a "scope" of "EDGE_CACHE" can be attached to an EdgeCacheService. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#edge_ssl_certificates NetworkServicesEdgeCacheService#edge_ssl_certificates}- Returns:
this
-
id
@Stability(Stable) public NetworkServicesEdgeCacheServiceConfig.Builder id(String id)
Sets the value ofNetworkServicesEdgeCacheServiceConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#id NetworkServicesEdgeCacheService#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 NetworkServicesEdgeCacheServiceConfig.Builder labels(Map<String,String> labels)
Sets the value ofNetworkServicesEdgeCacheServiceConfig.getLabels()- Parameters:
labels- Set of label tags associated with the EdgeCache 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_edge_cache_service#labels NetworkServicesEdgeCacheService#labels}- Returns:
this
-
logConfig
@Stability(Stable) public NetworkServicesEdgeCacheServiceConfig.Builder logConfig(NetworkServicesEdgeCacheServiceLogConfig logConfig)
Sets the value ofNetworkServicesEdgeCacheServiceConfig.getLogConfig()- Parameters:
logConfig- log_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#log_config NetworkServicesEdgeCacheService#log_config}- Returns:
this
-
project
@Stability(Stable) public NetworkServicesEdgeCacheServiceConfig.Builder project(String project)
Sets the value ofNetworkServicesEdgeCacheServiceConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#project NetworkServicesEdgeCacheService#project}.- Returns:
this
-
requireTls
@Stability(Stable) public NetworkServicesEdgeCacheServiceConfig.Builder requireTls(Boolean requireTls)
Sets the value ofNetworkServicesEdgeCacheServiceConfig.getRequireTls()- Parameters:
requireTls- Require TLS (HTTPS) for all clients connecting to this service. Clients who connect over HTTP (port 80) will receive a HTTP 301 to the same URL over HTTPS (port 443). You must have at least one (1) edgeSslCertificate specified to enable this. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#require_tls NetworkServicesEdgeCacheService#require_tls}- Returns:
this
-
requireTls
@Stability(Stable) public NetworkServicesEdgeCacheServiceConfig.Builder requireTls(com.hashicorp.cdktf.IResolvable requireTls)
Sets the value ofNetworkServicesEdgeCacheServiceConfig.getRequireTls()- Parameters:
requireTls- Require TLS (HTTPS) for all clients connecting to this service. Clients who connect over HTTP (port 80) will receive a HTTP 301 to the same URL over HTTPS (port 443). You must have at least one (1) edgeSslCertificate specified to enable this. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#require_tls NetworkServicesEdgeCacheService#require_tls}- Returns:
this
-
sslPolicy
@Stability(Stable) public NetworkServicesEdgeCacheServiceConfig.Builder sslPolicy(String sslPolicy)
Sets the value ofNetworkServicesEdgeCacheServiceConfig.getSslPolicy()- Parameters:
sslPolicy- URL of the SslPolicy resource that will be associated with the EdgeCacheService. If not set, the EdgeCacheService has no SSL policy configured, and will default to the "COMPATIBLE" policy. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#ssl_policy NetworkServicesEdgeCacheService#ssl_policy}- Returns:
this
-
timeouts
@Stability(Stable) public NetworkServicesEdgeCacheServiceConfig.Builder timeouts(NetworkServicesEdgeCacheServiceTimeouts timeouts)
Sets the value ofNetworkServicesEdgeCacheServiceConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_service#timeouts NetworkServicesEdgeCacheService#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public NetworkServicesEdgeCacheServiceConfig.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 NetworkServicesEdgeCacheServiceConfig.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 NetworkServicesEdgeCacheServiceConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public NetworkServicesEdgeCacheServiceConfig.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 NetworkServicesEdgeCacheServiceConfig.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 NetworkServicesEdgeCacheServiceConfig.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 NetworkServicesEdgeCacheServiceConfig.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 NetworkServicesEdgeCacheServiceConfig.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 NetworkServicesEdgeCacheServiceConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public NetworkServicesEdgeCacheServiceConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetworkServicesEdgeCacheServiceConfig>- Returns:
- a new instance of
NetworkServicesEdgeCacheServiceConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-