Class NetworkServicesEdgeCacheOriginTimeout.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.network_services_edge_cache_origin.NetworkServicesEdgeCacheOriginTimeout.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkServicesEdgeCacheOriginTimeout>
- Enclosing interface:
- NetworkServicesEdgeCacheOriginTimeout
@Stability(Stable) public static final class NetworkServicesEdgeCacheOriginTimeout.Builder extends Object implements software.amazon.jsii.Builder<NetworkServicesEdgeCacheOriginTimeout>
A builder forNetworkServicesEdgeCacheOriginTimeout
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkServicesEdgeCacheOriginTimeoutbuild()Builds the configured instance.NetworkServicesEdgeCacheOriginTimeout.BuilderconnectTimeout(String connectTimeout)Sets the value ofNetworkServicesEdgeCacheOriginTimeout.getConnectTimeout()NetworkServicesEdgeCacheOriginTimeout.BuildermaxAttemptsTimeout(String maxAttemptsTimeout)Sets the value ofNetworkServicesEdgeCacheOriginTimeout.getMaxAttemptsTimeout()NetworkServicesEdgeCacheOriginTimeout.BuilderreadTimeout(String readTimeout)Sets the value ofNetworkServicesEdgeCacheOriginTimeout.getReadTimeout()NetworkServicesEdgeCacheOriginTimeout.BuilderresponseTimeout(String responseTimeout)Sets the value ofNetworkServicesEdgeCacheOriginTimeout.getResponseTimeout()
-
-
-
Method Detail
-
connectTimeout
@Stability(Stable) public NetworkServicesEdgeCacheOriginTimeout.Builder connectTimeout(String connectTimeout)
Sets the value ofNetworkServicesEdgeCacheOriginTimeout.getConnectTimeout()- Parameters:
connectTimeout- The maximum duration to wait for a single origin connection to be established, including DNS lookup, TLS handshake and TCP/QUIC connection establishment. Defaults to 5 seconds. The timeout must be a value between 1s and 15s. The connectTimeout capped by the deadline set by the request's maxAttemptsTimeout. The last connection attempt may have a smaller connectTimeout in order to adhere to the overall maxAttemptsTimeout. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_origin#connect_timeout NetworkServicesEdgeCacheOrigin#connect_timeout}- Returns:
this
-
maxAttemptsTimeout
@Stability(Stable) public NetworkServicesEdgeCacheOriginTimeout.Builder maxAttemptsTimeout(String maxAttemptsTimeout)
Sets the value ofNetworkServicesEdgeCacheOriginTimeout.getMaxAttemptsTimeout()- Parameters:
maxAttemptsTimeout- The maximum time across all connection attempts to the origin, including failover origins, before returning an error to the client. A HTTP 504 will be returned if the timeout is reached before a response is returned. Defaults to 15 seconds. The timeout must be a value between 1s and 30s. If a failoverOrigin is specified, the maxAttemptsTimeout of the first configured origin sets the deadline for all connection attempts across all failoverOrigins. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_origin#max_attempts_timeout NetworkServicesEdgeCacheOrigin#max_attempts_timeout}- Returns:
this
-
readTimeout
@Stability(Stable) public NetworkServicesEdgeCacheOriginTimeout.Builder readTimeout(String readTimeout)
Sets the value ofNetworkServicesEdgeCacheOriginTimeout.getReadTimeout()- Parameters:
readTimeout- The maximum duration to wait between reads of a single HTTP connection/stream. Defaults to 15 seconds. The timeout must be a value between 1s and 30s. The readTimeout is capped by the responseTimeout. All reads of the HTTP connection/stream must be completed by the deadline set by the responseTimeout. If the response headers have already been written to the connection, the response will be truncated and logged. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_origin#read_timeout NetworkServicesEdgeCacheOrigin#read_timeout}- Returns:
this
-
responseTimeout
@Stability(Stable) public NetworkServicesEdgeCacheOriginTimeout.Builder responseTimeout(String responseTimeout)
Sets the value ofNetworkServicesEdgeCacheOriginTimeout.getResponseTimeout()- Parameters:
responseTimeout- The maximum duration to wait for the last byte of a response to arrive when reading from the HTTP connection/stream. Defaults to 30 seconds. The timeout must be a value between 1s and 120s. The responseTimeout starts after the connection has been established. This also applies to HTTP Chunked Transfer Encoding responses, and/or when an open-ended Range request is made to the origin. Origins that take longer to write additional bytes to the response than the configured responseTimeout will result in an error being returned to the client. If the response headers have already been written to the connection, the response will be truncated and logged. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_services_edge_cache_origin#response_timeout NetworkServicesEdgeCacheOrigin#response_timeout}- Returns:
this
-
build
@Stability(Stable) public NetworkServicesEdgeCacheOriginTimeout build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetworkServicesEdgeCacheOriginTimeout>- Returns:
- a new instance of
NetworkServicesEdgeCacheOriginTimeout - Throws:
NullPointerException- if any required attribute was not provided
-
-