Class PipelineDeclaration

java.lang.Object
com.amazonaws.services.codepipeline.model.PipelineDeclaration
All Implemented Interfaces:
Serializable, Cloneable

public class PipelineDeclaration extends Object implements Serializable, Cloneable

Represents the structure of actions and stages to be performed in the pipeline.

See Also:
  • Constructor Details

    • PipelineDeclaration

      public PipelineDeclaration()
  • Method Details

    • setName

      public void setName(String name)

      The name of the action to be performed.

      Parameters:
      name - The name of the action to be performed.
    • getName

      public String getName()

      The name of the action to be performed.

      Returns:
      The name of the action to be performed.
    • withName

      public PipelineDeclaration withName(String name)

      The name of the action to be performed.

      Parameters:
      name - The name of the action to be performed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setRoleArn

      public void setRoleArn(String roleArn)

      The Amazon Resource Name (ARN) for AWS CodePipeline to use to either perform actions with no actionRoleArn, or to use to assume roles for actions with an actionRoleArn.

      Parameters:
      roleArn - The Amazon Resource Name (ARN) for AWS CodePipeline to use to either perform actions with no actionRoleArn, or to use to assume roles for actions with an actionRoleArn.
    • getRoleArn

      public String getRoleArn()

      The Amazon Resource Name (ARN) for AWS CodePipeline to use to either perform actions with no actionRoleArn, or to use to assume roles for actions with an actionRoleArn.

      Returns:
      The Amazon Resource Name (ARN) for AWS CodePipeline to use to either perform actions with no actionRoleArn, or to use to assume roles for actions with an actionRoleArn.
    • withRoleArn

      public PipelineDeclaration withRoleArn(String roleArn)

      The Amazon Resource Name (ARN) for AWS CodePipeline to use to either perform actions with no actionRoleArn, or to use to assume roles for actions with an actionRoleArn.

      Parameters:
      roleArn - The Amazon Resource Name (ARN) for AWS CodePipeline to use to either perform actions with no actionRoleArn, or to use to assume roles for actions with an actionRoleArn.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setArtifactStore

      public void setArtifactStore(ArtifactStore artifactStore)
      Parameters:
      artifactStore -
    • getArtifactStore

      public ArtifactStore getArtifactStore()
      Returns:
    • withArtifactStore

      public PipelineDeclaration withArtifactStore(ArtifactStore artifactStore)
      Parameters:
      artifactStore -
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getStages

      public List<StageDeclaration> getStages()

      The stage in which to perform the action.

      Returns:
      The stage in which to perform the action.
    • setStages

      public void setStages(Collection<StageDeclaration> stages)

      The stage in which to perform the action.

      Parameters:
      stages - The stage in which to perform the action.
    • withStages

      public PipelineDeclaration withStages(StageDeclaration... stages)

      The stage in which to perform the action.

      NOTE: This method appends the values to the existing list (if any). Use setStages(java.util.Collection) or withStages(java.util.Collection) if you want to override the existing values.

      Parameters:
      stages - The stage in which to perform the action.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withStages

      public PipelineDeclaration withStages(Collection<StageDeclaration> stages)

      The stage in which to perform the action.

      Parameters:
      stages - The stage in which to perform the action.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setVersion

      public void setVersion(Integer version)

      The version number of the pipeline. A new pipeline always has a version number of 1. This number is automatically incremented when a pipeline is updated.

      Parameters:
      version - The version number of the pipeline. A new pipeline always has a version number of 1. This number is automatically incremented when a pipeline is updated.
    • getVersion

      public Integer getVersion()

      The version number of the pipeline. A new pipeline always has a version number of 1. This number is automatically incremented when a pipeline is updated.

      Returns:
      The version number of the pipeline. A new pipeline always has a version number of 1. This number is automatically incremented when a pipeline is updated.
    • withVersion

      public PipelineDeclaration withVersion(Integer version)

      The version number of the pipeline. A new pipeline always has a version number of 1. This number is automatically incremented when a pipeline is updated.

      Parameters:
      version - The version number of the pipeline. A new pipeline always has a version number of 1. This number is automatically incremented when a pipeline is updated.
      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 PipelineDeclaration clone()
      Overrides:
      clone in class Object