Class OriginBindConfig.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.OriginBindConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<OriginBindConfig>
- Enclosing interface:
- OriginBindConfig
@Stability(Stable)
public static final class OriginBindConfig.Builder
extends Object
implements software.amazon.jsii.Builder<OriginBindConfig>
A builder for
OriginBindConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.failoverConfig
(OriginFailoverConfig failoverConfig) Sets the value ofOriginBindConfig.getFailoverConfig()
originProperty
(CfnDistribution.OriginProperty originProperty) Sets the value ofOriginBindConfig.getOriginProperty()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failoverConfig
@Stability(Stable) public OriginBindConfig.Builder failoverConfig(OriginFailoverConfig failoverConfig) Sets the value ofOriginBindConfig.getFailoverConfig()
- Parameters:
failoverConfig
- The failover configuration for this Origin.- Returns:
this
-
originProperty
@Stability(Stable) public OriginBindConfig.Builder originProperty(CfnDistribution.OriginProperty originProperty) Sets the value ofOriginBindConfig.getOriginProperty()
- Parameters:
originProperty
- The CloudFormation OriginProperty configuration for this Origin.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<OriginBindConfig>
- Returns:
- a new instance of
OriginBindConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-