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