Class CfnDistributionPropsMixin.StringSchemaProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnDistributionPropsMixin.StringSchemaProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistributionPropsMixin.StringSchemaProperty>
- Enclosing interface:
CfnDistributionPropsMixin.StringSchemaProperty
@Stability(Stable)
public static final class CfnDistributionPropsMixin.StringSchemaProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistributionPropsMixin.StringSchemaProperty>
A builder for
CfnDistributionPropsMixin.StringSchemaProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDistributionPropsMixin.StringSchemaProperty.getComment()defaultValue(String defaultValue) Sets the value ofCfnDistributionPropsMixin.StringSchemaProperty.getDefaultValue()Sets the value ofCfnDistributionPropsMixin.StringSchemaProperty.getRequired()required(IResolvable required) Sets the value ofCfnDistributionPropsMixin.StringSchemaProperty.getRequired()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
comment
@Stability(Stable) public CfnDistributionPropsMixin.StringSchemaProperty.Builder comment(String comment) Sets the value ofCfnDistributionPropsMixin.StringSchemaProperty.getComment()- Parameters:
comment- the value to be set.- Returns:
this
-
defaultValue
@Stability(Stable) public CfnDistributionPropsMixin.StringSchemaProperty.Builder defaultValue(String defaultValue) Sets the value ofCfnDistributionPropsMixin.StringSchemaProperty.getDefaultValue()- Parameters:
defaultValue- the value to be set.- Returns:
this
-
required
@Stability(Stable) public CfnDistributionPropsMixin.StringSchemaProperty.Builder required(Boolean required) Sets the value ofCfnDistributionPropsMixin.StringSchemaProperty.getRequired()- Parameters:
required- the value to be set.- Returns:
this
-
required
@Stability(Stable) public CfnDistributionPropsMixin.StringSchemaProperty.Builder required(IResolvable required) Sets the value ofCfnDistributionPropsMixin.StringSchemaProperty.getRequired()- Parameters:
required- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDistributionPropsMixin.StringSchemaProperty>- Returns:
- a new instance of
CfnDistributionPropsMixin.StringSchemaProperty - Throws:
NullPointerException- if any required attribute was not provided
-