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
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnImageVersionProps.getAlias()
Sets the value ofCfnImageVersionProps.getAliases()
Sets the value ofCfnImageVersionProps.getBaseImage()
build()
Builds the configured instance.Sets the value ofCfnImageVersionProps.getHorovod()
horovod
(IResolvable horovod) Sets the value ofCfnImageVersionProps.getHorovod()
Sets the value ofCfnImageVersionProps.getImageName()
Sets the value ofCfnImageVersionProps.getJobType()
mlFramework
(String mlFramework) Sets the value ofCfnImageVersionProps.getMlFramework()
Sets the value ofCfnImageVersionProps.getProcessor()
programmingLang
(String programmingLang) Sets the value ofCfnImageVersionProps.getProgrammingLang()
releaseNotes
(String releaseNotes) Sets the value ofCfnImageVersionProps.getReleaseNotes()
vendorGuidance
(String vendorGuidance) Sets the value ofCfnImageVersionProps.getVendorGuidance()
-
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.- 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
-
alias
Sets the value ofCfnImageVersionProps.getAlias()
- Parameters:
alias
- The alias of the image version.- Returns:
this
-
aliases
Sets the value ofCfnImageVersionProps.getAliases()
- Parameters:
aliases
- List of aliases for the image version.- Returns:
this
-
horovod
Sets the value ofCfnImageVersionProps.getHorovod()
- Parameters:
horovod
- Indicates Horovod compatibility.- Returns:
this
-
horovod
Sets the value ofCfnImageVersionProps.getHorovod()
- Parameters:
horovod
- Indicates Horovod compatibility.- Returns:
this
-
jobType
Sets the value ofCfnImageVersionProps.getJobType()
- Parameters:
jobType
- Indicates SageMaker job type compatibility.- Returns:
this
-
mlFramework
Sets the value ofCfnImageVersionProps.getMlFramework()
- Parameters:
mlFramework
- The machine learning framework vended in the image version.- Returns:
this
-
processor
Sets the value ofCfnImageVersionProps.getProcessor()
- Parameters:
processor
- Indicates CPU or GPU compatibility.- Returns:
this
-
programmingLang
Sets the value ofCfnImageVersionProps.getProgrammingLang()
- Parameters:
programmingLang
- The supported programming language and its version.- Returns:
this
-
releaseNotes
Sets the value ofCfnImageVersionProps.getReleaseNotes()
- Parameters:
releaseNotes
- The maintainer description of the image version.- Returns:
this
-
vendorGuidance
Sets the value ofCfnImageVersionProps.getVendorGuidance()
- Parameters:
vendorGuidance
- The availability of the image version specified by the maintainer.- 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
-