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