@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateCompilationJobRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateCompilationJobRequest() |
Modifier and Type | Method and Description |
---|---|
CreateCompilationJobRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getCompilationJobName()
A name for the model compilation job.
|
InputConfig |
getInputConfig()
Provides information about the location of input model artifacts, the name and shape of the expected data inputs,
and the framework in which the model was trained.
|
OutputConfig |
getOutputConfig()
Provides information about the output location for the compiled model and the target device the model runs on.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.
|
StoppingCondition |
getStoppingCondition()
Specifies a limit to how long a model compilation job can run.
|
List<Tag> |
getTags()
An array of key-value pairs.
|
int |
hashCode() |
void |
setCompilationJobName(String compilationJobName)
A name for the model compilation job.
|
void |
setInputConfig(InputConfig inputConfig)
Provides information about the location of input model artifacts, the name and shape of the expected data inputs,
and the framework in which the model was trained.
|
void |
setOutputConfig(OutputConfig outputConfig)
Provides information about the output location for the compiled model and the target device the model runs on.
|
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)
Specifies a limit to how long a model compilation job can run.
|
void |
setTags(Collection<Tag> tags)
An array of key-value pairs.
|
String |
toString()
Returns a string representation of this object.
|
CreateCompilationJobRequest |
withCompilationJobName(String compilationJobName)
A name for the model compilation job.
|
CreateCompilationJobRequest |
withInputConfig(InputConfig inputConfig)
Provides information about the location of input model artifacts, the name and shape of the expected data inputs,
and the framework in which the model was trained.
|
CreateCompilationJobRequest |
withOutputConfig(OutputConfig outputConfig)
Provides information about the output location for the compiled model and the target device the model runs on.
|
CreateCompilationJobRequest |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.
|
CreateCompilationJobRequest |
withStoppingCondition(StoppingCondition stoppingCondition)
Specifies a limit to how long a model compilation job can run.
|
CreateCompilationJobRequest |
withTags(Collection<Tag> tags)
An array of key-value pairs.
|
CreateCompilationJobRequest |
withTags(Tag... tags)
An array of key-value pairs.
|
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 setCompilationJobName(String compilationJobName)
A name for the model compilation job. The name must be unique within the AWS Region and within your AWS account.
compilationJobName
- A name for the model compilation job. The name must be unique within the AWS Region and within your AWS
account.public String getCompilationJobName()
A name for the model compilation job. The name must be unique within the AWS Region and within your AWS account.
public CreateCompilationJobRequest withCompilationJobName(String compilationJobName)
A name for the model compilation job. The name must be unique within the AWS Region and within your AWS account.
compilationJobName
- A name for the model compilation job. The name must be unique within the AWS Region and within your AWS
account.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 compilation, 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 compilation, 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 compilation, 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 compilation, 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 CreateCompilationJobRequest withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.
During model compilation, 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 compilation, 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 setInputConfig(InputConfig inputConfig)
Provides information about the location of input model artifacts, the name and shape of the expected data inputs, and the framework in which the model was trained.
inputConfig
- Provides information about the location of input model artifacts, the name and shape of the expected data
inputs, and the framework in which the model was trained.public InputConfig getInputConfig()
Provides information about the location of input model artifacts, the name and shape of the expected data inputs, and the framework in which the model was trained.
public CreateCompilationJobRequest withInputConfig(InputConfig inputConfig)
Provides information about the location of input model artifacts, the name and shape of the expected data inputs, and the framework in which the model was trained.
inputConfig
- Provides information about the location of input model artifacts, the name and shape of the expected data
inputs, and the framework in which the model was trained.public void setOutputConfig(OutputConfig outputConfig)
Provides information about the output location for the compiled model and the target device the model runs on.
outputConfig
- Provides information about the output location for the compiled model and the target device the model runs
on.public OutputConfig getOutputConfig()
Provides information about the output location for the compiled model and the target device the model runs on.
public CreateCompilationJobRequest withOutputConfig(OutputConfig outputConfig)
Provides information about the output location for the compiled model and the target device the model runs on.
outputConfig
- Provides information about the output location for the compiled model and the target device the model runs
on.public void setStoppingCondition(StoppingCondition stoppingCondition)
Specifies a limit to how long a model compilation job can run. When the job reaches the time limit, Amazon SageMaker ends the compilation job. Use this API to cap model training costs.
stoppingCondition
- Specifies a limit to how long a model compilation job can run. When the job reaches the time limit, Amazon
SageMaker ends the compilation job. Use this API to cap model training costs.public StoppingCondition getStoppingCondition()
Specifies a limit to how long a model compilation job can run. When the job reaches the time limit, Amazon SageMaker ends the compilation job. Use this API to cap model training costs.
public CreateCompilationJobRequest withStoppingCondition(StoppingCondition stoppingCondition)
Specifies a limit to how long a model compilation job can run. When the job reaches the time limit, Amazon SageMaker ends the compilation job. Use this API to cap model training costs.
stoppingCondition
- Specifies a limit to how long a model compilation job can run. When the job reaches the time limit, Amazon
SageMaker ends the compilation job. Use this API to cap model training costs.public List<Tag> getTags()
An array of key-value pairs. You can use tags to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging AWS Resources.
public void setTags(Collection<Tag> tags)
An array of key-value pairs. You can use tags to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging AWS Resources.
tags
- An array of key-value pairs. You can use tags to categorize your AWS resources in different ways, for
example, by purpose, owner, or environment. For more information, see Tagging AWS Resources.public CreateCompilationJobRequest withTags(Tag... tags)
An array of key-value pairs. You can use tags to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging AWS Resources.
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
- An array of key-value pairs. You can use tags to categorize your AWS resources in different ways, for
example, by purpose, owner, or environment. For more information, see Tagging AWS Resources.public CreateCompilationJobRequest withTags(Collection<Tag> tags)
An array of key-value pairs. You can use tags to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging AWS Resources.
tags
- An array of key-value pairs. You can use tags to categorize your AWS resources in different ways, for
example, by purpose, owner, or environment. For more information, see Tagging AWS Resources.public String toString()
toString
in class Object
Object.toString()
public CreateCompilationJobRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()