@Generated(value="software.amazon.awssdk:codegen") public final class NotifyWorkersFailureStatus extends Object implements StructuredPojo, ToCopyableBuilder<NotifyWorkersFailureStatus.Builder,NotifyWorkersFailureStatus>
When MTurk encounters an issue with notifying the Workers you specified, it returns back this object with failure details.
Modifier and Type | Class and Description |
---|---|
static interface |
NotifyWorkersFailureStatus.Builder |
Modifier and Type | Method and Description |
---|---|
static NotifyWorkersFailureStatus.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 . |
NotifyWorkersFailureCode |
notifyWorkersFailureCode()
Encoded value for the failure type.
|
String |
notifyWorkersFailureCodeAsString()
Encoded value for the failure type.
|
String |
notifyWorkersFailureMessage()
A message detailing the reason the Worker could not be notified.
|
static Class<? extends NotifyWorkersFailureStatus.Builder> |
serializableBuilderClass() |
NotifyWorkersFailureStatus.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.
|
copy
public NotifyWorkersFailureCode notifyWorkersFailureCode()
Encoded value for the failure type.
If the service returns an enum value that is not available in the current SDK version,
notifyWorkersFailureCode
will return NotifyWorkersFailureCode.UNKNOWN_TO_SDK_VERSION
. The raw
value returned by the service is available from notifyWorkersFailureCodeAsString()
.
NotifyWorkersFailureCode
public String notifyWorkersFailureCodeAsString()
Encoded value for the failure type.
If the service returns an enum value that is not available in the current SDK version,
notifyWorkersFailureCode
will return NotifyWorkersFailureCode.UNKNOWN_TO_SDK_VERSION
. The raw
value returned by the service is available from notifyWorkersFailureCodeAsString()
.
NotifyWorkersFailureCode
public String notifyWorkersFailureMessage()
A message detailing the reason the Worker could not be notified.
public String workerId()
The ID of the Worker.
public NotifyWorkersFailureStatus.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<NotifyWorkersFailureStatus.Builder,NotifyWorkersFailureStatus>
public static NotifyWorkersFailureStatus.Builder builder()
public static Class<? extends NotifyWorkersFailureStatus.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.