@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Stage extends Object implements Serializable, Cloneable, StructuredPojo
A set amount of time that an escalation plan or engagement plan engages the specified contacts or contact methods.
Constructor and Description |
---|
Stage() |
Modifier and Type | Method and Description |
---|---|
Stage |
clone() |
boolean |
equals(Object obj) |
Integer |
getDurationInMinutes()
The time to wait until beginning the next stage.
|
List<Target> |
getTargets()
The contacts or contact methods that the escalation plan or engagement plan is engaging.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDurationInMinutes(Integer durationInMinutes)
The time to wait until beginning the next stage.
|
void |
setTargets(Collection<Target> targets)
The contacts or contact methods that the escalation plan or engagement plan is engaging.
|
String |
toString()
Returns a string representation of this object.
|
Stage |
withDurationInMinutes(Integer durationInMinutes)
The time to wait until beginning the next stage.
|
Stage |
withTargets(Collection<Target> targets)
The contacts or contact methods that the escalation plan or engagement plan is engaging.
|
Stage |
withTargets(Target... targets)
The contacts or contact methods that the escalation plan or engagement plan is engaging.
|
public void setDurationInMinutes(Integer durationInMinutes)
The time to wait until beginning the next stage. The duration can only be set to 0 if a target is specified.
durationInMinutes
- The time to wait until beginning the next stage. The duration can only be set to 0 if a target is
specified.public Integer getDurationInMinutes()
The time to wait until beginning the next stage. The duration can only be set to 0 if a target is specified.
public Stage withDurationInMinutes(Integer durationInMinutes)
The time to wait until beginning the next stage. The duration can only be set to 0 if a target is specified.
durationInMinutes
- The time to wait until beginning the next stage. The duration can only be set to 0 if a target is
specified.public List<Target> getTargets()
The contacts or contact methods that the escalation plan or engagement plan is engaging.
public void setTargets(Collection<Target> targets)
The contacts or contact methods that the escalation plan or engagement plan is engaging.
targets
- The contacts or contact methods that the escalation plan or engagement plan is engaging.public Stage withTargets(Target... targets)
The contacts or contact methods that the escalation plan or engagement plan is engaging.
NOTE: This method appends the values to the existing list (if any). Use
setTargets(java.util.Collection)
or withTargets(java.util.Collection)
if you want to override
the existing values.
targets
- The contacts or contact methods that the escalation plan or engagement plan is engaging.public Stage withTargets(Collection<Target> targets)
The contacts or contact methods that the escalation plan or engagement plan is engaging.
targets
- The contacts or contact methods that the escalation plan or engagement plan is engaging.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.