Class CfnImageVersionProps.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnImageVersionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImageVersionProps>
- Enclosing interface:
CfnImageVersionProps
@Stability(Stable)
public static final class CfnImageVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnImageVersionProps>
A builder for
CfnImageVersionProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnImageVersionProps.getBaseImage()
build()
Builds the configured instance.Sets the value ofCfnImageVersionProps.getImageName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
baseImage
Sets the value ofCfnImageVersionProps.getBaseImage()
- Parameters:
baseImage
- The container image that the SageMaker image version is based on. This parameter is required. Length Constraints : Minimum length of 1. Maximum length of 255.Pattern :
.*
- Returns:
this
-
imageName
Sets the value ofCfnImageVersionProps.getImageName()
- Parameters:
imageName
- The name of the parent image. This parameter is required. Length Constraints : Minimum length of 1. Maximum length of 63.Pattern :
^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnImageVersionProps>
- Returns:
- a new instance of
CfnImageVersionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-