Class CfnComponentProps.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnComponentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComponentProps>
- Enclosing interface:
CfnComponentProps
@Stability(Stable)
public static final class CfnComponentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComponentProps>
A builder for
CfnComponentProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.changeDescription
(String changeDescription) Sets the value ofCfnComponentProps.getChangeDescription()
Sets the value ofCfnComponentProps.getData()
description
(String description) Sets the value ofCfnComponentProps.getDescription()
Sets the value ofCfnComponentProps.getKmsKeyId()
Sets the value ofCfnComponentProps.getName()
Sets the value ofCfnComponentProps.getPlatform()
supportedOsVersions
(List<String> supportedOsVersions) Sets the value ofCfnComponentProps.getSupportedOsVersions()
Sets the value ofCfnComponentProps.getTags()
Sets the value ofCfnComponentProps.getUri()
Sets the value ofCfnComponentProps.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnComponentProps.getName()
- Parameters:
name
- The name of the component. This parameter is required.- Returns:
this
-
platform
Sets the value ofCfnComponentProps.getPlatform()
- Parameters:
platform
- The operating system platform of the component. This parameter is required.- Returns:
this
-
version
Sets the value ofCfnComponentProps.getVersion()
- Parameters:
version
- The component version. This parameter is required. For example,1.0.0
.- Returns:
this
-
changeDescription
Sets the value ofCfnComponentProps.getChangeDescription()
- Parameters:
changeDescription
- The change description of the component. Describes what change has been made in this version, or what makes this version different from other versions of the component.- Returns:
this
-
data
Sets the value ofCfnComponentProps.getData()
- Parameters:
data
- Componentdata
contains inline YAML document content for the component. Alternatively, you can specify theuri
of a YAML document file stored in Amazon S3. However, you cannot specify both properties.- Returns:
this
-
description
Sets the value ofCfnComponentProps.getDescription()
- Parameters:
description
- Describes the contents of the component.- Returns:
this
-
kmsKeyId
Sets the value ofCfnComponentProps.getKmsKeyId()
- Parameters:
kmsKeyId
- The ID of the KMS key that is used to encrypt this component.- Returns:
this
-
supportedOsVersions
@Stability(Stable) public CfnComponentProps.Builder supportedOsVersions(List<String> supportedOsVersions) Sets the value ofCfnComponentProps.getSupportedOsVersions()
- Parameters:
supportedOsVersions
- The operating system (OS) version supported by the component. If the OS information is available, a prefix match is performed against the base image OS version during image recipe creation.- Returns:
this
-
tags
Sets the value ofCfnComponentProps.getTags()
- Parameters:
tags
- The tags that apply to the component.- Returns:
this
-
uri
Sets the value ofCfnComponentProps.getUri()
- Parameters:
uri
- Theuri
of a YAML component document file. This must be an S3 URL (s3://bucket/key
), and the requester must have permission to access the S3 bucket it points to. If you use Amazon S3, you can specify component content up to your service quota.Alternatively, you can specify the YAML document inline, using the component
data
property. You cannot specify both properties.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnComponentProps>
- Returns:
- a new instance of
CfnComponentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-