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
Constructors -
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()selectionCriteria(OriginSelectionCriteria selectionCriteria) Sets the value ofOriginBindConfig.getSelectionCriteria()
-
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
-
selectionCriteria
@Stability(Stable) public OriginBindConfig.Builder selectionCriteria(OriginSelectionCriteria selectionCriteria) Sets the value ofOriginBindConfig.getSelectionCriteria()- Parameters:
selectionCriteria- The selection criteria for how your origins are selected.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OriginBindConfig>- Returns:
- a new instance of
OriginBindConfig - Throws:
NullPointerException- if any required attribute was not provided
-