Class ComponentDocumentParameterDefinition.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.alpha.ComponentDocumentParameterDefinition.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComponentDocumentParameterDefinition>
- Enclosing interface:
ComponentDocumentParameterDefinition
@Stability(Experimental)
public static final class ComponentDocumentParameterDefinition.Builder
extends Object
implements software.amazon.jsii.Builder<ComponentDocumentParameterDefinition>
A builder for
ComponentDocumentParameterDefinition-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.defaultValue(Object defaultValue) Sets the value ofComponentDocumentParameterDefinition.getDefaultValue()description(String description) Sets the value ofComponentDocumentParameterDefinition.getDescription()type(ComponentParameterType type) Sets the value ofComponentDocumentParameterDefinition.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
@Stability(Experimental) public ComponentDocumentParameterDefinition.Builder type(ComponentParameterType type) Sets the value ofComponentDocumentParameterDefinition.getType()- Parameters:
type- The type of the parameter. This parameter is required.- Returns:
this
-
defaultValue
@Stability(Experimental) public ComponentDocumentParameterDefinition.Builder defaultValue(Object defaultValue) Sets the value ofComponentDocumentParameterDefinition.getDefaultValue()- Parameters:
defaultValue- The default value of the parameter.- Returns:
this
-
description
@Stability(Experimental) public ComponentDocumentParameterDefinition.Builder description(String description) Sets the value ofComponentDocumentParameterDefinition.getDescription()- Parameters:
description- The description of the parameter.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComponentDocumentParameterDefinition>- Returns:
- a new instance of
ComponentDocumentParameterDefinition - Throws:
NullPointerException- if any required attribute was not provided
-