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
Constructors -
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-CfnDistribution.LegacyCustomOriginProperty.DNSName. This parameter is required.- Returns:
this
-
originProtocolPolicy
@Stability(Stable) public CfnDistribution.LegacyCustomOriginProperty.Builder originProtocolPolicy(String originProtocolPolicy) Sets the value ofCfnDistribution.LegacyCustomOriginProperty.getOriginProtocolPolicy()- Parameters:
originProtocolPolicy-CfnDistribution.LegacyCustomOriginProperty.OriginProtocolPolicy. 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-CfnDistribution.LegacyCustomOriginProperty.OriginSSLProtocols. This parameter is required.- Returns:
this
-
httpPort
@Stability(Stable) public CfnDistribution.LegacyCustomOriginProperty.Builder httpPort(Number httpPort) Sets the value ofCfnDistribution.LegacyCustomOriginProperty.getHttpPort()- Parameters:
httpPort-CfnDistribution.LegacyCustomOriginProperty.HTTPPort.- Returns:
this
-
httpsPort
@Stability(Stable) public CfnDistribution.LegacyCustomOriginProperty.Builder httpsPort(Number httpsPort) Sets the value ofCfnDistribution.LegacyCustomOriginProperty.getHttpsPort()- Parameters:
httpsPort-CfnDistribution.LegacyCustomOriginProperty.HTTPSPort.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDistribution.LegacyCustomOriginProperty>- Returns:
- a new instance of
CfnDistribution.LegacyCustomOriginProperty - Throws:
NullPointerException- if any required attribute was not provided
-