Interface CreateModelRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateModelRequest.Builder,CreateModelRequest>,SageMakerRequest.Builder,SdkBuilder<CreateModelRequest.Builder,CreateModelRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateModelRequest
public static interface CreateModelRequest.Builder extends SageMakerRequest.Builder, SdkPojo, CopyableBuilder<CreateModelRequest.Builder,CreateModelRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateModelRequest.Buildercontainers(Collection<ContainerDefinition> containers)Specifies the containers in the inference pipeline.CreateModelRequest.Buildercontainers(Consumer<ContainerDefinition.Builder>... containers)Specifies the containers in the inference pipeline.CreateModelRequest.Buildercontainers(ContainerDefinition... containers)Specifies the containers in the inference pipeline.CreateModelRequest.BuilderenableNetworkIsolation(Boolean enableNetworkIsolation)Isolates the model container.CreateModelRequest.BuilderexecutionRoleArn(String executionRoleArn)The Amazon Resource Name (ARN) of the IAM role that SageMaker can assume to access model artifacts and docker image for deployment on ML compute instances or for batch transform jobs.default CreateModelRequest.BuilderinferenceExecutionConfig(Consumer<InferenceExecutionConfig.Builder> inferenceExecutionConfig)Specifies details of how containers in a multi-container endpoint are called.CreateModelRequest.BuilderinferenceExecutionConfig(InferenceExecutionConfig inferenceExecutionConfig)Specifies details of how containers in a multi-container endpoint are called.CreateModelRequest.BuildermodelName(String modelName)The name of the new model.CreateModelRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateModelRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default CreateModelRequest.BuilderprimaryContainer(Consumer<ContainerDefinition.Builder> primaryContainer)The location of the primary docker image containing inference code, associated artifacts, and custom environment map that the inference code uses when the model is deployed for predictions.CreateModelRequest.BuilderprimaryContainer(ContainerDefinition primaryContainer)The location of the primary docker image containing inference code, associated artifacts, and custom environment map that the inference code uses when the model is deployed for predictions.CreateModelRequest.Buildertags(Collection<Tag> tags)An array of key-value pairs.CreateModelRequest.Buildertags(Consumer<Tag.Builder>... tags)An array of key-value pairs.CreateModelRequest.Buildertags(Tag... tags)An array of key-value pairs.default CreateModelRequest.BuildervpcConfig(Consumer<VpcConfig.Builder> vpcConfig)A VpcConfig object that specifies the VPC that you want your model to connect to.CreateModelRequest.BuildervpcConfig(VpcConfig vpcConfig)A VpcConfig object that specifies the VPC that you want your model to connect to.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
modelName
CreateModelRequest.Builder modelName(String modelName)
The name of the new model.
- Parameters:
modelName- The name of the new model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
primaryContainer
CreateModelRequest.Builder primaryContainer(ContainerDefinition primaryContainer)
The location of the primary docker image containing inference code, associated artifacts, and custom environment map that the inference code uses when the model is deployed for predictions.
- Parameters:
primaryContainer- The location of the primary docker image containing inference code, associated artifacts, and custom environment map that the inference code uses when the model is deployed for predictions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
primaryContainer
default CreateModelRequest.Builder primaryContainer(Consumer<ContainerDefinition.Builder> primaryContainer)
The location of the primary docker image containing inference code, associated artifacts, and custom environment map that the inference code uses when the model is deployed for predictions.
This is a convenience method that creates an instance of theContainerDefinition.Builderavoiding the need to create one manually viaContainerDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprimaryContainer(ContainerDefinition).- Parameters:
primaryContainer- a consumer that will call methods onContainerDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
primaryContainer(ContainerDefinition)
-
containers
CreateModelRequest.Builder containers(Collection<ContainerDefinition> containers)
Specifies the containers in the inference pipeline.
- Parameters:
containers- Specifies the containers in the inference pipeline.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
CreateModelRequest.Builder containers(ContainerDefinition... containers)
Specifies the containers in the inference pipeline.
- Parameters:
containers- Specifies the containers in the inference pipeline.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
CreateModelRequest.Builder containers(Consumer<ContainerDefinition.Builder>... containers)
Specifies the containers in the inference pipeline.
This is a convenience method that creates an instance of theContainerDefinition.Builderavoiding the need to create one manually viaContainerDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#containers(List.) - Parameters:
containers- a consumer that will call methods onContainerDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#containers(java.util.Collection)
-
inferenceExecutionConfig
CreateModelRequest.Builder inferenceExecutionConfig(InferenceExecutionConfig inferenceExecutionConfig)
Specifies details of how containers in a multi-container endpoint are called.
- Parameters:
inferenceExecutionConfig- Specifies details of how containers in a multi-container endpoint are called.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceExecutionConfig
default CreateModelRequest.Builder inferenceExecutionConfig(Consumer<InferenceExecutionConfig.Builder> inferenceExecutionConfig)
Specifies details of how containers in a multi-container endpoint are called.
This is a convenience method that creates an instance of theInferenceExecutionConfig.Builderavoiding the need to create one manually viaInferenceExecutionConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinferenceExecutionConfig(InferenceExecutionConfig).- Parameters:
inferenceExecutionConfig- a consumer that will call methods onInferenceExecutionConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
inferenceExecutionConfig(InferenceExecutionConfig)
-
executionRoleArn
CreateModelRequest.Builder executionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the IAM role that SageMaker can assume to access model artifacts and docker image for deployment on ML compute instances or for batch transform jobs. Deploying on ML compute instances is part of model hosting. For more information, see SageMaker Roles.
To be able to pass this role to SageMaker, the caller of this API must have the
iam:PassRolepermission.- Parameters:
executionRoleArn- The Amazon Resource Name (ARN) of the IAM role that SageMaker can assume to access model artifacts and docker image for deployment on ML compute instances or for batch transform jobs. Deploying on ML compute instances is part of model hosting. For more information, see SageMaker Roles.To be able to pass this role to SageMaker, the caller of this API must have the
iam:PassRolepermission.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateModelRequest.Builder tags(Collection<Tag> tags)
An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.
- Parameters:
tags- An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateModelRequest.Builder tags(Tag... tags)
An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.
- Parameters:
tags- An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateModelRequest.Builder tags(Consumer<Tag.Builder>... tags)
An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
vpcConfig
CreateModelRequest.Builder vpcConfig(VpcConfig vpcConfig)
A VpcConfig object that specifies the VPC that you want your model to connect to. Control access to and from your model container by configuring the VPC.
VpcConfigis used in hosting services and in batch transform. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Data in Batch Transform Jobs by Using an Amazon Virtual Private Cloud.- Parameters:
vpcConfig- A VpcConfig object that specifies the VPC that you want your model to connect to. Control access to and from your model container by configuring the VPC.VpcConfigis used in hosting services and in batch transform. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Data in Batch Transform Jobs by Using an Amazon Virtual Private Cloud.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
default CreateModelRequest.Builder vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)
A VpcConfig object that specifies the VPC that you want your model to connect to. Control access to and from your model container by configuring the VPC.
This is a convenience method that creates an instance of theVpcConfigis used in hosting services and in batch transform. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Data in Batch Transform Jobs by Using an Amazon Virtual Private Cloud.VpcConfig.Builderavoiding the need to create one manually viaVpcConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovpcConfig(VpcConfig).- Parameters:
vpcConfig- a consumer that will call methods onVpcConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
vpcConfig(VpcConfig)
-
enableNetworkIsolation
CreateModelRequest.Builder enableNetworkIsolation(Boolean enableNetworkIsolation)
Isolates the model container. No inbound or outbound network calls can be made to or from the model container.
- Parameters:
enableNetworkIsolation- Isolates the model container. No inbound or outbound network calls can be made to or from the model container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateModelRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateModelRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-