Class CfnImageMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnImageMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImageMixinProps>
- Enclosing interface:
CfnImageMixinProps
@Stability(Stable)
public static final class CfnImageMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnImageMixinProps>
A builder for
CfnImageMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.imageDescription(String imageDescription) Sets the value ofCfnImageMixinProps.getImageDescription()imageDisplayName(String imageDisplayName) Sets the value ofCfnImageMixinProps.getImageDisplayName()Sets the value ofCfnImageMixinProps.getImageName()imageRoleArn(String imageRoleArn) Sets the value ofCfnImageMixinProps.getImageRoleArn()Sets the value ofCfnImageMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
imageDescription
Sets the value ofCfnImageMixinProps.getImageDescription()- Parameters:
imageDescription- The description of the image.- Returns:
this
-
imageDisplayName
Sets the value ofCfnImageMixinProps.getImageDisplayName()- Parameters:
imageDisplayName- The display name of the image. Length Constraints : Minimum length of 1. Maximum length of 128.Pattern :
^\S(.*\S)?$- Returns:
this
-
imageName
Sets the value ofCfnImageMixinProps.getImageName()- Parameters:
imageName- The name of the Image. Must be unique by region in your account. Length Constraints : Minimum length of 1. Maximum length of 63.Pattern :
^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$- Returns:
this
-
imageRoleArn
Sets the value ofCfnImageMixinProps.getImageRoleArn()- Parameters:
imageRoleArn- The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf. Length Constraints : Minimum length of 20. Maximum length of 2048.Pattern :
^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$- Returns:
this
-
tags
Sets the value ofCfnImageMixinProps.getTags()- Parameters:
tags- A list of key-value pairs to apply to this resource. Array Members : Minimum number of 0 items. Maximum number of 50 items.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnImageMixinProps>- Returns:
- a new instance of
CfnImageMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-