@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class WorkerBlock extends Object implements Serializable, Cloneable, StructuredPojo
The WorkerBlock data structure represents a Worker who has been blocked. It has two elements: the WorkerId and the Reason for the block.
Constructor and Description |
---|
WorkerBlock() |
Modifier and Type | Method and Description |
---|---|
WorkerBlock |
clone() |
boolean |
equals(Object obj) |
String |
getReason()
A message explaining the reason the Worker was blocked.
|
String |
getWorkerId()
The ID of the Worker who accepted the HIT.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setReason(String reason)
A message explaining the reason the Worker was blocked.
|
void |
setWorkerId(String workerId)
The ID of the Worker who accepted the HIT.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
WorkerBlock |
withReason(String reason)
A message explaining the reason the Worker was blocked.
|
WorkerBlock |
withWorkerId(String workerId)
The ID of the Worker who accepted the HIT.
|
public void setWorkerId(String workerId)
The ID of the Worker who accepted the HIT.
workerId
- The ID of the Worker who accepted the HIT.public String getWorkerId()
The ID of the Worker who accepted the HIT.
public WorkerBlock withWorkerId(String workerId)
The ID of the Worker who accepted the HIT.
workerId
- The ID of the Worker who accepted the HIT.public void setReason(String reason)
A message explaining the reason the Worker was blocked.
reason
- A message explaining the reason the Worker was blocked.public String getReason()
A message explaining the reason the Worker was blocked.
public WorkerBlock withReason(String reason)
A message explaining the reason the Worker was blocked.
reason
- A message explaining the reason the Worker was blocked.public String toString()
toString
in class Object
Object.toString()
public WorkerBlock clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.