Class ComponentProps.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.alpha.ComponentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComponentProps>
- Enclosing interface:
ComponentProps
@Stability(Experimental)
public static final class ComponentProps.Builder
extends Object
implements software.amazon.jsii.Builder<ComponentProps>
A builder for
ComponentProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.changeDescription(String changeDescription) Sets the value ofComponentProps.getChangeDescription()componentName(String componentName) Sets the value ofComponentProps.getComponentName()componentVersion(String componentVersion) Sets the value ofComponentProps.getComponentVersion()data(ComponentData data) Sets the value ofComponentProps.getData()description(String description) Sets the value ofComponentProps.getDescription()Sets the value ofComponentProps.getKmsKey()Sets the value ofComponentProps.getPlatform()supportedOsVersions(List<? extends OSVersion> supportedOsVersions) Sets the value ofComponentProps.getSupportedOsVersions()Sets the value ofComponentProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
data
Sets the value ofComponentProps.getData()- Parameters:
data- The component document content that defines the build, validation, or test steps to be executed during the image building process. This parameter is required.- Returns:
this
-
platform
Sets the value ofComponentProps.getPlatform()- Parameters:
platform- The operating system platform of the component. This parameter is required.- Returns:
this
-
changeDescription
Sets the value ofComponentProps.getChangeDescription()- Parameters:
changeDescription- The change description of the component. Describes what change has been made in this version of the component, or what makes this version different from other versions.- Returns:
this
-
componentName
Sets the value ofComponentProps.getComponentName()- Parameters:
componentName- The name of the component.- Returns:
this
-
componentVersion
Sets the value ofComponentProps.getComponentVersion()- Parameters:
componentVersion- The version of the component.- Returns:
this
-
description
Sets the value ofComponentProps.getDescription()- Parameters:
description- The description of the component.- Returns:
this
-
kmsKey
Sets the value ofComponentProps.getKmsKey()- Parameters:
kmsKey- The KMS key used to encrypt this component.- Returns:
this
-
supportedOsVersions
@Stability(Experimental) public ComponentProps.Builder supportedOsVersions(List<? extends OSVersion> supportedOsVersions) Sets the value ofComponentProps.getSupportedOsVersions()- Parameters:
supportedOsVersions- The operating system versions supported by the component.- Returns:
this
-
tags
Sets the value ofComponentProps.getTags()- Parameters:
tags- The tags to apply to the component.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComponentProps>- Returns:
- a new instance of
ComponentProps - Throws:
NullPointerException- if any required attribute was not provided
-