Class CfnDistribution.OriginGroupMembersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnDistribution.OriginGroupMembersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistribution.OriginGroupMembersProperty>
- Enclosing interface:
CfnDistribution.OriginGroupMembersProperty
@Stability(Stable)
public static final class CfnDistribution.OriginGroupMembersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistribution.OriginGroupMembersProperty>
A builder for
CfnDistribution.OriginGroupMembersProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDistribution.OriginGroupMembersProperty.getItems()
items
(IResolvable items) Sets the value ofCfnDistribution.OriginGroupMembersProperty.getItems()
Sets the value ofCfnDistribution.OriginGroupMembersProperty.getQuantity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
items
@Stability(Stable) public CfnDistribution.OriginGroupMembersProperty.Builder items(IResolvable items) Sets the value ofCfnDistribution.OriginGroupMembersProperty.getItems()
- Parameters:
items
- Items (origins) in an origin group. This parameter is required.- Returns:
this
-
items
@Stability(Stable) public CfnDistribution.OriginGroupMembersProperty.Builder items(List<? extends Object> items) Sets the value ofCfnDistribution.OriginGroupMembersProperty.getItems()
- Parameters:
items
- Items (origins) in an origin group. This parameter is required.- Returns:
this
-
quantity
@Stability(Stable) public CfnDistribution.OriginGroupMembersProperty.Builder quantity(Number quantity) Sets the value ofCfnDistribution.OriginGroupMembersProperty.getQuantity()
- Parameters:
quantity
- The number of 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.OriginGroupMembersProperty>
- Returns:
- a new instance of
CfnDistribution.OriginGroupMembersProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-