@Generated(value="software.amazon.awssdk:codegen") public class WorkerBlock extends Object implements StructuredPojo, ToCopyableBuilder<WorkerBlock.Builder,WorkerBlock>
The WorkerBlock data structure represents a Worker who has been blocked. It has two elements: the WorkerId and the Reason for the block.
Modifier and Type | Class and Description |
---|---|
static interface |
WorkerBlock.Builder |
Modifier and Type | Method and Description |
---|---|
static WorkerBlock.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
reason()
A message explaining the reason the Worker was blocked.
|
static Class<? extends WorkerBlock.Builder> |
serializableBuilderClass() |
WorkerBlock.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
workerId()
The ID of the Worker who accepted the HIT.
|
copy
public String workerId()
The ID of the Worker who accepted the HIT.
public String reason()
A message explaining the reason the Worker was blocked.
public WorkerBlock.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<WorkerBlock.Builder,WorkerBlock>
public static WorkerBlock.Builder builder()
public static Class<? extends WorkerBlock.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.