public static final class CfnModel.ImageConfigProperty.Builder
extends java.lang.Object
CfnModel.ImageConfigProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnModel.ImageConfigProperty |
build()
Builds the configured instance.
|
CfnModel.ImageConfigProperty.Builder |
repositoryAccessMode(java.lang.String repositoryAccessMode)
Sets the value of
CfnModel.ImageConfigProperty.getRepositoryAccessMode() |
CfnModel.ImageConfigProperty.Builder |
repositoryAuthConfig(CfnModel.RepositoryAuthConfigProperty repositoryAuthConfig)
Sets the value of
CfnModel.ImageConfigProperty.getRepositoryAuthConfig() |
CfnModel.ImageConfigProperty.Builder |
repositoryAuthConfig(IResolvable repositoryAuthConfig)
Sets the value of
CfnModel.ImageConfigProperty.getRepositoryAuthConfig() |
public CfnModel.ImageConfigProperty.Builder repositoryAccessMode(java.lang.String repositoryAccessMode)
CfnModel.ImageConfigProperty.getRepositoryAccessMode()
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.this
public CfnModel.ImageConfigProperty.Builder repositoryAuthConfig(IResolvable repositoryAuthConfig)
CfnModel.ImageConfigProperty.getRepositoryAuthConfig()
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 specified Vpc
as the value for the RepositoryAccessMode
field, and the private Docker registry where the model image is hosted requires authentication.this
public CfnModel.ImageConfigProperty.Builder repositoryAuthConfig(CfnModel.RepositoryAuthConfigProperty repositoryAuthConfig)
CfnModel.ImageConfigProperty.getRepositoryAuthConfig()
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 specified Vpc
as the value for the RepositoryAccessMode
field, and the private Docker registry where the model image is hosted requires authentication.this
public CfnModel.ImageConfigProperty build()
CfnModel.ImageConfigProperty
java.lang.NullPointerException
- if any required attribute was not provided