Class CfnModel.ImageConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnModel.ImageConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModel.ImageConfigProperty>
- Enclosing interface:
- CfnModel.ImageConfigProperty
@Stability(Stable)
public static final class CfnModel.ImageConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModel.ImageConfigProperty>
A builder for
CfnModel.ImageConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.repositoryAccessMode(String repositoryAccessMode) Sets the value ofCfnModel.ImageConfigProperty.getRepositoryAccessMode()repositoryAuthConfig(IResolvable repositoryAuthConfig) Sets the value ofCfnModel.ImageConfigProperty.getRepositoryAuthConfig()repositoryAuthConfig(CfnModel.RepositoryAuthConfigProperty repositoryAuthConfig) Sets the value ofCfnModel.ImageConfigProperty.getRepositoryAuthConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
repositoryAccessMode
@Stability(Stable) public CfnModel.ImageConfigProperty.Builder repositoryAccessMode(String repositoryAccessMode) Sets the value ofCfnModel.ImageConfigProperty.getRepositoryAccessMode()- Parameters:
repositoryAccessMode- Set this to one of the following values:. This parameter is required.Platform- The model image is hosted in Amazon ECR.Vpc- The model image is hosted in a private Docker registry in your VPC.
- Returns:
this
-
repositoryAuthConfig
@Stability(Stable) public CfnModel.ImageConfigProperty.Builder repositoryAuthConfig(IResolvable repositoryAuthConfig) Sets the value ofCfnModel.ImageConfigProperty.getRepositoryAuthConfig()- Parameters:
repositoryAuthConfig- (Optional) Specifies an authentication configuration for the private docker registry where your model image is hosted. Specify a value for this property only if you specifiedVpcas the value for theRepositoryAccessModefield, and the private Docker registry where the model image is hosted requires authentication.- Returns:
this
-
repositoryAuthConfig
@Stability(Stable) public CfnModel.ImageConfigProperty.Builder repositoryAuthConfig(CfnModel.RepositoryAuthConfigProperty repositoryAuthConfig) Sets the value ofCfnModel.ImageConfigProperty.getRepositoryAuthConfig()- Parameters:
repositoryAuthConfig- (Optional) Specifies an authentication configuration for the private docker registry where your model image is hosted. Specify a value for this property only if you specifiedVpcas the value for theRepositoryAccessModefield, and the private Docker registry where the model image is hosted requires authentication.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnModel.ImageConfigProperty>- Returns:
- a new instance of
CfnModel.ImageConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-