Class TimerStartedEventAttributes
- java.lang.Object
-
- com.amazonaws.services.simpleworkflow.model.TimerStartedEventAttributes
-
- All Implemented Interfaces:
Serializable,Cloneable
public class TimerStartedEventAttributes extends Object implements Serializable, Cloneable
Provides details of the
TimerStartedevent.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TimerStartedEventAttributes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimerStartedEventAttributesclone()booleanequals(Object obj)StringgetControl()Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.LonggetDecisionTaskCompletedEventId()The ID of theDecisionTaskCompletedevent corresponding to the decision task that resulted in theStartTimerdecision for this activity task.StringgetStartToFireTimeout()The duration of time after which the timer will fire.StringgetTimerId()The unique ID of the timer that was started.inthashCode()voidsetControl(String control)Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.voidsetDecisionTaskCompletedEventId(Long decisionTaskCompletedEventId)The ID of theDecisionTaskCompletedevent corresponding to the decision task that resulted in theStartTimerdecision for this activity task.voidsetStartToFireTimeout(String startToFireTimeout)The duration of time after which the timer will fire.voidsetTimerId(String timerId)The unique ID of the timer that was started.StringtoString()Returns a string representation of this object; useful for testing and debugging.TimerStartedEventAttributeswithControl(String control)Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.TimerStartedEventAttributeswithDecisionTaskCompletedEventId(Long decisionTaskCompletedEventId)The ID of theDecisionTaskCompletedevent corresponding to the decision task that resulted in theStartTimerdecision for this activity task.TimerStartedEventAttributeswithStartToFireTimeout(String startToFireTimeout)The duration of time after which the timer will fire.TimerStartedEventAttributeswithTimerId(String timerId)The unique ID of the timer that was started.
-
-
-
Method Detail
-
setTimerId
public void setTimerId(String timerId)
The unique ID of the timer that was started.
- Parameters:
timerId- The unique ID of the timer that was started.
-
getTimerId
public String getTimerId()
The unique ID of the timer that was started.
- Returns:
- The unique ID of the timer that was started.
-
withTimerId
public TimerStartedEventAttributes withTimerId(String timerId)
The unique ID of the timer that was started.
- Parameters:
timerId- The unique ID of the timer that was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setControl
public void setControl(String control)
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.
- Parameters:
control- Optional.
-
getControl
public String getControl()
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.
- Returns:
- Optional.
-
withControl
public TimerStartedEventAttributes withControl(String control)
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.
- Parameters:
control- Optional.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStartToFireTimeout
public void setStartToFireTimeout(String startToFireTimeout)
The duration of time after which the timer will fire.
The duration is specified in seconds; an integer greater than or equal to 0.
- Parameters:
startToFireTimeout- The duration of time after which the timer will fire.The duration is specified in seconds; an integer greater than or equal to 0.
-
getStartToFireTimeout
public String getStartToFireTimeout()
The duration of time after which the timer will fire.
The duration is specified in seconds; an integer greater than or equal to 0.
- Returns:
- The duration of time after which the timer will fire.
The duration is specified in seconds; an integer greater than or equal to 0.
-
withStartToFireTimeout
public TimerStartedEventAttributes withStartToFireTimeout(String startToFireTimeout)
The duration of time after which the timer will fire.
The duration is specified in seconds; an integer greater than or equal to 0.
- Parameters:
startToFireTimeout- The duration of time after which the timer will fire.The duration is specified in seconds; an integer greater than or equal to 0.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDecisionTaskCompletedEventId
public void setDecisionTaskCompletedEventId(Long decisionTaskCompletedEventId)
The ID of the
DecisionTaskCompletedevent corresponding to the decision task that resulted in theStartTimerdecision for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.- Parameters:
decisionTaskCompletedEventId- The ID of theDecisionTaskCompletedevent corresponding to the decision task that resulted in theStartTimerdecision for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
-
getDecisionTaskCompletedEventId
public Long getDecisionTaskCompletedEventId()
The ID of the
DecisionTaskCompletedevent corresponding to the decision task that resulted in theStartTimerdecision for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.- Returns:
- The ID of the
DecisionTaskCompletedevent corresponding to the decision task that resulted in theStartTimerdecision for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
-
withDecisionTaskCompletedEventId
public TimerStartedEventAttributes withDecisionTaskCompletedEventId(Long decisionTaskCompletedEventId)
The ID of the
DecisionTaskCompletedevent corresponding to the decision task that resulted in theStartTimerdecision for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.- Parameters:
decisionTaskCompletedEventId- The ID of theDecisionTaskCompletedevent corresponding to the decision task that resulted in theStartTimerdecision for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public TimerStartedEventAttributes clone()
-
-