@Generated(value="software.amazon.awssdk:codegen") public final class NotifyWorkersFailureStatus extends Object implements SdkPojo, Serializable, 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) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
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.
|
List<SdkField<?>> |
sdkFields() |
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()
Returns a string representation of this object.
|
String |
workerId()
The ID of the Worker.
|
copy
public final 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 final 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 final String notifyWorkersFailureMessage()
A message detailing the reason the Worker could not be notified.
public final 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 final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()