Class CfnDistribution.OriginGroupProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnDistribution.OriginGroupProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistribution.OriginGroupProperty>
- Enclosing interface:
CfnDistribution.OriginGroupProperty
@Stability(Stable)
public static final class CfnDistribution.OriginGroupProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistribution.OriginGroupProperty>
A builder for
CfnDistribution.OriginGroupProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.failoverCriteria
(IResolvable failoverCriteria) Sets the value ofCfnDistribution.OriginGroupProperty.getFailoverCriteria()
failoverCriteria
(CfnDistribution.OriginGroupFailoverCriteriaProperty failoverCriteria) Sets the value ofCfnDistribution.OriginGroupProperty.getFailoverCriteria()
Sets the value ofCfnDistribution.OriginGroupProperty.getId()
members
(IResolvable members) Sets the value ofCfnDistribution.OriginGroupProperty.getMembers()
Sets the value ofCfnDistribution.OriginGroupProperty.getMembers()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failoverCriteria
@Stability(Stable) public CfnDistribution.OriginGroupProperty.Builder failoverCriteria(IResolvable failoverCriteria) Sets the value ofCfnDistribution.OriginGroupProperty.getFailoverCriteria()
- Parameters:
failoverCriteria
- A complex type that contains information about the failover criteria for an origin group. This parameter is required.- Returns:
this
-
failoverCriteria
@Stability(Stable) public CfnDistribution.OriginGroupProperty.Builder failoverCriteria(CfnDistribution.OriginGroupFailoverCriteriaProperty failoverCriteria) Sets the value ofCfnDistribution.OriginGroupProperty.getFailoverCriteria()
- Parameters:
failoverCriteria
- A complex type that contains information about the failover criteria for an origin group. This parameter is required.- Returns:
this
-
id
Sets the value ofCfnDistribution.OriginGroupProperty.getId()
- Parameters:
id
- The origin group's ID. This parameter is required.- Returns:
this
-
members
Sets the value ofCfnDistribution.OriginGroupProperty.getMembers()
- Parameters:
members
- A complex type that contains information about the origins in an origin group. This parameter is required.- Returns:
this
-
members
@Stability(Stable) public CfnDistribution.OriginGroupProperty.Builder members(CfnDistribution.OriginGroupMembersProperty members) Sets the value ofCfnDistribution.OriginGroupProperty.getMembers()
- Parameters:
members
- A complex type that contains information about the origins in an origin group. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDistribution.OriginGroupProperty>
- Returns:
- a new instance of
CfnDistribution.OriginGroupProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-