@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.
|
String |
getModelPackageVersionArn()
The Amazon Resource Name (ARN) of a versioned model package.
|
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.
|
NeoVpcConfig |
getVpcConfig()
A VpcConfig object
that specifies the VPC that you want your compilation job to connect to.
|
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 |
setModelPackageVersionArn(String modelPackageVersionArn)
The Amazon Resource Name (ARN) of a versioned model package.
|
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.
|
void |
setVpcConfig(NeoVpcConfig vpcConfig)
A VpcConfig object
that specifies the VPC that you want your compilation job to connect to.
|
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 |
withModelPackageVersionArn(String modelPackageVersionArn)
The Amazon Resource Name (ARN) of a versioned model package.
|
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.
|
CreateCompilationJobRequest |
withVpcConfig(NeoVpcConfig vpcConfig)
A VpcConfig object
that specifies the VPC that you want your compilation job to connect 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 setCompilationJobName(String compilationJobName)
A name for the model compilation job. The name must be unique within the Amazon Web Services Region and within your Amazon Web Services account.
compilationJobName
- A name for the model compilation job. The name must be unique within the Amazon Web Services Region and
within your Amazon Web Services account.public String getCompilationJobName()
A name for the model compilation job. The name must be unique within the Amazon Web Services Region and within your Amazon Web Services account.
public CreateCompilationJobRequest withCompilationJobName(String compilationJobName)
A name for the model compilation job. The name must be unique within the Amazon Web Services Region and within your Amazon Web Services account.
compilationJobName
- A name for the model compilation job. The name must be unique within the Amazon Web Services Region and
within your Amazon Web Services 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 setModelPackageVersionArn(String modelPackageVersionArn)
The Amazon Resource Name (ARN) of a versioned model package. Provide either a ModelPackageVersionArn
or an InputConfig
object in the request syntax. The presence of both objects in the
CreateCompilationJob
request will return an exception.
modelPackageVersionArn
- The Amazon Resource Name (ARN) of a versioned model package. Provide either a
ModelPackageVersionArn
or an InputConfig
object in the request syntax. The
presence of both objects in the CreateCompilationJob
request will return an exception.public String getModelPackageVersionArn()
The Amazon Resource Name (ARN) of a versioned model package. Provide either a ModelPackageVersionArn
or an InputConfig
object in the request syntax. The presence of both objects in the
CreateCompilationJob
request will return an exception.
ModelPackageVersionArn
or an InputConfig
object in the request syntax. The
presence of both objects in the CreateCompilationJob
request will return an exception.public CreateCompilationJobRequest withModelPackageVersionArn(String modelPackageVersionArn)
The Amazon Resource Name (ARN) of a versioned model package. Provide either a ModelPackageVersionArn
or an InputConfig
object in the request syntax. The presence of both objects in the
CreateCompilationJob
request will return an exception.
modelPackageVersionArn
- The Amazon Resource Name (ARN) of a versioned model package. Provide either a
ModelPackageVersionArn
or an InputConfig
object in the request syntax. The
presence of both objects in the CreateCompilationJob
request will return an exception.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 setVpcConfig(NeoVpcConfig vpcConfig)
A VpcConfig object that specifies the VPC that you want your compilation job to connect to. Control access to your models by configuring the VPC. For more information, see Protect Compilation Jobs by Using an Amazon Virtual Private Cloud.
vpcConfig
- A VpcConfig
object that specifies the VPC that you want your compilation job to connect to. Control access to your
models by configuring the VPC. For more information, see Protect Compilation Jobs by Using an
Amazon Virtual Private Cloud.public NeoVpcConfig getVpcConfig()
A VpcConfig object that specifies the VPC that you want your compilation job to connect to. Control access to your models by configuring the VPC. For more information, see Protect Compilation Jobs by Using an Amazon Virtual Private Cloud.
public CreateCompilationJobRequest withVpcConfig(NeoVpcConfig vpcConfig)
A VpcConfig object that specifies the VPC that you want your compilation job to connect to. Control access to your models by configuring the VPC. For more information, see Protect Compilation Jobs by Using an Amazon Virtual Private Cloud.
vpcConfig
- A VpcConfig
object that specifies the VPC that you want your compilation job to connect to. Control access to your
models by configuring the VPC. For more information, see Protect Compilation Jobs by Using an
Amazon Virtual Private Cloud.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 Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.
public void setTags(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.
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.public CreateCompilationJobRequest withTags(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.
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 Amazon Web Services resources in
different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services
Resources.public CreateCompilationJobRequest withTags(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.
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.public String toString()
toString
in class Object
Object.toString()
public CreateCompilationJobRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()