@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateJobRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateJobRequest() |
Modifier and Type | Method and Description |
---|---|
CreateJobRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
AbortConfig |
getAbortConfig()
Allows you to create criteria to abort a job.
|
String |
getDescription()
A short text description of the job.
|
String |
getDocument()
The job document.
|
String |
getDocumentSource()
An S3 link to the job document.
|
JobExecutionsRolloutConfig |
getJobExecutionsRolloutConfig()
Allows you to create a staged rollout of the job.
|
String |
getJobId()
A job identifier which must be unique for your AWS account.
|
PresignedUrlConfig |
getPresignedUrlConfig()
Configuration information for pre-signed S3 URLs.
|
List<Tag> |
getTags()
Metadata which can be used to manage the job.
|
List<String> |
getTargets()
A list of things and thing groups to which the job should be sent.
|
String |
getTargetSelection()
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified
as targets have completed the job (SNAPSHOT).
|
TimeoutConfig |
getTimeoutConfig()
Specifies the amount of time each device has to finish its execution of the job.
|
int |
hashCode() |
void |
setAbortConfig(AbortConfig abortConfig)
Allows you to create criteria to abort a job.
|
void |
setDescription(String description)
A short text description of the job.
|
void |
setDocument(String document)
The job document.
|
void |
setDocumentSource(String documentSource)
An S3 link to the job document.
|
void |
setJobExecutionsRolloutConfig(JobExecutionsRolloutConfig jobExecutionsRolloutConfig)
Allows you to create a staged rollout of the job.
|
void |
setJobId(String jobId)
A job identifier which must be unique for your AWS account.
|
void |
setPresignedUrlConfig(PresignedUrlConfig presignedUrlConfig)
Configuration information for pre-signed S3 URLs.
|
void |
setTags(Collection<Tag> tags)
Metadata which can be used to manage the job.
|
void |
setTargets(Collection<String> targets)
A list of things and thing groups to which the job should be sent.
|
void |
setTargetSelection(String targetSelection)
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified
as targets have completed the job (SNAPSHOT).
|
void |
setTimeoutConfig(TimeoutConfig timeoutConfig)
Specifies the amount of time each device has to finish its execution of the job.
|
String |
toString()
Returns a string representation of this object.
|
CreateJobRequest |
withAbortConfig(AbortConfig abortConfig)
Allows you to create criteria to abort a job.
|
CreateJobRequest |
withDescription(String description)
A short text description of the job.
|
CreateJobRequest |
withDocument(String document)
The job document.
|
CreateJobRequest |
withDocumentSource(String documentSource)
An S3 link to the job document.
|
CreateJobRequest |
withJobExecutionsRolloutConfig(JobExecutionsRolloutConfig jobExecutionsRolloutConfig)
Allows you to create a staged rollout of the job.
|
CreateJobRequest |
withJobId(String jobId)
A job identifier which must be unique for your AWS account.
|
CreateJobRequest |
withPresignedUrlConfig(PresignedUrlConfig presignedUrlConfig)
Configuration information for pre-signed S3 URLs.
|
CreateJobRequest |
withTags(Collection<Tag> tags)
Metadata which can be used to manage the job.
|
CreateJobRequest |
withTags(Tag... tags)
Metadata which can be used to manage the job.
|
CreateJobRequest |
withTargets(Collection<String> targets)
A list of things and thing groups to which the job should be sent.
|
CreateJobRequest |
withTargets(String... targets)
A list of things and thing groups to which the job should be sent.
|
CreateJobRequest |
withTargetSelection(String targetSelection)
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified
as targets have completed the job (SNAPSHOT).
|
CreateJobRequest |
withTargetSelection(TargetSelection targetSelection)
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified
as targets have completed the job (SNAPSHOT).
|
CreateJobRequest |
withTimeoutConfig(TimeoutConfig timeoutConfig)
Specifies the amount of time each device has to finish its execution of the job.
|
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 setJobId(String jobId)
A job identifier which must be unique for your AWS account. We recommend using a UUID. Alpha-numeric characters, "-" and "_" are valid for use here.
jobId
- A job identifier which must be unique for your AWS account. We recommend using a UUID. Alpha-numeric
characters, "-" and "_" are valid for use here.public String getJobId()
A job identifier which must be unique for your AWS account. We recommend using a UUID. Alpha-numeric characters, "-" and "_" are valid for use here.
public CreateJobRequest withJobId(String jobId)
A job identifier which must be unique for your AWS account. We recommend using a UUID. Alpha-numeric characters, "-" and "_" are valid for use here.
jobId
- A job identifier which must be unique for your AWS account. We recommend using a UUID. Alpha-numeric
characters, "-" and "_" are valid for use here.public List<String> getTargets()
A list of things and thing groups to which the job should be sent.
public void setTargets(Collection<String> targets)
A list of things and thing groups to which the job should be sent.
targets
- A list of things and thing groups to which the job should be sent.public CreateJobRequest withTargets(String... targets)
A list of things and thing groups to which the job should be sent.
NOTE: This method appends the values to the existing list (if any). Use
setTargets(java.util.Collection)
or withTargets(java.util.Collection)
if you want to override
the existing values.
targets
- A list of things and thing groups to which the job should be sent.public CreateJobRequest withTargets(Collection<String> targets)
A list of things and thing groups to which the job should be sent.
targets
- A list of things and thing groups to which the job should be sent.public void setDocumentSource(String documentSource)
An S3 link to the job document.
documentSource
- An S3 link to the job document.public String getDocumentSource()
An S3 link to the job document.
public CreateJobRequest withDocumentSource(String documentSource)
An S3 link to the job document.
documentSource
- An S3 link to the job document.public void setDocument(String document)
The job document.
If the job document resides in an S3 bucket, you must use a placeholder link when specifying the document.
The placeholder link is of the following form:
${aws:iot:s3-presigned-url:https://s3.amazonaws.com/bucket/key}
where bucket is your bucket name and key is the object in the bucket to which you are linking.
document
- The job document. If the job document resides in an S3 bucket, you must use a placeholder link when specifying the document.
The placeholder link is of the following form:
${aws:iot:s3-presigned-url:https://s3.amazonaws.com/bucket/key}
where bucket is your bucket name and key is the object in the bucket to which you are linking.
public String getDocument()
The job document.
If the job document resides in an S3 bucket, you must use a placeholder link when specifying the document.
The placeholder link is of the following form:
${aws:iot:s3-presigned-url:https://s3.amazonaws.com/bucket/key}
where bucket is your bucket name and key is the object in the bucket to which you are linking.
If the job document resides in an S3 bucket, you must use a placeholder link when specifying the document.
The placeholder link is of the following form:
${aws:iot:s3-presigned-url:https://s3.amazonaws.com/bucket/key}
where bucket is your bucket name and key is the object in the bucket to which you are linking.
public CreateJobRequest withDocument(String document)
The job document.
If the job document resides in an S3 bucket, you must use a placeholder link when specifying the document.
The placeholder link is of the following form:
${aws:iot:s3-presigned-url:https://s3.amazonaws.com/bucket/key}
where bucket is your bucket name and key is the object in the bucket to which you are linking.
document
- The job document. If the job document resides in an S3 bucket, you must use a placeholder link when specifying the document.
The placeholder link is of the following form:
${aws:iot:s3-presigned-url:https://s3.amazonaws.com/bucket/key}
where bucket is your bucket name and key is the object in the bucket to which you are linking.
public void setDescription(String description)
A short text description of the job.
description
- A short text description of the job.public String getDescription()
A short text description of the job.
public CreateJobRequest withDescription(String description)
A short text description of the job.
description
- A short text description of the job.public void setPresignedUrlConfig(PresignedUrlConfig presignedUrlConfig)
Configuration information for pre-signed S3 URLs.
presignedUrlConfig
- Configuration information for pre-signed S3 URLs.public PresignedUrlConfig getPresignedUrlConfig()
Configuration information for pre-signed S3 URLs.
public CreateJobRequest withPresignedUrlConfig(PresignedUrlConfig presignedUrlConfig)
Configuration information for pre-signed S3 URLs.
presignedUrlConfig
- Configuration information for pre-signed S3 URLs.public void setTargetSelection(String targetSelection)
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
targetSelection
- Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things
specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing
when a change is detected in a target. For example, a job will run on a thing when the thing is added to a
target group, even after the job was completed by all things originally in the group.TargetSelection
public String getTargetSelection()
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
TargetSelection
public CreateJobRequest withTargetSelection(String targetSelection)
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
targetSelection
- Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things
specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing
when a change is detected in a target. For example, a job will run on a thing when the thing is added to a
target group, even after the job was completed by all things originally in the group.TargetSelection
public CreateJobRequest withTargetSelection(TargetSelection targetSelection)
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
targetSelection
- Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things
specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing
when a change is detected in a target. For example, a job will run on a thing when the thing is added to a
target group, even after the job was completed by all things originally in the group.TargetSelection
public void setJobExecutionsRolloutConfig(JobExecutionsRolloutConfig jobExecutionsRolloutConfig)
Allows you to create a staged rollout of the job.
jobExecutionsRolloutConfig
- Allows you to create a staged rollout of the job.public JobExecutionsRolloutConfig getJobExecutionsRolloutConfig()
Allows you to create a staged rollout of the job.
public CreateJobRequest withJobExecutionsRolloutConfig(JobExecutionsRolloutConfig jobExecutionsRolloutConfig)
Allows you to create a staged rollout of the job.
jobExecutionsRolloutConfig
- Allows you to create a staged rollout of the job.public void setAbortConfig(AbortConfig abortConfig)
Allows you to create criteria to abort a job.
abortConfig
- Allows you to create criteria to abort a job.public AbortConfig getAbortConfig()
Allows you to create criteria to abort a job.
public CreateJobRequest withAbortConfig(AbortConfig abortConfig)
Allows you to create criteria to abort a job.
abortConfig
- Allows you to create criteria to abort a job.public void setTimeoutConfig(TimeoutConfig timeoutConfig)
Specifies the amount of time each device has to finish its execution of the job. The timer is started when the
job execution status is set to IN_PROGRESS
. If the job execution status is not set to another
terminal state before the time expires, it will be automatically set to TIMED_OUT
.
timeoutConfig
- Specifies the amount of time each device has to finish its execution of the job. The timer is started when
the job execution status is set to IN_PROGRESS
. If the job execution status is not set to
another terminal state before the time expires, it will be automatically set to TIMED_OUT
.public TimeoutConfig getTimeoutConfig()
Specifies the amount of time each device has to finish its execution of the job. The timer is started when the
job execution status is set to IN_PROGRESS
. If the job execution status is not set to another
terminal state before the time expires, it will be automatically set to TIMED_OUT
.
IN_PROGRESS
. If the job execution status is not set
to another terminal state before the time expires, it will be automatically set to TIMED_OUT
.public CreateJobRequest withTimeoutConfig(TimeoutConfig timeoutConfig)
Specifies the amount of time each device has to finish its execution of the job. The timer is started when the
job execution status is set to IN_PROGRESS
. If the job execution status is not set to another
terminal state before the time expires, it will be automatically set to TIMED_OUT
.
timeoutConfig
- Specifies the amount of time each device has to finish its execution of the job. The timer is started when
the job execution status is set to IN_PROGRESS
. If the job execution status is not set to
another terminal state before the time expires, it will be automatically set to TIMED_OUT
.public List<Tag> getTags()
Metadata which can be used to manage the job.
public void setTags(Collection<Tag> tags)
Metadata which can be used to manage the job.
tags
- Metadata which can be used to manage the job.public CreateJobRequest withTags(Tag... tags)
Metadata which can be used to manage the job.
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
- Metadata which can be used to manage the job.public CreateJobRequest withTags(Collection<Tag> tags)
Metadata which can be used to manage the job.
tags
- Metadata which can be used to manage the job.public String toString()
toString
in class Object
Object.toString()
public CreateJobRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.