@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateOptimizationJobRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateOptimizationJobRequest() |
Modifier and Type | Method and Description |
---|---|
CreateOptimizationJobRequest |
addOptimizationEnvironmentEntry(String key,
String value)
Add a single OptimizationEnvironment entry
|
CreateOptimizationJobRequest |
clearOptimizationEnvironmentEntries()
Removes all the entries added into OptimizationEnvironment.
|
CreateOptimizationJobRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDeploymentInstanceType()
The type of instance that hosts the optimized model that you create with the optimization job.
|
OptimizationJobModelSource |
getModelSource()
The location of the source model to optimize with an optimization job.
|
List<OptimizationConfig> |
getOptimizationConfigs()
Settings for each of the optimization techniques that the job applies.
|
Map<String,String> |
getOptimizationEnvironment()
The environment variables to set in the model container.
|
String |
getOptimizationJobName()
A custom name for the new optimization job.
|
OptimizationJobOutputConfig |
getOutputConfig()
Details for where to store the optimized model that you create with the optimization job.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.
|
StoppingCondition |
getStoppingCondition() |
List<Tag> |
getTags()
A list of key-value pairs associated with the optimization job.
|
OptimizationVpcConfig |
getVpcConfig()
A VPC in Amazon VPC that your optimized model has access to.
|
int |
hashCode() |
void |
setDeploymentInstanceType(String deploymentInstanceType)
The type of instance that hosts the optimized model that you create with the optimization job.
|
void |
setModelSource(OptimizationJobModelSource modelSource)
The location of the source model to optimize with an optimization job.
|
void |
setOptimizationConfigs(Collection<OptimizationConfig> optimizationConfigs)
Settings for each of the optimization techniques that the job applies.
|
void |
setOptimizationEnvironment(Map<String,String> optimizationEnvironment)
The environment variables to set in the model container.
|
void |
setOptimizationJobName(String optimizationJobName)
A custom name for the new optimization job.
|
void |
setOutputConfig(OptimizationJobOutputConfig outputConfig)
Details for where to store the optimized model that you create with the optimization job.
|
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.
|
void |
setStoppingCondition(StoppingCondition stoppingCondition) |
void |
setTags(Collection<Tag> tags)
A list of key-value pairs associated with the optimization job.
|
void |
setVpcConfig(OptimizationVpcConfig vpcConfig)
A VPC in Amazon VPC that your optimized model has access to.
|
String |
toString()
Returns a string representation of this object.
|
CreateOptimizationJobRequest |
withDeploymentInstanceType(OptimizationJobDeploymentInstanceType deploymentInstanceType)
The type of instance that hosts the optimized model that you create with the optimization job.
|
CreateOptimizationJobRequest |
withDeploymentInstanceType(String deploymentInstanceType)
The type of instance that hosts the optimized model that you create with the optimization job.
|
CreateOptimizationJobRequest |
withModelSource(OptimizationJobModelSource modelSource)
The location of the source model to optimize with an optimization job.
|
CreateOptimizationJobRequest |
withOptimizationConfigs(Collection<OptimizationConfig> optimizationConfigs)
Settings for each of the optimization techniques that the job applies.
|
CreateOptimizationJobRequest |
withOptimizationConfigs(OptimizationConfig... optimizationConfigs)
Settings for each of the optimization techniques that the job applies.
|
CreateOptimizationJobRequest |
withOptimizationEnvironment(Map<String,String> optimizationEnvironment)
The environment variables to set in the model container.
|
CreateOptimizationJobRequest |
withOptimizationJobName(String optimizationJobName)
A custom name for the new optimization job.
|
CreateOptimizationJobRequest |
withOutputConfig(OptimizationJobOutputConfig outputConfig)
Details for where to store the optimized model that you create with the optimization job.
|
CreateOptimizationJobRequest |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.
|
CreateOptimizationJobRequest |
withStoppingCondition(StoppingCondition stoppingCondition) |
CreateOptimizationJobRequest |
withTags(Collection<Tag> tags)
A list of key-value pairs associated with the optimization job.
|
CreateOptimizationJobRequest |
withTags(Tag... tags)
A list of key-value pairs associated with the optimization job.
|
CreateOptimizationJobRequest |
withVpcConfig(OptimizationVpcConfig vpcConfig)
A VPC in Amazon VPC that your optimized model has access to.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setOptimizationJobName(String optimizationJobName)
A custom name for the new optimization job.
optimizationJobName
- A custom name for the new optimization job.public String getOptimizationJobName()
A custom name for the new optimization job.
public CreateOptimizationJobRequest withOptimizationJobName(String optimizationJobName)
A custom name for the new optimization job.
optimizationJobName
- A custom name for the new optimization job.public void setRoleArn(String 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.
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.
public String getRoleArn()
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.
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.
public CreateOptimizationJobRequest withRoleArn(String 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.
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.
public void setModelSource(OptimizationJobModelSource modelSource)
The location of the source model to optimize with an optimization job.
modelSource
- The location of the source model to optimize with an optimization job.public OptimizationJobModelSource getModelSource()
The location of the source model to optimize with an optimization job.
public CreateOptimizationJobRequest withModelSource(OptimizationJobModelSource modelSource)
The location of the source model to optimize with an optimization job.
modelSource
- The location of the source model to optimize with an optimization job.public void setDeploymentInstanceType(String deploymentInstanceType)
The type of instance that hosts the optimized model that you create with the optimization job.
deploymentInstanceType
- The type of instance that hosts the optimized model that you create with the optimization job.OptimizationJobDeploymentInstanceType
public String getDeploymentInstanceType()
The type of instance that hosts the optimized model that you create with the optimization job.
OptimizationJobDeploymentInstanceType
public CreateOptimizationJobRequest withDeploymentInstanceType(String deploymentInstanceType)
The type of instance that hosts the optimized model that you create with the optimization job.
deploymentInstanceType
- The type of instance that hosts the optimized model that you create with the optimization job.OptimizationJobDeploymentInstanceType
public CreateOptimizationJobRequest withDeploymentInstanceType(OptimizationJobDeploymentInstanceType deploymentInstanceType)
The type of instance that hosts the optimized model that you create with the optimization job.
deploymentInstanceType
- The type of instance that hosts the optimized model that you create with the optimization job.OptimizationJobDeploymentInstanceType
public Map<String,String> getOptimizationEnvironment()
The environment variables to set in the model container.
public void setOptimizationEnvironment(Map<String,String> optimizationEnvironment)
The environment variables to set in the model container.
optimizationEnvironment
- The environment variables to set in the model container.public CreateOptimizationJobRequest withOptimizationEnvironment(Map<String,String> optimizationEnvironment)
The environment variables to set in the model container.
optimizationEnvironment
- The environment variables to set in the model container.public CreateOptimizationJobRequest addOptimizationEnvironmentEntry(String key, String value)
public CreateOptimizationJobRequest clearOptimizationEnvironmentEntries()
public List<OptimizationConfig> getOptimizationConfigs()
Settings for each of the optimization techniques that the job applies.
public void setOptimizationConfigs(Collection<OptimizationConfig> optimizationConfigs)
Settings for each of the optimization techniques that the job applies.
optimizationConfigs
- Settings for each of the optimization techniques that the job applies.public CreateOptimizationJobRequest withOptimizationConfigs(OptimizationConfig... optimizationConfigs)
Settings for each of the optimization techniques that the job applies.
NOTE: This method appends the values to the existing list (if any). Use
setOptimizationConfigs(java.util.Collection)
or withOptimizationConfigs(java.util.Collection)
if you want to override the existing values.
optimizationConfigs
- Settings for each of the optimization techniques that the job applies.public CreateOptimizationJobRequest withOptimizationConfigs(Collection<OptimizationConfig> optimizationConfigs)
Settings for each of the optimization techniques that the job applies.
optimizationConfigs
- Settings for each of the optimization techniques that the job applies.public void setOutputConfig(OptimizationJobOutputConfig outputConfig)
Details for where to store the optimized model that you create with the optimization job.
outputConfig
- Details for where to store the optimized model that you create with the optimization job.public OptimizationJobOutputConfig getOutputConfig()
Details for where to store the optimized model that you create with the optimization job.
public CreateOptimizationJobRequest withOutputConfig(OptimizationJobOutputConfig outputConfig)
Details for where to store the optimized model that you create with the optimization job.
outputConfig
- Details for where to store the optimized model that you create with the optimization job.public void setStoppingCondition(StoppingCondition stoppingCondition)
stoppingCondition
- public StoppingCondition getStoppingCondition()
public CreateOptimizationJobRequest withStoppingCondition(StoppingCondition stoppingCondition)
stoppingCondition
- public List<Tag> getTags()
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.
public void setTags(Collection<Tag> 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.
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.public CreateOptimizationJobRequest withTags(Tag... 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.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
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.public CreateOptimizationJobRequest withTags(Collection<Tag> 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.
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.public void setVpcConfig(OptimizationVpcConfig vpcConfig)
A VPC in Amazon VPC that your optimized model has access to.
vpcConfig
- A VPC in Amazon VPC that your optimized model has access to.public OptimizationVpcConfig getVpcConfig()
A VPC in Amazon VPC that your optimized model has access to.
public CreateOptimizationJobRequest withVpcConfig(OptimizationVpcConfig vpcConfig)
A VPC in Amazon VPC that your optimized model has access to.
vpcConfig
- A VPC in Amazon VPC that your optimized model has access to.public String toString()
toString
in class Object
Object.toString()
public CreateOptimizationJobRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()