Class CfnDistributionConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnDistributionConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistributionConfigurationProps>
- Enclosing interface:
CfnDistributionConfigurationProps
@Stability(Stable)
public static final class CfnDistributionConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistributionConfigurationProps>
A builder for
CfnDistributionConfigurationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnDistributionConfigurationProps.getDescription()distributions(List<? extends Object> distributions) Sets the value ofCfnDistributionConfigurationProps.getDistributions()distributions(IResolvable distributions) Sets the value ofCfnDistributionConfigurationProps.getDistributions()Sets the value ofCfnDistributionConfigurationProps.getName()Sets the value ofCfnDistributionConfigurationProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
distributions
@Stability(Stable) public CfnDistributionConfigurationProps.Builder distributions(IResolvable distributions) Sets the value ofCfnDistributionConfigurationProps.getDistributions()- Parameters:
distributions- The distributions of this distribution configuration formatted as an array of Distribution objects. This parameter is required.- Returns:
this
-
distributions
@Stability(Stable) public CfnDistributionConfigurationProps.Builder distributions(List<? extends Object> distributions) Sets the value ofCfnDistributionConfigurationProps.getDistributions()- Parameters:
distributions- The distributions of this distribution configuration formatted as an array of Distribution objects. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnDistributionConfigurationProps.getName()- Parameters:
name- The name of this distribution configuration. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnDistributionConfigurationProps.getDescription()- Parameters:
description- The description of this distribution configuration.- Returns:
this
-
tags
Sets the value ofCfnDistributionConfigurationProps.getTags()- Parameters:
tags- The tags of this distribution configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDistributionConfigurationProps>- Returns:
- a new instance of
CfnDistributionConfigurationProps - Throws:
NullPointerException- if any required attribute was not provided
-