@Stability(value=Stable) public static final class OriginOptions.Builder extends Object implements software.amazon.jsii.Builder<OriginOptions>
OriginOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
OriginOptions |
build()
Builds the configured instance.
|
OriginOptions.Builder |
connectionAttempts(Number connectionAttempts)
Sets the value of
OriginOptions.getConnectionAttempts() |
OriginOptions.Builder |
connectionTimeout(Duration connectionTimeout)
Sets the value of
OriginOptions.getConnectionTimeout() |
OriginOptions.Builder |
customHeaders(Map<String,String> customHeaders)
Sets the value of
OriginOptions.getCustomHeaders() |
OriginOptions.Builder |
originShieldRegion(String originShieldRegion)
Sets the value of
OriginOptions.getOriginShieldRegion() |
@Stability(value=Stable) public OriginOptions.Builder connectionAttempts(Number connectionAttempts)
OriginOptions.getConnectionAttempts()connectionAttempts - The number of times that CloudFront attempts to connect to the origin;.
valid values are 1, 2, or 3 attempts.this@Stability(value=Stable) public OriginOptions.Builder connectionTimeout(Duration connectionTimeout)
OriginOptions.getConnectionTimeout()connectionTimeout - The number of seconds that CloudFront waits when trying to establish a connection to the origin.
Valid values are 1-10 seconds, inclusive.this@Stability(value=Stable) public OriginOptions.Builder customHeaders(Map<String,String> customHeaders)
OriginOptions.getCustomHeaders()customHeaders - A list of HTTP header names and values that CloudFront adds to requests it sends to the origin.this@Stability(value=Stable) public OriginOptions.Builder originShieldRegion(String originShieldRegion)
OriginOptions.getOriginShieldRegion()originShieldRegion - When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, you can get better network performance.this@Stability(value=Stable) public OriginOptions build()
build in interface software.amazon.jsii.Builder<OriginOptions>OriginOptionsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.