Class Job
- java.lang.Object
-
- com.amazonaws.services.codepipeline.model.Job
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Job extends Object implements Serializable, Cloneable
Represents information about a job.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Job()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Job
clone()
boolean
equals(Object obj)
String
getAccountId()
The ID of the AWS account to use when performing the job.JobData
getData()
Additional data about a job.String
getId()
The unique system-generated ID of the job.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(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(String id)
The unique system-generated ID of the job.void
setNonce(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.String
toString()
Returns a string representation of this object; useful for testing and debugging.Job
withAccountId(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(String id)
The unique system-generated ID of the job.Job
withNonce(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.
-
-
-
Method Detail
-
setId
public void setId(String id)
The unique system-generated ID of the job.
- Parameters:
id
- The unique system-generated ID of the job.
-
getId
public String getId()
The unique system-generated ID of the job.
- Returns:
- The unique system-generated ID of the job.
-
withId
public Job withId(String id)
The unique system-generated ID of the job.
- Parameters:
id
- The unique system-generated ID of the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setData
public void setData(JobData data)
Additional data about a job.
- Parameters:
data
- Additional data about a job.
-
getData
public JobData getData()
Additional data about a job.
- Returns:
- Additional data about a job.
-
withData
public Job withData(JobData data)
Additional data about a job.
- Parameters:
data
- Additional data about a job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNonce
public void setNonce(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.
- Parameters:
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.
-
getNonce
public 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.
- Returns:
- 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.
-
withNonce
public Job withNonce(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAccountId
public void setAccountId(String accountId)
The ID of the AWS account to use when performing the job.
- Parameters:
accountId
- The ID of the AWS account to use when performing the job.
-
getAccountId
public String getAccountId()
The ID of the AWS account to use when performing the job.
- Returns:
- The ID of the AWS account to use when performing the job.
-
withAccountId
public Job withAccountId(String accountId)
The ID of the AWS account to use when performing the job.
- Parameters:
accountId
- The ID of the AWS account to use when performing the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-