Class AmazonManagedImageAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.alpha.AmazonManagedImageAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AmazonManagedImageAttributes>
- Enclosing interface:
AmazonManagedImageAttributes
@Stability(Experimental)
public static final class AmazonManagedImageAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<AmazonManagedImageAttributes>
A builder for
AmazonManagedImageAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofAmazonManagedImageAttributes.getImageName()imageVersion(String imageVersion) Sets the value ofAmazonManagedImageAttributes.getImageVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
imageName
Sets the value ofAmazonManagedImageAttributes.getImageName()- Parameters:
imageName- The name of the Amazon-managed image. This parameter is required. The provided name must be normalized by converting all alphabetical characters to lowercase, and replacing all spaces and underscores with hyphens.- Returns:
this
-
imageVersion
@Stability(Experimental) public AmazonManagedImageAttributes.Builder imageVersion(String imageVersion) Sets the value ofAmazonManagedImageAttributes.getImageVersion()- Parameters:
imageVersion- The version of the Amazon-managed image.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AmazonManagedImageAttributes>- Returns:
- a new instance of
AmazonManagedImageAttributes - Throws:
NullPointerException- if any required attribute was not provided
-