public class ActionDeclaration
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents information about an action declaration.
Modifier and Type | Field and Description |
---|---|
private ActionTypeId |
actionTypeId
The configuration information for the action type.
|
private java.util.Map<java.lang.String,java.lang.String> |
configuration
The action declaration's configuration.
|
private java.util.List<InputArtifact> |
inputArtifacts
The name or ID of the artifact consumed by the action, such as a test or
build artifact.
|
private java.lang.String |
name
The action declaration's name.
|
private java.util.List<OutputArtifact> |
outputArtifacts
The name or ID of the result of the action declaration, such as a test or
build artifact.
|
private java.lang.String |
roleArn
The ARN of the IAM service role that will perform the declared action.
|
private java.lang.Integer |
runOrder
The order in which actions are run.
|
Constructor and Description |
---|
ActionDeclaration() |
Modifier and Type | Method and Description |
---|---|
ActionDeclaration |
addConfigurationEntry(java.lang.String key,
java.lang.String value) |
ActionDeclaration |
clearConfigurationEntries()
Removes all the entries added into Configuration.
|
ActionDeclaration |
clone() |
boolean |
equals(java.lang.Object obj) |
ActionTypeId |
getActionTypeId()
The configuration information for the action type.
|
java.util.Map<java.lang.String,java.lang.String> |
getConfiguration()
The action declaration's configuration.
|
java.util.List<InputArtifact> |
getInputArtifacts()
The name or ID of the artifact consumed by the action, such as a test or
build artifact.
|
java.lang.String |
getName()
The action declaration's name.
|
java.util.List<OutputArtifact> |
getOutputArtifacts()
The name or ID of the result of the action declaration, such as a test or
build artifact.
|
java.lang.String |
getRoleArn()
The ARN of the IAM service role that will perform the declared action.
|
java.lang.Integer |
getRunOrder()
The order in which actions are run.
|
int |
hashCode() |
void |
setActionTypeId(ActionTypeId actionTypeId)
The configuration information for the action type.
|
void |
setConfiguration(java.util.Map<java.lang.String,java.lang.String> configuration)
The action declaration's configuration.
|
void |
setInputArtifacts(java.util.Collection<InputArtifact> inputArtifacts)
The name or ID of the artifact consumed by the action, such as a test or
build artifact.
|
void |
setName(java.lang.String name)
The action declaration's name.
|
void |
setOutputArtifacts(java.util.Collection<OutputArtifact> outputArtifacts)
The name or ID of the result of the action declaration, such as a test or
build artifact.
|
void |
setRoleArn(java.lang.String roleArn)
The ARN of the IAM service role that will perform the declared action.
|
void |
setRunOrder(java.lang.Integer runOrder)
The order in which actions are run.
|
java.lang.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(java.util.Map<java.lang.String,java.lang.String> configuration)
The action declaration's configuration.
|
ActionDeclaration |
withInputArtifacts(java.util.Collection<InputArtifact> inputArtifacts)
The name or ID of the artifact consumed by the action, such as a test or
build artifact.
|
ActionDeclaration |
withInputArtifacts(InputArtifact... inputArtifacts)
The name or ID of the artifact consumed by the action, such as a test or
build artifact.
|
ActionDeclaration |
withName(java.lang.String name)
The action declaration's name.
|
ActionDeclaration |
withOutputArtifacts(java.util.Collection<OutputArtifact> outputArtifacts)
The name or ID of the result of the action declaration, such as a test or
build artifact.
|
ActionDeclaration |
withOutputArtifacts(OutputArtifact... outputArtifacts)
The name or ID of the result of the action declaration, such as a test or
build artifact.
|
ActionDeclaration |
withRoleArn(java.lang.String roleArn)
The ARN of the IAM service role that will perform the declared action.
|
ActionDeclaration |
withRunOrder(java.lang.Integer runOrder)
The order in which actions are run.
|
private java.lang.String name
The action declaration's name.
private ActionTypeId actionTypeId
The configuration information for the action type.
private java.lang.Integer runOrder
The order in which actions are run.
private java.util.Map<java.lang.String,java.lang.String> configuration
The action declaration's configuration.
private java.util.List<OutputArtifact> outputArtifacts
The name or ID of the result of the action declaration, such as a test or build artifact.
private java.util.List<InputArtifact> inputArtifacts
The name or ID of the artifact consumed by the action, such as a test or build artifact.
private java.lang.String roleArn
The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.
public void setName(java.lang.String name)
The action declaration's name.
name
- The action declaration's name.public java.lang.String getName()
The action declaration's name.
public ActionDeclaration withName(java.lang.String name)
The action declaration's name.
name
- The action declaration's name.public void setActionTypeId(ActionTypeId actionTypeId)
The configuration information for the action type.
actionTypeId
- The configuration information for the action type.public ActionTypeId getActionTypeId()
The configuration information for the action type.
public ActionDeclaration withActionTypeId(ActionTypeId actionTypeId)
The configuration information for the action type.
actionTypeId
- The configuration information for the action type.public void setRunOrder(java.lang.Integer runOrder)
The order in which actions are run.
runOrder
- The order in which actions are run.public java.lang.Integer getRunOrder()
The order in which actions are run.
public ActionDeclaration withRunOrder(java.lang.Integer runOrder)
The order in which actions are run.
runOrder
- The order in which actions are run.public java.util.Map<java.lang.String,java.lang.String> getConfiguration()
The action declaration's configuration.
public void setConfiguration(java.util.Map<java.lang.String,java.lang.String> configuration)
The action declaration's configuration.
configuration
- The action declaration's configuration.public ActionDeclaration withConfiguration(java.util.Map<java.lang.String,java.lang.String> configuration)
The action declaration's configuration.
configuration
- The action declaration's configuration.public ActionDeclaration addConfigurationEntry(java.lang.String key, java.lang.String value)
public ActionDeclaration clearConfigurationEntries()
public java.util.List<OutputArtifact> getOutputArtifacts()
The name or ID of the result of the action declaration, such as a test or build artifact.
public void setOutputArtifacts(java.util.Collection<OutputArtifact> outputArtifacts)
The name or ID of the result of the action declaration, such as a test or build artifact.
outputArtifacts
- The name or ID of the result of the action declaration, such as a
test or build artifact.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.
outputArtifacts
- The name or ID of the result of the action declaration, such as a
test or build artifact.public ActionDeclaration withOutputArtifacts(java.util.Collection<OutputArtifact> outputArtifacts)
The name or ID of the result of the action declaration, such as a test or build artifact.
outputArtifacts
- The name or ID of the result of the action declaration, such as a
test or build artifact.public java.util.List<InputArtifact> getInputArtifacts()
The name or ID of the artifact consumed by the action, such as a test or build artifact.
public void setInputArtifacts(java.util.Collection<InputArtifact> inputArtifacts)
The name or ID of the artifact consumed by the action, such as a test or build artifact.
inputArtifacts
- The name or ID of the artifact consumed by the action, such as a
test or build artifact.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.
inputArtifacts
- The name or ID of the artifact consumed by the action, such as a
test or build artifact.public ActionDeclaration withInputArtifacts(java.util.Collection<InputArtifact> inputArtifacts)
The name or ID of the artifact consumed by the action, such as a test or build artifact.
inputArtifacts
- The name or ID of the artifact consumed by the action, such as a
test or build artifact.public void setRoleArn(java.lang.String roleArn)
The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.
roleArn
- The ARN of the IAM service role that will perform the declared
action. This is assumed through the roleArn for the pipeline.public java.lang.String getRoleArn()
The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.
public ActionDeclaration withRoleArn(java.lang.String roleArn)
The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.
roleArn
- The ARN of the IAM service role that will perform the declared
action. This is assumed through the roleArn for the pipeline.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ActionDeclaration clone()
clone
in class java.lang.Object