Class PipelineDeclaration
- All Implemented Interfaces:
Serializable
,Cloneable
Represents the structure of actions and stages to be performed in the pipeline.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getName()
The name of the action to be performed.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.The stage in which to perform the action.The version number of the pipeline.int
hashCode()
void
setArtifactStore
(ArtifactStore artifactStore) void
The name of the action to be performed.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.void
setStages
(Collection<StageDeclaration> stages) The stage in which to perform the action.void
setVersion
(Integer version) The version number of the pipeline.toString()
Returns a string representation of this object; useful for testing and debugging.withArtifactStore
(ArtifactStore artifactStore) The name of the action to be performed.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.withStages
(StageDeclaration... stages) The stage in which to perform the action.withStages
(Collection<StageDeclaration> stages) The stage in which to perform the action.withVersion
(Integer version) The version number of the pipeline.
-
Constructor Details
-
PipelineDeclaration
public PipelineDeclaration()
-
-
Method Details
-
setName
The name of the action to be performed.
- Parameters:
name
- The name of the action to be performed.
-
getName
The name of the action to be performed.
- Returns:
- The name of the action to be performed.
-
withName
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
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
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
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
- Parameters:
artifactStore
-
-
getArtifactStore
- Returns:
-
withArtifactStore
- Parameters:
artifactStore
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getStages
The stage in which to perform the action.
- Returns:
- The stage in which to perform the action.
-
setStages
The stage in which to perform the action.
- Parameters:
stages
- The stage in which to perform the action.
-
withStages
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)
orwithStages(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
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-