Class ComponentDocument.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.alpha.ComponentDocument.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComponentDocument>
- Enclosing interface:
ComponentDocument
@Stability(Experimental)
public static final class ComponentDocument.Builder
extends Object
implements software.amazon.jsii.Builder<ComponentDocument>
A builder for
ComponentDocument-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.constants(Map<String, ? extends ComponentConstantValue> constants) Sets the value ofComponentDocument.getConstants()description(String description) Sets the value ofComponentDocument.getDescription()Sets the value ofComponentDocument.getName()parameters(Map<String, ? extends ComponentDocumentParameterDefinition> parameters) Sets the value ofComponentDocument.getParameters()phases(List<? extends ComponentDocumentPhase> phases) Sets the value ofComponentDocument.getPhases()schemaVersion(ComponentSchemaVersion schemaVersion) Sets the value ofComponentDocument.getSchemaVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
phases
@Stability(Experimental) public ComponentDocument.Builder phases(List<? extends ComponentDocumentPhase> phases) Sets the value ofComponentDocument.getPhases()- Parameters:
phases- The phases which define the grouping of steps to run in the build and test workflows of the image build. This parameter is required.- Returns:
this
-
schemaVersion
@Stability(Experimental) public ComponentDocument.Builder schemaVersion(ComponentSchemaVersion schemaVersion) Sets the value ofComponentDocument.getSchemaVersion()- Parameters:
schemaVersion- The schema version of the component. This parameter is required.- Returns:
this
-
constants
@Stability(Experimental) public ComponentDocument.Builder constants(Map<String, ? extends ComponentConstantValue> constants) Sets the value ofComponentDocument.getConstants()- Parameters:
constants- The constants to define in the document.- Returns:
this
-
description
Sets the value ofComponentDocument.getDescription()- Parameters:
description- The description of the document.- Returns:
this
-
name
Sets the value ofComponentDocument.getName()- Parameters:
name- The name of the document.- Returns:
this
-
parameters
@Stability(Experimental) public ComponentDocument.Builder parameters(Map<String, ? extends ComponentDocumentParameterDefinition> parameters) Sets the value ofComponentDocument.getParameters()- Parameters:
parameters- The parameters to define in the document.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComponentDocument>- Returns:
- a new instance of
ComponentDocument - Throws:
NullPointerException- if any required attribute was not provided
-