Class AwsMarketplaceComponentAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.alpha.AwsMarketplaceComponentAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AwsMarketplaceComponentAttributes>
- Enclosing interface:
AwsMarketplaceComponentAttributes
@Stability(Experimental)
public static final class AwsMarketplaceComponentAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<AwsMarketplaceComponentAttributes>
A builder for
AwsMarketplaceComponentAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.componentName(String componentName) Sets the value ofAwsMarketplaceComponentAttributes.getComponentName()componentVersion(String componentVersion) Sets the value ofAwsMarketplaceComponentAttributes.getComponentVersion()marketplaceProductId(String marketplaceProductId) Sets the value ofAwsMarketplaceComponentAttributes.getMarketplaceProductId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
componentName
@Stability(Experimental) public AwsMarketplaceComponentAttributes.Builder componentName(String componentName) Sets the value ofAwsMarketplaceComponentAttributes.getComponentName()- Parameters:
componentName- The name of the AWS Marketplace component. This parameter is required. This name should exclude the marketplace product ID from it- Returns:
this
-
marketplaceProductId
@Stability(Experimental) public AwsMarketplaceComponentAttributes.Builder marketplaceProductId(String marketplaceProductId) Sets the value ofAwsMarketplaceComponentAttributes.getMarketplaceProductId()- Parameters:
marketplaceProductId- The marketplace product ID associated with the component. This parameter is required.- Returns:
this
-
componentVersion
@Stability(Experimental) public AwsMarketplaceComponentAttributes.Builder componentVersion(String componentVersion) Sets the value ofAwsMarketplaceComponentAttributes.getComponentVersion()- Parameters:
componentVersion- The version of the AWS Marketplace component.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AwsMarketplaceComponentAttributes>- Returns:
- a new instance of
AwsMarketplaceComponentAttributes - Throws:
NullPointerException- if any required attribute was not provided
-