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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDistribution.CustomOriginConfigProperty.getHttpPort()Sets the value ofCfnDistribution.CustomOriginConfigProperty.getHttpsPort()ipAddressType(String ipAddressType) Sets the value ofCfnDistribution.CustomOriginConfigProperty.getIpAddressType()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
-
ipAddressType
@Stability(Stable) public CfnDistribution.CustomOriginConfigProperty.Builder ipAddressType(String ipAddressType) Sets the value ofCfnDistribution.CustomOriginConfigProperty.getIpAddressType()- Parameters:
ipAddressType- Specifies which IP protocol CloudFront uses when connecting to your origin. If your origin uses both IPv4 and IPv6 protocols, you can choosedualstackto help optimize reliability.- 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 120 seconds, and the default (if you don't specify otherwise) is 5 seconds.For more information, see Keep-alive timeout (custom origins only) 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 120 seconds, and the default (if you don't specify otherwise) is 30 seconds.For more information, see 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnDistribution.CustomOriginConfigProperty>- Returns:
- a new instance of
CfnDistribution.CustomOriginConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-