Class CfnDistribution.LegacyCustomOriginProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnDistribution.LegacyCustomOriginProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistribution.LegacyCustomOriginProperty>
- Enclosing interface:
- CfnDistribution.LegacyCustomOriginProperty
@Stability(Stable)
public static final class CfnDistribution.LegacyCustomOriginProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistribution.LegacyCustomOriginProperty>
A builder for
CfnDistribution.LegacyCustomOriginProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDistribution.LegacyCustomOriginProperty.getDnsName()
Sets the value ofCfnDistribution.LegacyCustomOriginProperty.getHttpPort()
Sets the value ofCfnDistribution.LegacyCustomOriginProperty.getHttpsPort()
originProtocolPolicy
(String originProtocolPolicy) Sets the value ofCfnDistribution.LegacyCustomOriginProperty.getOriginProtocolPolicy()
originSslProtocols
(List<String> originSslProtocols) Sets the value ofCfnDistribution.LegacyCustomOriginProperty.getOriginSslProtocols()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dnsName
@Stability(Stable) public CfnDistribution.LegacyCustomOriginProperty.Builder dnsName(String dnsName) Sets the value ofCfnDistribution.LegacyCustomOriginProperty.getDnsName()
- Parameters:
dnsName
- The domain name assigned to your CloudFront distribution. This parameter is required.- Returns:
this
-
originProtocolPolicy
@Stability(Stable) public CfnDistribution.LegacyCustomOriginProperty.Builder originProtocolPolicy(String originProtocolPolicy) Sets the value ofCfnDistribution.LegacyCustomOriginProperty.getOriginProtocolPolicy()
- Parameters:
originProtocolPolicy
- Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. This parameter is required.- Returns:
this
-
originSslProtocols
@Stability(Stable) public CfnDistribution.LegacyCustomOriginProperty.Builder originSslProtocols(List<String> originSslProtocols) Sets the value ofCfnDistribution.LegacyCustomOriginProperty.getOriginSslProtocols()
- Parameters:
originSslProtocols
- The minimum SSL/TLS protocol version that CloudFront uses when communicating with your origin server over HTTPs. This parameter is required. For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide .- Returns:
this
-
httpPort
@Stability(Stable) public CfnDistribution.LegacyCustomOriginProperty.Builder httpPort(Number httpPort) Sets the value ofCfnDistribution.LegacyCustomOriginProperty.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.LegacyCustomOriginProperty.Builder httpsPort(Number httpsPort) Sets the value ofCfnDistribution.LegacyCustomOriginProperty.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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDistribution.LegacyCustomOriginProperty>
- Returns:
- a new instance of
CfnDistribution.LegacyCustomOriginProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-