Class CfnDistribution.CustomOriginConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnDistribution.CustomOriginConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistribution.CustomOriginConfigProperty>
- Enclosing interface:
CfnDistribution.CustomOriginConfigProperty
@Stability(Stable)
public static final class CfnDistribution.CustomOriginConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistribution.CustomOriginConfigProperty>
A builder for
CfnDistribution.CustomOriginConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDistribution.CustomOriginConfigProperty.getHttpPort()
Sets the value ofCfnDistribution.CustomOriginConfigProperty.getHttpsPort()
originKeepaliveTimeout
(Number originKeepaliveTimeout) Sets the value ofCfnDistribution.CustomOriginConfigProperty.getOriginKeepaliveTimeout()
originProtocolPolicy
(String originProtocolPolicy) Sets the value ofCfnDistribution.CustomOriginConfigProperty.getOriginProtocolPolicy()
originReadTimeout
(Number originReadTimeout) Sets the value ofCfnDistribution.CustomOriginConfigProperty.getOriginReadTimeout()
originSslProtocols
(List<String> originSslProtocols) Sets the value ofCfnDistribution.CustomOriginConfigProperty.getOriginSslProtocols()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
originProtocolPolicy
@Stability(Stable) public CfnDistribution.CustomOriginConfigProperty.Builder originProtocolPolicy(String originProtocolPolicy) Sets the value ofCfnDistribution.CustomOriginConfigProperty.getOriginProtocolPolicy()
- Parameters:
originProtocolPolicy
- Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are:. This parameter is required.http-only
– CloudFront always uses HTTP to connect to the origin.match-viewer
– CloudFront connects to the origin using the same protocol that the viewer used to connect to CloudFront.https-only
– CloudFront always uses HTTPS to connect to the origin.
- Returns:
this
-
httpPort
@Stability(Stable) public CfnDistribution.CustomOriginConfigProperty.Builder httpPort(Number httpPort) Sets the value ofCfnDistribution.CustomOriginConfigProperty.getHttpPort()
- Parameters:
httpPort
- The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens on.- Returns:
this
-
httpsPort
@Stability(Stable) public CfnDistribution.CustomOriginConfigProperty.Builder httpsPort(Number httpsPort) Sets the value ofCfnDistribution.CustomOriginConfigProperty.getHttpsPort()
- Parameters:
httpsPort
- The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin listens on.- Returns:
this
-
originKeepaliveTimeout
@Stability(Stable) public CfnDistribution.CustomOriginConfigProperty.Builder originKeepaliveTimeout(Number originKeepaliveTimeout) Sets the value ofCfnDistribution.CustomOriginConfigProperty.getOriginKeepaliveTimeout()
- Parameters:
originKeepaliveTimeout
- Specifies how long, in seconds, CloudFront persists its connection to the origin. The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 5 seconds.For more information, see Origin Keep-alive Timeout in the Amazon CloudFront Developer Guide .
- Returns:
this
-
originReadTimeout
@Stability(Stable) public CfnDistribution.CustomOriginConfigProperty.Builder originReadTimeout(Number originReadTimeout) Sets the value ofCfnDistribution.CustomOriginConfigProperty.getOriginReadTimeout()
- Parameters:
originReadTimeout
- Specifies how long, in seconds, CloudFront waits for a response from the origin. This is also known as the origin response timeout . The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 30 seconds.For more information, see Origin Response Timeout in the Amazon CloudFront Developer Guide .
- Returns:
this
-
originSslProtocols
@Stability(Stable) public CfnDistribution.CustomOriginConfigProperty.Builder originSslProtocols(List<String> originSslProtocols) Sets the value ofCfnDistribution.CustomOriginConfigProperty.getOriginSslProtocols()
- Parameters:
originSslProtocols
- Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS. Valid values includeSSLv3
,TLSv1
,TLSv1.1
, andTLSv1.2
.For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDistribution.CustomOriginConfigProperty>
- Returns:
- a new instance of
CfnDistribution.CustomOriginConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-