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:
  • Constructor Details

    • ActionDeclaration

      public ActionDeclaration()
  • Method Details

    • 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) or withOutputArtifacts(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) or withInputArtifacts(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ActionDeclaration clone()
      Overrides:
      clone in class Object