@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StageDeclaration extends Object implements Serializable, Cloneable, StructuredPojo
Represents information about a stage and its definition.
Constructor and Description |
---|
StageDeclaration() |
Modifier and Type | Method and Description |
---|---|
StageDeclaration |
clone() |
boolean |
equals(Object obj) |
List<ActionDeclaration> |
getActions()
The actions included in a stage.
|
BeforeEntryConditions |
getBeforeEntry()
The method to use when a stage allows entry.
|
List<BlockerDeclaration> |
getBlockers()
Reserved for future use.
|
String |
getName()
The name of the stage.
|
FailureConditions |
getOnFailure()
The method to use when a stage has not completed successfully.
|
SuccessConditions |
getOnSuccess()
The method to use when a stage has succeeded.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActions(Collection<ActionDeclaration> actions)
The actions included in a stage.
|
void |
setBeforeEntry(BeforeEntryConditions beforeEntry)
The method to use when a stage allows entry.
|
void |
setBlockers(Collection<BlockerDeclaration> blockers)
Reserved for future use.
|
void |
setName(String name)
The name of the stage.
|
void |
setOnFailure(FailureConditions onFailure)
The method to use when a stage has not completed successfully.
|
void |
setOnSuccess(SuccessConditions onSuccess)
The method to use when a stage has succeeded.
|
String |
toString()
Returns a string representation of this object.
|
StageDeclaration |
withActions(ActionDeclaration... actions)
The actions included in a stage.
|
StageDeclaration |
withActions(Collection<ActionDeclaration> actions)
The actions included in a stage.
|
StageDeclaration |
withBeforeEntry(BeforeEntryConditions beforeEntry)
The method to use when a stage allows entry.
|
StageDeclaration |
withBlockers(BlockerDeclaration... blockers)
Reserved for future use.
|
StageDeclaration |
withBlockers(Collection<BlockerDeclaration> blockers)
Reserved for future use.
|
StageDeclaration |
withName(String name)
The name of the stage.
|
StageDeclaration |
withOnFailure(FailureConditions onFailure)
The method to use when a stage has not completed successfully.
|
StageDeclaration |
withOnSuccess(SuccessConditions onSuccess)
The method to use when a stage has succeeded.
|
public void setName(String name)
The name of the stage.
name
- The name of the stage.public String getName()
The name of the stage.
public StageDeclaration withName(String name)
The name of the stage.
name
- The name of the stage.public List<BlockerDeclaration> getBlockers()
Reserved for future use.
public void setBlockers(Collection<BlockerDeclaration> blockers)
Reserved for future use.
blockers
- Reserved for future use.public StageDeclaration withBlockers(BlockerDeclaration... blockers)
Reserved for future use.
NOTE: This method appends the values to the existing list (if any). Use
setBlockers(java.util.Collection)
or withBlockers(java.util.Collection)
if you want to override
the existing values.
blockers
- Reserved for future use.public StageDeclaration withBlockers(Collection<BlockerDeclaration> blockers)
Reserved for future use.
blockers
- Reserved for future use.public List<ActionDeclaration> getActions()
The actions included in a stage.
public void setActions(Collection<ActionDeclaration> actions)
The actions included in a stage.
actions
- The actions included in a stage.public StageDeclaration withActions(ActionDeclaration... actions)
The actions included in a stage.
NOTE: This method appends the values to the existing list (if any). Use
setActions(java.util.Collection)
or withActions(java.util.Collection)
if you want to override
the existing values.
actions
- The actions included in a stage.public StageDeclaration withActions(Collection<ActionDeclaration> actions)
The actions included in a stage.
actions
- The actions included in a stage.public void setOnFailure(FailureConditions onFailure)
The method to use when a stage has not completed successfully. For example, configuring this field for rollback will roll back a failed stage automatically to the last successful pipeline execution in the stage.
onFailure
- The method to use when a stage has not completed successfully. For example, configuring this field for
rollback will roll back a failed stage automatically to the last successful pipeline execution in the
stage.public FailureConditions getOnFailure()
The method to use when a stage has not completed successfully. For example, configuring this field for rollback will roll back a failed stage automatically to the last successful pipeline execution in the stage.
public StageDeclaration withOnFailure(FailureConditions onFailure)
The method to use when a stage has not completed successfully. For example, configuring this field for rollback will roll back a failed stage automatically to the last successful pipeline execution in the stage.
onFailure
- The method to use when a stage has not completed successfully. For example, configuring this field for
rollback will roll back a failed stage automatically to the last successful pipeline execution in the
stage.public void setOnSuccess(SuccessConditions onSuccess)
The method to use when a stage has succeeded. For example, configuring this field for conditions will allow the stage to succeed when the conditions are met.
onSuccess
- The method to use when a stage has succeeded. For example, configuring this field for conditions will
allow the stage to succeed when the conditions are met.public SuccessConditions getOnSuccess()
The method to use when a stage has succeeded. For example, configuring this field for conditions will allow the stage to succeed when the conditions are met.
public StageDeclaration withOnSuccess(SuccessConditions onSuccess)
The method to use when a stage has succeeded. For example, configuring this field for conditions will allow the stage to succeed when the conditions are met.
onSuccess
- The method to use when a stage has succeeded. For example, configuring this field for conditions will
allow the stage to succeed when the conditions are met.public void setBeforeEntry(BeforeEntryConditions beforeEntry)
The method to use when a stage allows entry. For example, configuring this field for conditions will allow entry to the stage when the conditions are met.
beforeEntry
- The method to use when a stage allows entry. For example, configuring this field for conditions will allow
entry to the stage when the conditions are met.public BeforeEntryConditions getBeforeEntry()
The method to use when a stage allows entry. For example, configuring this field for conditions will allow entry to the stage when the conditions are met.
public StageDeclaration withBeforeEntry(BeforeEntryConditions beforeEntry)
The method to use when a stage allows entry. For example, configuring this field for conditions will allow entry to the stage when the conditions are met.
beforeEntry
- The method to use when a stage allows entry. For example, configuring this field for conditions will allow
entry to the stage when the conditions are met.public String toString()
toString
in class Object
Object.toString()
public StageDeclaration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.