Interface CreateOptimizationJobRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateOptimizationJobRequest.Builder,
,CreateOptimizationJobRequest> SageMakerRequest.Builder
,SdkBuilder<CreateOptimizationJobRequest.Builder,
,CreateOptimizationJobRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateOptimizationJobRequest
-
Method Summary
Modifier and TypeMethodDescriptiondeploymentInstanceType
(String deploymentInstanceType) The type of instance that hosts the optimized model that you create with the optimization job.deploymentInstanceType
(OptimizationJobDeploymentInstanceType deploymentInstanceType) The type of instance that hosts the optimized model that you create with the optimization job.modelSource
(Consumer<OptimizationJobModelSource.Builder> modelSource) The location of the source model to optimize with an optimization job.modelSource
(OptimizationJobModelSource modelSource) The location of the source model to optimize with an optimization job.optimizationConfigs
(Collection<OptimizationConfig> optimizationConfigs) Settings for each of the optimization techniques that the job applies.optimizationConfigs
(Consumer<OptimizationConfig.Builder>... optimizationConfigs) Settings for each of the optimization techniques that the job applies.optimizationConfigs
(OptimizationConfig... optimizationConfigs) Settings for each of the optimization techniques that the job applies.optimizationEnvironment
(Map<String, String> optimizationEnvironment) The environment variables to set in the model container.optimizationJobName
(String optimizationJobName) A custom name for the new optimization job.outputConfig
(Consumer<OptimizationJobOutputConfig.Builder> outputConfig) Details for where to store the optimized model that you create with the optimization job.outputConfig
(OptimizationJobOutputConfig outputConfig) Details for where to store the optimized model that you create with the optimization job.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.stoppingCondition
(Consumer<StoppingCondition.Builder> stoppingCondition) Sets the value of the StoppingCondition property for this object.stoppingCondition
(StoppingCondition stoppingCondition) Sets the value of the StoppingCondition property for this object.tags
(Collection<Tag> tags) A list of key-value pairs associated with the optimization job.tags
(Consumer<Tag.Builder>... tags) A list of key-value pairs associated with the optimization job.A list of key-value pairs associated with the optimization job.vpcConfig
(Consumer<OptimizationVpcConfig.Builder> vpcConfig) A VPC in Amazon VPC that your optimized model has access to.vpcConfig
(OptimizationVpcConfig vpcConfig) A VPC in Amazon VPC that your optimized model has access 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 Details
-
optimizationJobName
A custom name for the new optimization job.
- Parameters:
optimizationJobName
- A custom name for the new optimization job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.
During model optimization, Amazon SageMaker needs your permission to:
-
Read input data from an S3 bucket
-
Write model artifacts to an S3 bucket
-
Write logs to Amazon CloudWatch Logs
-
Publish metrics to Amazon CloudWatch
You grant permissions for all of these tasks to an IAM role. To pass this role to Amazon SageMaker, the caller of this API must have the
iam:PassRole
permission. For more information, see Amazon SageMaker Roles.- Parameters:
roleArn
- The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.During model optimization, Amazon SageMaker needs your permission to:
-
Read input data from an S3 bucket
-
Write model artifacts to an S3 bucket
-
Write logs to Amazon CloudWatch Logs
-
Publish metrics to Amazon CloudWatch
You grant permissions for all of these tasks to an IAM role. To pass this role to Amazon SageMaker, the caller of this API must have the
iam:PassRole
permission. For more information, see Amazon SageMaker Roles.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
modelSource
The location of the source model to optimize with an optimization job.
- Parameters:
modelSource
- The location of the source model to optimize with an optimization job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelSource
default CreateOptimizationJobRequest.Builder modelSource(Consumer<OptimizationJobModelSource.Builder> modelSource) The location of the source model to optimize with an optimization job.
This is a convenience method that creates an instance of theOptimizationJobModelSource.Builder
avoiding the need to create one manually viaOptimizationJobModelSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomodelSource(OptimizationJobModelSource)
.- Parameters:
modelSource
- a consumer that will call methods onOptimizationJobModelSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
deploymentInstanceType
The type of instance that hosts the optimized model that you create with the optimization job.
- Parameters:
deploymentInstanceType
- The type of instance that hosts the optimized model that you create with the optimization job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
deploymentInstanceType
CreateOptimizationJobRequest.Builder deploymentInstanceType(OptimizationJobDeploymentInstanceType deploymentInstanceType) The type of instance that hosts the optimized model that you create with the optimization job.
- Parameters:
deploymentInstanceType
- The type of instance that hosts the optimized model that you create with the optimization job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
optimizationEnvironment
CreateOptimizationJobRequest.Builder optimizationEnvironment(Map<String, String> optimizationEnvironment) The environment variables to set in the model container.
- Parameters:
optimizationEnvironment
- The environment variables to set in the model container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optimizationConfigs
CreateOptimizationJobRequest.Builder optimizationConfigs(Collection<OptimizationConfig> optimizationConfigs) Settings for each of the optimization techniques that the job applies.
- Parameters:
optimizationConfigs
- Settings for each of the optimization techniques that the job applies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optimizationConfigs
Settings for each of the optimization techniques that the job applies.
- Parameters:
optimizationConfigs
- Settings for each of the optimization techniques that the job applies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optimizationConfigs
CreateOptimizationJobRequest.Builder optimizationConfigs(Consumer<OptimizationConfig.Builder>... optimizationConfigs) Settings for each of the optimization techniques that the job applies.
This is a convenience method that creates an instance of theOptimizationConfig.Builder
avoiding the need to create one manually viaOptimizationConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooptimizationConfigs(List<OptimizationConfig>)
.- Parameters:
optimizationConfigs
- a consumer that will call methods onOptimizationConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputConfig
Details for where to store the optimized model that you create with the optimization job.
- Parameters:
outputConfig
- Details for where to store the optimized model that you create with the optimization job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputConfig
default CreateOptimizationJobRequest.Builder outputConfig(Consumer<OptimizationJobOutputConfig.Builder> outputConfig) Details for where to store the optimized model that you create with the optimization job.
This is a convenience method that creates an instance of theOptimizationJobOutputConfig.Builder
avoiding the need to create one manually viaOptimizationJobOutputConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooutputConfig(OptimizationJobOutputConfig)
.- Parameters:
outputConfig
- a consumer that will call methods onOptimizationJobOutputConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stoppingCondition
Sets the value of the StoppingCondition property for this object.- Parameters:
stoppingCondition
- The new value for the StoppingCondition property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stoppingCondition
default CreateOptimizationJobRequest.Builder stoppingCondition(Consumer<StoppingCondition.Builder> stoppingCondition) Sets the value of the StoppingCondition property for this object. This is a convenience method that creates an instance of theStoppingCondition.Builder
avoiding the need to create one manually viaStoppingCondition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostoppingCondition(StoppingCondition)
.- Parameters:
stoppingCondition
- a consumer that will call methods onStoppingCondition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
A list of key-value pairs associated with the optimization job. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
- Parameters:
tags
- A list of key-value pairs associated with the optimization job. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of key-value pairs associated with the optimization job. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
- Parameters:
tags
- A list of key-value pairs associated with the optimization job. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of key-value pairs associated with the optimization job. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- 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:
-
vpcConfig
A VPC in Amazon VPC that your optimized model has access to.
- Parameters:
vpcConfig
- A VPC in Amazon VPC that your optimized model has access to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
default CreateOptimizationJobRequest.Builder vpcConfig(Consumer<OptimizationVpcConfig.Builder> vpcConfig) A VPC in Amazon VPC that your optimized model has access to.
This is a convenience method that creates an instance of theOptimizationVpcConfig.Builder
avoiding the need to create one manually viaOptimizationVpcConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovpcConfig(OptimizationVpcConfig)
.- Parameters:
vpcConfig
- a consumer that will call methods onOptimizationVpcConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateOptimizationJobRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateOptimizationJobRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-