@Generated(value="software.amazon.awssdk:codegen") public final class CreateAdditionalAssignmentsForHitRequest extends MTurkRequest implements ToCopyableBuilder<CreateAdditionalAssignmentsForHitRequest.Builder,CreateAdditionalAssignmentsForHitRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateAdditionalAssignmentsForHitRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static CreateAdditionalAssignmentsForHitRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
hitId()
The ID of the HIT to extend.
|
Integer |
numberOfAdditionalAssignments()
The number of additional assignments to request for this HIT.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateAdditionalAssignmentsForHitRequest.Builder> |
serializableBuilderClass() |
CreateAdditionalAssignmentsForHitRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
uniqueRequestToken()
A unique identifier for this request, which allows you to retry the call on error without extending the HIT
multiple times.
|
overrideConfiguration
copy
public String hitId()
The ID of the HIT to extend.
public Integer numberOfAdditionalAssignments()
The number of additional assignments to request for this HIT.
public String uniqueRequestToken()
A unique identifier for this request, which allows you to retry the call on error without extending the HIT
multiple times. This is useful in cases such as network timeouts where it is unclear whether or not the call
succeeded on the server. If the extend HIT already exists in the system from a previous call using the same
UniqueRequestToken
, subsequent calls will return an error with a message containing the request ID.
UniqueRequestToken
, subsequent calls will return an error with a message
containing the request ID.public CreateAdditionalAssignmentsForHitRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateAdditionalAssignmentsForHitRequest.Builder,CreateAdditionalAssignmentsForHitRequest>
toBuilder
in class MTurkRequest
public static CreateAdditionalAssignmentsForHitRequest.Builder builder()
public static Class<? extends CreateAdditionalAssignmentsForHitRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.