Class ImageAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.alpha.ImageAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ImageAttributes>
- Enclosing interface:
ImageAttributes
@Stability(Experimental)
public static final class ImageAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<ImageAttributes>
A builder for
ImageAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofImageAttributes.getImageArn()Sets the value ofImageAttributes.getImageName()imageVersion(String imageVersion) Sets the value ofImageAttributes.getImageVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
imageArn
Sets the value ofImageAttributes.getImageArn()- Parameters:
imageArn- The ARN of the image.- Returns:
this
-
imageName
Sets the value ofImageAttributes.getImageName()- Parameters:
imageName- The name of the image.- Returns:
this
-
imageVersion
Sets the value ofImageAttributes.getImageVersion()- Parameters:
imageVersion- The version of the image.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ImageAttributes>- Returns:
- a new instance of
ImageAttributes - Throws:
NullPointerException- if any required attribute was not provided
-