public class Job
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents information about a job.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
accountId
The ID of the AWS account to use when performing the job.
|
private JobData |
data
Additional data about a job.
|
private java.lang.String |
id
The unique system-generated ID of the job.
|
private java.lang.String |
nonce
A system-generated random number that AWS CodePipeline uses to ensure
that the job is being worked on by only one job worker.
|
Constructor and Description |
---|
Job() |
Modifier and Type | Method and Description |
---|---|
Job |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccountId()
The ID of the AWS account to use when performing the job.
|
JobData |
getData()
Additional data about a job.
|
java.lang.String |
getId()
The unique system-generated ID of the job.
|
java.lang.String |
getNonce()
A system-generated random number that AWS CodePipeline uses to ensure
that the job is being worked on by only one job worker.
|
int |
hashCode() |
void |
setAccountId(java.lang.String accountId)
The ID of the AWS account to use when performing the job.
|
void |
setData(JobData data)
Additional data about a job.
|
void |
setId(java.lang.String id)
The unique system-generated ID of the job.
|
void |
setNonce(java.lang.String nonce)
A system-generated random number that AWS CodePipeline uses to ensure
that the job is being worked on by only one job worker.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Job |
withAccountId(java.lang.String accountId)
The ID of the AWS account to use when performing the job.
|
Job |
withData(JobData data)
Additional data about a job.
|
Job |
withId(java.lang.String id)
The unique system-generated ID of the job.
|
Job |
withNonce(java.lang.String nonce)
A system-generated random number that AWS CodePipeline uses to ensure
that the job is being worked on by only one job worker.
|
private java.lang.String id
The unique system-generated ID of the job.
private JobData data
Additional data about a job.
private java.lang.String nonce
A system-generated random number that AWS CodePipeline uses to ensure that the job is being worked on by only one job worker. This number must be returned in the response.
private java.lang.String accountId
The ID of the AWS account to use when performing the job.
public void setId(java.lang.String id)
The unique system-generated ID of the job.
id
- The unique system-generated ID of the job.public java.lang.String getId()
The unique system-generated ID of the job.
public Job withId(java.lang.String id)
The unique system-generated ID of the job.
id
- The unique system-generated ID of the job.public void setData(JobData data)
Additional data about a job.
data
- Additional data about a job.public JobData getData()
Additional data about a job.
public Job withData(JobData data)
Additional data about a job.
data
- Additional data about a job.public void setNonce(java.lang.String nonce)
A system-generated random number that AWS CodePipeline uses to ensure that the job is being worked on by only one job worker. This number must be returned in the response.
nonce
- A system-generated random number that AWS CodePipeline uses to
ensure that the job is being worked on by only one job worker.
This number must be returned in the response.public java.lang.String getNonce()
A system-generated random number that AWS CodePipeline uses to ensure that the job is being worked on by only one job worker. This number must be returned in the response.
public Job withNonce(java.lang.String nonce)
A system-generated random number that AWS CodePipeline uses to ensure that the job is being worked on by only one job worker. This number must be returned in the response.
nonce
- A system-generated random number that AWS CodePipeline uses to
ensure that the job is being worked on by only one job worker.
This number must be returned in the response.public void setAccountId(java.lang.String accountId)
The ID of the AWS account to use when performing the job.
accountId
- The ID of the AWS account to use when performing the job.public java.lang.String getAccountId()
The ID of the AWS account to use when performing the job.
public Job withAccountId(java.lang.String accountId)
The ID of the AWS account to use when performing the job.
accountId
- The ID of the AWS account to use when performing the job.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Job clone()
clone
in class java.lang.Object