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 ActionDeclarationaddConfigurationEntry(String key, String value)ActionDeclarationclearConfigurationEntries()Removes all the entries added into Configuration.ActionDeclarationclone()booleanequals(Object obj)ActionTypeIdgetActionTypeId()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.StringgetName()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.StringgetRoleArn()The ARN of the IAM service role that will perform the declared action.IntegergetRunOrder()The order in which actions are run.inthashCode()voidsetActionTypeId(ActionTypeId actionTypeId)The configuration information for the action type.voidsetConfiguration(Map<String,String> configuration)The action declaration's configuration.voidsetInputArtifacts(Collection<InputArtifact> inputArtifacts)The name or ID of the artifact consumed by the action, such as a test or build artifact.voidsetName(String name)The action declaration's name.voidsetOutputArtifacts(Collection<OutputArtifact> outputArtifacts)The name or ID of the result of the action declaration, such as a test or build artifact.voidsetRoleArn(String roleArn)The ARN of the IAM service role that will perform the declared action.voidsetRunOrder(Integer runOrder)The order in which actions are run.StringtoString()Returns a string representation of this object; useful for testing and debugging.ActionDeclarationwithActionTypeId(ActionTypeId actionTypeId)The configuration information for the action type.ActionDeclarationwithConfiguration(Map<String,String> configuration)The action declaration's configuration.ActionDeclarationwithInputArtifacts(InputArtifact... inputArtifacts)The name or ID of the artifact consumed by the action, such as a test or build artifact.ActionDeclarationwithInputArtifacts(Collection<InputArtifact> inputArtifacts)The name or ID of the artifact consumed by the action, such as a test or build artifact.ActionDeclarationwithName(String name)The action declaration's name.ActionDeclarationwithOutputArtifacts(OutputArtifact... outputArtifacts)The name or ID of the result of the action declaration, such as a test or build artifact.ActionDeclarationwithOutputArtifacts(Collection<OutputArtifact> outputArtifacts)The name or ID of the result of the action declaration, such as a test or build artifact.ActionDeclarationwithRoleArn(String roleArn)The ARN of the IAM service role that will perform the declared action.ActionDeclarationwithRunOrder(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ActionDeclaration clone()
-
-