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 Jobclone()booleanequals(Object obj)StringgetAccountId()The ID of the AWS account to use when performing the job.JobDatagetData()Additional data about a job.StringgetId()The unique system-generated ID of the job.StringgetNonce()A system-generated random number that AWS CodePipeline uses to ensure that the job is being worked on by only one job worker.inthashCode()voidsetAccountId(String accountId)The ID of the AWS account to use when performing the job.voidsetData(JobData data)Additional data about a job.voidsetId(String id)The unique system-generated ID of the job.voidsetNonce(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.StringtoString()Returns a string representation of this object; useful for testing and debugging.JobwithAccountId(String accountId)The ID of the AWS account to use when performing the job.JobwithData(JobData data)Additional data about a job.JobwithId(String id)The unique system-generated ID of the job.JobwithNonce(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-