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