Interface NotifyWorkersResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<NotifyWorkersResponse.Builder,NotifyWorkersResponse>,MTurkResponse.Builder,SdkBuilder<NotifyWorkersResponse.Builder,NotifyWorkersResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- NotifyWorkersResponse
public static interface NotifyWorkersResponse.Builder extends MTurkResponse.Builder, SdkPojo, CopyableBuilder<NotifyWorkersResponse.Builder,NotifyWorkersResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NotifyWorkersResponse.BuildernotifyWorkersFailureStatuses(Collection<NotifyWorkersFailureStatus> notifyWorkersFailureStatuses)When MTurk sends notifications to the list of Workers, it returns back any failures it encounters in this list of NotifyWorkersFailureStatus objects.NotifyWorkersResponse.BuildernotifyWorkersFailureStatuses(Consumer<NotifyWorkersFailureStatus.Builder>... notifyWorkersFailureStatuses)When MTurk sends notifications to the list of Workers, it returns back any failures it encounters in this list of NotifyWorkersFailureStatus objects.NotifyWorkersResponse.BuildernotifyWorkersFailureStatuses(NotifyWorkersFailureStatus... notifyWorkersFailureStatuses)When MTurk sends notifications to the list of Workers, it returns back any failures it encounters in this list of NotifyWorkersFailureStatus objects.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.mturk.model.MTurkResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
notifyWorkersFailureStatuses
NotifyWorkersResponse.Builder notifyWorkersFailureStatuses(Collection<NotifyWorkersFailureStatus> notifyWorkersFailureStatuses)
When MTurk sends notifications to the list of Workers, it returns back any failures it encounters in this list of NotifyWorkersFailureStatus objects.
- Parameters:
notifyWorkersFailureStatuses- When MTurk sends notifications to the list of Workers, it returns back any failures it encounters in this list of NotifyWorkersFailureStatus objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notifyWorkersFailureStatuses
NotifyWorkersResponse.Builder notifyWorkersFailureStatuses(NotifyWorkersFailureStatus... notifyWorkersFailureStatuses)
When MTurk sends notifications to the list of Workers, it returns back any failures it encounters in this list of NotifyWorkersFailureStatus objects.
- Parameters:
notifyWorkersFailureStatuses- When MTurk sends notifications to the list of Workers, it returns back any failures it encounters in this list of NotifyWorkersFailureStatus objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notifyWorkersFailureStatuses
NotifyWorkersResponse.Builder notifyWorkersFailureStatuses(Consumer<NotifyWorkersFailureStatus.Builder>... notifyWorkersFailureStatuses)
When MTurk sends notifications to the list of Workers, it returns back any failures it encounters in this list of NotifyWorkersFailureStatus objects.
This is a convenience method that creates an instance of theNotifyWorkersFailureStatus.Builderavoiding the need to create one manually viaNotifyWorkersFailureStatus.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#notifyWorkersFailureStatuses(List.) - Parameters:
notifyWorkersFailureStatuses- a consumer that will call methods onNotifyWorkersFailureStatus.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#notifyWorkersFailureStatuses(java.util.Collection)
-
-