Class ActionDeclaration
- java.lang.Object
-
- com.amazonaws.services.codepipeline.model.ActionDeclaration
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ActionDeclaration extends Object implements Serializable, Cloneable
Represents information about an action declaration.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActionDeclaration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionDeclaration
addConfigurationEntry(String key, String value)
ActionDeclaration
clearConfigurationEntries()
Removes all the entries added into Configuration.ActionDeclaration
clone()
boolean
equals(Object obj)
ActionTypeId
getActionTypeId()
The configuration information for the action type.Map<String,String>
getConfiguration()
The action declaration's configuration.List<InputArtifact>
getInputArtifacts()
The name or ID of the artifact consumed by the action, such as a test or build artifact.String
getName()
The action declaration's name.List<OutputArtifact>
getOutputArtifacts()
The name or ID of the result of the action declaration, such as a test or build artifact.String
getRoleArn()
The ARN of the IAM service role that will perform the declared action.Integer
getRunOrder()
The order in which actions are run.int
hashCode()
void
setActionTypeId(ActionTypeId actionTypeId)
The configuration information for the action type.void
setConfiguration(Map<String,String> configuration)
The action declaration's configuration.void
setInputArtifacts(Collection<InputArtifact> inputArtifacts)
The name or ID of the artifact consumed by the action, such as a test or build artifact.void
setName(String name)
The action declaration's name.void
setOutputArtifacts(Collection<OutputArtifact> outputArtifacts)
The name or ID of the result of the action declaration, such as a test or build artifact.void
setRoleArn(String roleArn)
The ARN of the IAM service role that will perform the declared action.void
setRunOrder(Integer runOrder)
The order in which actions are run.String
toString()
Returns a string representation of this object; useful for testing and debugging.ActionDeclaration
withActionTypeId(ActionTypeId actionTypeId)
The configuration information for the action type.ActionDeclaration
withConfiguration(Map<String,String> configuration)
The action declaration's configuration.ActionDeclaration
withInputArtifacts(InputArtifact... inputArtifacts)
The name or ID of the artifact consumed by the action, such as a test or build artifact.ActionDeclaration
withInputArtifacts(Collection<InputArtifact> inputArtifacts)
The name or ID of the artifact consumed by the action, such as a test or build artifact.ActionDeclaration
withName(String name)
The action declaration's name.ActionDeclaration
withOutputArtifacts(OutputArtifact... outputArtifacts)
The name or ID of the result of the action declaration, such as a test or build artifact.ActionDeclaration
withOutputArtifacts(Collection<OutputArtifact> outputArtifacts)
The name or ID of the result of the action declaration, such as a test or build artifact.ActionDeclaration
withRoleArn(String roleArn)
The ARN of the IAM service role that will perform the declared action.ActionDeclaration
withRunOrder(Integer runOrder)
The order in which actions are run.
-
-
-
Method Detail
-
setName
public void setName(String name)
The action declaration's name.
- Parameters:
name
- The action declaration's name.
-
getName
public String getName()
The action declaration's name.
- Returns:
- The action declaration's name.
-
withName
public ActionDeclaration withName(String name)
The action declaration's name.
- Parameters:
name
- The action declaration's name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setActionTypeId
public void setActionTypeId(ActionTypeId actionTypeId)
The configuration information for the action type.
- Parameters:
actionTypeId
- The configuration information for the action type.
-
getActionTypeId
public ActionTypeId getActionTypeId()
The configuration information for the action type.
- Returns:
- The configuration information for the action type.
-
withActionTypeId
public ActionDeclaration withActionTypeId(ActionTypeId actionTypeId)
The configuration information for the action type.
- Parameters:
actionTypeId
- The configuration information for the action type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRunOrder
public void setRunOrder(Integer runOrder)
The order in which actions are run.
- Parameters:
runOrder
- The order in which actions are run.
-
getRunOrder
public Integer getRunOrder()
The order in which actions are run.
- Returns:
- The order in which actions are run.
-
withRunOrder
public ActionDeclaration withRunOrder(Integer runOrder)
The order in which actions are run.
- Parameters:
runOrder
- The order in which actions are run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getConfiguration
public Map<String,String> getConfiguration()
The action declaration's configuration.
- Returns:
- The action declaration's configuration.
-
setConfiguration
public void setConfiguration(Map<String,String> configuration)
The action declaration's configuration.
- Parameters:
configuration
- The action declaration's configuration.
-
withConfiguration
public ActionDeclaration withConfiguration(Map<String,String> configuration)
The action declaration's configuration.
- Parameters:
configuration
- The action declaration's configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addConfigurationEntry
public ActionDeclaration addConfigurationEntry(String key, String value)
-
clearConfigurationEntries
public ActionDeclaration clearConfigurationEntries()
Removes all the entries added into Configuration. <p> Returns a reference to this object so that method calls can be chained together.
-
getOutputArtifacts
public List<OutputArtifact> getOutputArtifacts()
The name or ID of the result of the action declaration, such as a test or build artifact.
- Returns:
- The name or ID of the result of the action declaration, such as a test or build artifact.
-
setOutputArtifacts
public void setOutputArtifacts(Collection<OutputArtifact> outputArtifacts)
The name or ID of the result of the action declaration, such as a test or build artifact.
- Parameters:
outputArtifacts
- The name or ID of the result of the action declaration, such as a test or build artifact.
-
withOutputArtifacts
public ActionDeclaration withOutputArtifacts(OutputArtifact... outputArtifacts)
The name or ID of the result of the action declaration, such as a test or build artifact.
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 name or ID of the result of the action declaration, such as a test or build artifact.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withOutputArtifacts
public ActionDeclaration withOutputArtifacts(Collection<OutputArtifact> outputArtifacts)
The name or ID of the result of the action declaration, such as a test or build artifact.
- Parameters:
outputArtifacts
- The name or ID of the result of the action declaration, such as a test or build artifact.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getInputArtifacts
public List<InputArtifact> getInputArtifacts()
The name or ID of the artifact consumed by the action, such as a test or build artifact.
- Returns:
- The name or ID of the artifact consumed by the action, such as a test or build artifact.
-
setInputArtifacts
public void setInputArtifacts(Collection<InputArtifact> inputArtifacts)
The name or ID of the artifact consumed by the action, such as a test or build artifact.
- Parameters:
inputArtifacts
- The name or ID of the artifact consumed by the action, such as a test or build artifact.
-
withInputArtifacts
public ActionDeclaration withInputArtifacts(InputArtifact... inputArtifacts)
The name or ID of the artifact consumed by the action, such as a test or build artifact.
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 name or ID of the artifact consumed by the action, such as a test or build artifact.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withInputArtifacts
public ActionDeclaration withInputArtifacts(Collection<InputArtifact> inputArtifacts)
The name or ID of the artifact consumed by the action, such as a test or build artifact.
- Parameters:
inputArtifacts
- The name or ID of the artifact consumed by the action, such as a test or build artifact.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRoleArn
public void setRoleArn(String roleArn)
The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.
- Parameters:
roleArn
- The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.
-
getRoleArn
public String getRoleArn()
The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.
- Returns:
- The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.
-
withRoleArn
public ActionDeclaration withRoleArn(String roleArn)
The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.
- Parameters:
roleArn
- The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.- 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()
-
clone
public ActionDeclaration clone()
-
-