@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class WorkerSessionSummary extends Object implements Serializable, Cloneable, StructuredPojo
Summarizes the session for a particular worker.
Constructor and Description |
---|
WorkerSessionSummary() |
Modifier and Type | Method and Description |
---|---|
WorkerSessionSummary |
clone() |
boolean |
equals(Object obj) |
Date |
getEndedAt()
The date and time the resource ended running.
|
String |
getJobId()
The job ID for the job associated with the worker's session.
|
String |
getLifecycleStatus()
The life cycle status for the worker's session.
|
String |
getQueueId()
The queue ID for the queue associated to the worker.
|
String |
getSessionId()
The session ID for the session action.
|
Date |
getStartedAt()
The date and time the resource started running.
|
String |
getTargetLifecycleStatus()
The life cycle status
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEndedAt(Date endedAt)
The date and time the resource ended running.
|
void |
setJobId(String jobId)
The job ID for the job associated with the worker's session.
|
void |
setLifecycleStatus(String lifecycleStatus)
The life cycle status for the worker's session.
|
void |
setQueueId(String queueId)
The queue ID for the queue associated to the worker.
|
void |
setSessionId(String sessionId)
The session ID for the session action.
|
void |
setStartedAt(Date startedAt)
The date and time the resource started running.
|
void |
setTargetLifecycleStatus(String targetLifecycleStatus)
The life cycle status
|
String |
toString()
Returns a string representation of this object.
|
WorkerSessionSummary |
withEndedAt(Date endedAt)
The date and time the resource ended running.
|
WorkerSessionSummary |
withJobId(String jobId)
The job ID for the job associated with the worker's session.
|
WorkerSessionSummary |
withLifecycleStatus(SessionLifecycleStatus lifecycleStatus)
The life cycle status for the worker's session.
|
WorkerSessionSummary |
withLifecycleStatus(String lifecycleStatus)
The life cycle status for the worker's session.
|
WorkerSessionSummary |
withQueueId(String queueId)
The queue ID for the queue associated to the worker.
|
WorkerSessionSummary |
withSessionId(String sessionId)
The session ID for the session action.
|
WorkerSessionSummary |
withStartedAt(Date startedAt)
The date and time the resource started running.
|
WorkerSessionSummary |
withTargetLifecycleStatus(SessionLifecycleTargetStatus targetLifecycleStatus)
The life cycle status
|
WorkerSessionSummary |
withTargetLifecycleStatus(String targetLifecycleStatus)
The life cycle status
|
public void setEndedAt(Date endedAt)
The date and time the resource ended running.
endedAt
- The date and time the resource ended running.public Date getEndedAt()
The date and time the resource ended running.
public WorkerSessionSummary withEndedAt(Date endedAt)
The date and time the resource ended running.
endedAt
- The date and time the resource ended running.public void setJobId(String jobId)
The job ID for the job associated with the worker's session.
jobId
- The job ID for the job associated with the worker's session.public String getJobId()
The job ID for the job associated with the worker's session.
public WorkerSessionSummary withJobId(String jobId)
The job ID for the job associated with the worker's session.
jobId
- The job ID for the job associated with the worker's session.public void setLifecycleStatus(String lifecycleStatus)
The life cycle status for the worker's session.
lifecycleStatus
- The life cycle status for the worker's session.SessionLifecycleStatus
public String getLifecycleStatus()
The life cycle status for the worker's session.
SessionLifecycleStatus
public WorkerSessionSummary withLifecycleStatus(String lifecycleStatus)
The life cycle status for the worker's session.
lifecycleStatus
- The life cycle status for the worker's session.SessionLifecycleStatus
public WorkerSessionSummary withLifecycleStatus(SessionLifecycleStatus lifecycleStatus)
The life cycle status for the worker's session.
lifecycleStatus
- The life cycle status for the worker's session.SessionLifecycleStatus
public void setQueueId(String queueId)
The queue ID for the queue associated to the worker.
queueId
- The queue ID for the queue associated to the worker.public String getQueueId()
The queue ID for the queue associated to the worker.
public WorkerSessionSummary withQueueId(String queueId)
The queue ID for the queue associated to the worker.
queueId
- The queue ID for the queue associated to the worker.public void setSessionId(String sessionId)
The session ID for the session action.
sessionId
- The session ID for the session action.public String getSessionId()
The session ID for the session action.
public WorkerSessionSummary withSessionId(String sessionId)
The session ID for the session action.
sessionId
- The session ID for the session action.public void setStartedAt(Date startedAt)
The date and time the resource started running.
startedAt
- The date and time the resource started running.public Date getStartedAt()
The date and time the resource started running.
public WorkerSessionSummary withStartedAt(Date startedAt)
The date and time the resource started running.
startedAt
- The date and time the resource started running.public void setTargetLifecycleStatus(String targetLifecycleStatus)
The life cycle status
targetLifecycleStatus
- The life cycle statusSessionLifecycleTargetStatus
public String getTargetLifecycleStatus()
The life cycle status
SessionLifecycleTargetStatus
public WorkerSessionSummary withTargetLifecycleStatus(String targetLifecycleStatus)
The life cycle status
targetLifecycleStatus
- The life cycle statusSessionLifecycleTargetStatus
public WorkerSessionSummary withTargetLifecycleStatus(SessionLifecycleTargetStatus targetLifecycleStatus)
The life cycle status
targetLifecycleStatus
- The life cycle statusSessionLifecycleTargetStatus
public String toString()
toString
in class Object
Object.toString()
public WorkerSessionSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.