@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) |
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<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).
|
int |
hashCode() |
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 |
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).
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
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 |
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).
|
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.
document
- The job document.public String getDocument()
The job document.
public CreateJobRequest withDocument(String document)
The job document.
document
- The job document.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 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.