Class JobData
- java.lang.Object
-
- com.amazonaws.services.codepipeline.model.JobData
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class JobData extends Object implements Serializable, Cloneable
Represents additional information about a job required for a job worker to complete the job.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JobData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobData
clone()
boolean
equals(Object obj)
ActionConfiguration
getActionConfiguration()
ActionTypeId
getActionTypeId()
AWSSessionCredentials
getArtifactCredentials()
String
getContinuationToken()
A system-generated token, such as a AWS CodeDeploy deployment ID, that a job requires in order to continue the job asynchronously.EncryptionKey
getEncryptionKey()
List<Artifact>
getInputArtifacts()
The artifact supplied to the job.List<Artifact>
getOutputArtifacts()
The output of the job.PipelineContext
getPipelineContext()
int
hashCode()
void
setActionConfiguration(ActionConfiguration actionConfiguration)
void
setActionTypeId(ActionTypeId actionTypeId)
void
setArtifactCredentials(AWSSessionCredentials artifactCredentials)
void
setContinuationToken(String continuationToken)
A system-generated token, such as a AWS CodeDeploy deployment ID, that a job requires in order to continue the job asynchronously.void
setEncryptionKey(EncryptionKey encryptionKey)
void
setInputArtifacts(Collection<Artifact> inputArtifacts)
The artifact supplied to the job.void
setOutputArtifacts(Collection<Artifact> outputArtifacts)
The output of the job.void
setPipelineContext(PipelineContext pipelineContext)
String
toString()
Returns a string representation of this object; useful for testing and debugging.JobData
withActionConfiguration(ActionConfiguration actionConfiguration)
JobData
withActionTypeId(ActionTypeId actionTypeId)
JobData
withArtifactCredentials(AWSSessionCredentials artifactCredentials)
JobData
withContinuationToken(String continuationToken)
A system-generated token, such as a AWS CodeDeploy deployment ID, that a job requires in order to continue the job asynchronously.JobData
withEncryptionKey(EncryptionKey encryptionKey)
JobData
withInputArtifacts(Artifact... inputArtifacts)
The artifact supplied to the job.JobData
withInputArtifacts(Collection<Artifact> inputArtifacts)
The artifact supplied to the job.JobData
withOutputArtifacts(Artifact... outputArtifacts)
The output of the job.JobData
withOutputArtifacts(Collection<Artifact> outputArtifacts)
The output of the job.JobData
withPipelineContext(PipelineContext pipelineContext)
-
-
-
Method Detail
-
setActionTypeId
public void setActionTypeId(ActionTypeId actionTypeId)
- Parameters:
actionTypeId
-
-
getActionTypeId
public ActionTypeId getActionTypeId()
- Returns:
-
withActionTypeId
public JobData withActionTypeId(ActionTypeId actionTypeId)
- Parameters:
actionTypeId
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setActionConfiguration
public void setActionConfiguration(ActionConfiguration actionConfiguration)
- Parameters:
actionConfiguration
-
-
getActionConfiguration
public ActionConfiguration getActionConfiguration()
- Returns:
-
withActionConfiguration
public JobData withActionConfiguration(ActionConfiguration actionConfiguration)
- Parameters:
actionConfiguration
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPipelineContext
public void setPipelineContext(PipelineContext pipelineContext)
- Parameters:
pipelineContext
-
-
getPipelineContext
public PipelineContext getPipelineContext()
- Returns:
-
withPipelineContext
public JobData withPipelineContext(PipelineContext pipelineContext)
- Parameters:
pipelineContext
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getInputArtifacts
public List<Artifact> getInputArtifacts()
The artifact supplied to the job.
- Returns:
- The artifact supplied to the job.
-
setInputArtifacts
public void setInputArtifacts(Collection<Artifact> inputArtifacts)
The artifact supplied to the job.
- Parameters:
inputArtifacts
- The artifact supplied to the job.
-
withInputArtifacts
public JobData withInputArtifacts(Artifact... inputArtifacts)
The artifact supplied to the job.
NOTE: This method appends the values to the existing list (if any). Use
setInputArtifacts(java.util.Collection)
orwithInputArtifacts(java.util.Collection)
if you want to override the existing values.- Parameters:
inputArtifacts
- The artifact supplied to the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withInputArtifacts
public JobData withInputArtifacts(Collection<Artifact> inputArtifacts)
The artifact supplied to the job.
- Parameters:
inputArtifacts
- The artifact supplied to the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getOutputArtifacts
public List<Artifact> getOutputArtifacts()
The output of the job.
- Returns:
- The output of the job.
-
setOutputArtifacts
public void setOutputArtifacts(Collection<Artifact> outputArtifacts)
The output of the job.
- Parameters:
outputArtifacts
- The output of the job.
-
withOutputArtifacts
public JobData withOutputArtifacts(Artifact... outputArtifacts)
The output of the job.
NOTE: This method appends the values to the existing list (if any). Use
setOutputArtifacts(java.util.Collection)
orwithOutputArtifacts(java.util.Collection)
if you want to override the existing values.- Parameters:
outputArtifacts
- The output of the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withOutputArtifacts
public JobData withOutputArtifacts(Collection<Artifact> outputArtifacts)
The output of the job.
- Parameters:
outputArtifacts
- The output of the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setArtifactCredentials
public void setArtifactCredentials(AWSSessionCredentials artifactCredentials)
- Parameters:
artifactCredentials
-
-
getArtifactCredentials
public AWSSessionCredentials getArtifactCredentials()
- Returns:
-
withArtifactCredentials
public JobData withArtifactCredentials(AWSSessionCredentials artifactCredentials)
- Parameters:
artifactCredentials
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setContinuationToken
public void setContinuationToken(String continuationToken)
A system-generated token, such as a AWS CodeDeploy deployment ID, that a job requires in order to continue the job asynchronously.
- Parameters:
continuationToken
- A system-generated token, such as a AWS CodeDeploy deployment ID, that a job requires in order to continue the job asynchronously.
-
getContinuationToken
public String getContinuationToken()
A system-generated token, such as a AWS CodeDeploy deployment ID, that a job requires in order to continue the job asynchronously.
- Returns:
- A system-generated token, such as a AWS CodeDeploy deployment ID, that a job requires in order to continue the job asynchronously.
-
withContinuationToken
public JobData withContinuationToken(String continuationToken)
A system-generated token, such as a AWS CodeDeploy deployment ID, that a job requires in order to continue the job asynchronously.
- Parameters:
continuationToken
- A system-generated token, such as a AWS CodeDeploy deployment ID, that a job requires in order to continue the job asynchronously.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEncryptionKey
public void setEncryptionKey(EncryptionKey encryptionKey)
- Parameters:
encryptionKey
-
-
getEncryptionKey
public EncryptionKey getEncryptionKey()
- Returns:
-
withEncryptionKey
public JobData withEncryptionKey(EncryptionKey encryptionKey)
- Parameters:
encryptionKey
-- 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()
-
-