public class AssociateTargetsWithJobRequest extends AmazonWebServiceRequest implements Serializable
Associates a group with a continuous job. The following criteria must be met:
The job must have been created with the targetSelection field
set to "CONTINUOUS".
The job status must currently be "IN_PROGRESS".
The total number of targets associated with a job must not exceed 100.
| Constructor and Description |
|---|
AssociateTargetsWithJobRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getComment()
An optional comment string describing why the job was associated with the
targets.
|
String |
getJobId()
The unique identifier you assigned to this job when it was created.
|
List<String> |
getTargets()
A list of thing group ARNs that define the targets of the job.
|
int |
hashCode() |
void |
setComment(String comment)
An optional comment string describing why the job was associated with the
targets.
|
void |
setJobId(String jobId)
The unique identifier you assigned to this job when it was created.
|
void |
setTargets(Collection<String> targets)
A list of thing group ARNs that define the targets of the job.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AssociateTargetsWithJobRequest |
withComment(String comment)
An optional comment string describing why the job was associated with the
targets.
|
AssociateTargetsWithJobRequest |
withJobId(String jobId)
The unique identifier you assigned to this job when it was created.
|
AssociateTargetsWithJobRequest |
withTargets(Collection<String> targets)
A list of thing group ARNs that define the targets of the job.
|
AssociateTargetsWithJobRequest |
withTargets(String... targets)
A list of thing group ARNs that define the targets of the job.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic List<String> getTargets()
A list of thing group ARNs that define the targets of the job.
A list of thing group ARNs that define the targets of the job.
public void setTargets(Collection<String> targets)
A list of thing group ARNs that define the targets of the job.
targets - A list of thing group ARNs that define the targets of the job.
public AssociateTargetsWithJobRequest withTargets(String... targets)
A list of thing group ARNs that define the targets of the job.
Returns a reference to this object so that method calls can be chained together.
targets - A list of thing group ARNs that define the targets of the job.
public AssociateTargetsWithJobRequest withTargets(Collection<String> targets)
A list of thing group ARNs that define the targets of the job.
Returns a reference to this object so that method calls can be chained together.
targets - A list of thing group ARNs that define the targets of the job.
public String getJobId()
The unique identifier you assigned to this job when it was created.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_-]+
The unique identifier you assigned to this job when it was created.
public void setJobId(String jobId)
The unique identifier you assigned to this job when it was created.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_-]+
jobId - The unique identifier you assigned to this job when it was created.
public AssociateTargetsWithJobRequest withJobId(String jobId)
The unique identifier you assigned to this job when it was created.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_-]+
jobId - The unique identifier you assigned to this job when it was created.
public String getComment()
An optional comment string describing why the job was associated with the targets.
Constraints:
Length: - 2028
Pattern: [^\p{C}]+
An optional comment string describing why the job was associated with the targets.
public void setComment(String comment)
An optional comment string describing why the job was associated with the targets.
Constraints:
Length: - 2028
Pattern: [^\p{C}]+
comment - An optional comment string describing why the job was associated with the targets.
public AssociateTargetsWithJobRequest withComment(String comment)
An optional comment string describing why the job was associated with the targets.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 2028
Pattern: [^\p{C}]+
comment - An optional comment string describing why the job was associated with the targets.
public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.