public class CreateJobRequest extends AmazonWebServiceRequest implements Serializable
Creates a job.
| Constructor and Description |
|---|
CreateJobRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateJobRequest |
adddocumentParametersEntry(String key,
String value)
Parameters for the job document.
|
CreateJobRequest |
cleardocumentParametersEntries()
Removes all the entries added into documentParameters.
|
boolean |
equals(Object obj) |
String |
getDescription()
A short text description of the job.
|
String |
getDocument()
The job document.
|
Map<String,String> |
getDocumentParameters()
Parameters for 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 |
setDocumentParameters(Map<String,String> documentParameters)
Parameters for 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).
|
void |
setTargetSelection(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).
|
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 |
withDocumentParameters(Map<String,String> documentParameters)
Parameters for 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).
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic 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.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_-]+
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 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.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_-]+
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 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_-]+
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.
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.
Returns a reference to this object so that method calls can be chained together.
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.
Returns a reference to this object so that method calls can be chained together.
targets - A list of things and thing groups to which the job should be sent.
public String getDocumentSource()
An S3 link to the job document.
Constraints:
Length: 1 - 1350
An S3 link to the job document.
public void setDocumentSource(String documentSource)
An S3 link to the job document.
Constraints:
Length: 1 - 1350
documentSource - An S3 link to the job document.
public CreateJobRequest withDocumentSource(String documentSource)
An S3 link to the job document.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1350
documentSource - An S3 link to the job document.
public String getDocument()
The job document.
Constraints:
Length: - 32768
The job document.
public void setDocument(String document)
The job document.
Constraints:
Length: - 32768
document - The job document.
public CreateJobRequest withDocument(String document)
The job document.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 32768
document - The job document.
public String getDescription()
A short text description of the job.
Constraints:
Length: - 2028
Pattern: [^\p{C}]+
A short text description of the job.
public void setDescription(String description)
A short text description of the job.
Constraints:
Length: - 2028
Pattern: [^\p{C}]+
description - A short text description of the job.
public CreateJobRequest withDescription(String description)
A short text description of the job.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 2028
Pattern: [^\p{C}]+
description - A short text description of the job.
public PresignedUrlConfig getPresignedUrlConfig()
Configuration information for pre-signed S3 URLs.
Configuration information for pre-signed S3 URLs.
public void setPresignedUrlConfig(PresignedUrlConfig presignedUrlConfig)
Configuration information for pre-signed S3 URLs.
presignedUrlConfig - Configuration information for pre-signed S3 URLs.
public CreateJobRequest withPresignedUrlConfig(PresignedUrlConfig presignedUrlConfig)
Configuration information for pre-signed S3 URLs.
Returns a reference to this object so that method calls can be chained together.
presignedUrlConfig - Configuration information for pre-signed S3 URLs.
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.
Constraints:
Allowed Values: CONTINUOUS, SNAPSHOT
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.
TargetSelectionpublic 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.
Constraints:
Allowed Values: CONTINUOUS, SNAPSHOT
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.
TargetSelectionpublic 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CONTINUOUS, SNAPSHOT
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.
TargetSelectionpublic void setTargetSelection(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.
Constraints:
Allowed Values: CONTINUOUS, SNAPSHOT
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.
TargetSelectionpublic 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CONTINUOUS, SNAPSHOT
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.
TargetSelectionpublic JobExecutionsRolloutConfig getJobExecutionsRolloutConfig()
Allows you to create a staged rollout of the job.
Allows you to create a staged rollout of the job.
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 CreateJobRequest withJobExecutionsRolloutConfig(JobExecutionsRolloutConfig jobExecutionsRolloutConfig)
Allows you to create a staged rollout of the job.
Returns a reference to this object so that method calls can be chained together.
jobExecutionsRolloutConfig - Allows you to create a staged rollout of the job.
public Map<String,String> getDocumentParameters()
Parameters for the job document.
Parameters for the job document.
public void setDocumentParameters(Map<String,String> documentParameters)
Parameters for the job document.
documentParameters - Parameters for the job document.
public CreateJobRequest withDocumentParameters(Map<String,String> documentParameters)
Parameters for the job document.
Returns a reference to this object so that method calls can be chained together.
documentParameters - Parameters for the job document.
public CreateJobRequest adddocumentParametersEntry(String key, String value)
Parameters for the job document.
The method adds a new key-value pair into documentParameters parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into documentParameters.value - The corresponding value of the entry to be added into
documentParameters.public CreateJobRequest cleardocumentParametersEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.