Interface UpdateNotificationSettingsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateNotificationSettingsRequest.Builder,
,UpdateNotificationSettingsRequest> MTurkRequest.Builder
,SdkBuilder<UpdateNotificationSettingsRequest.Builder,
,UpdateNotificationSettingsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateNotificationSettingsRequest
@Mutable
@NotThreadSafe
public static interface UpdateNotificationSettingsRequest.Builder
extends MTurkRequest.Builder, SdkPojo, CopyableBuilder<UpdateNotificationSettingsRequest.Builder,UpdateNotificationSettingsRequest>
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies whether notifications are sent for HITs of this HIT type, according to the notification specification.The ID of the HIT type whose notification specification is being updated.notification
(Consumer<NotificationSpecification.Builder> notification) The notification specification for the HIT type.notification
(NotificationSpecification notification) The notification specification for the HIT type.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.mturk.model.MTurkRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
hitTypeId
The ID of the HIT type whose notification specification is being updated.
- Parameters:
hitTypeId
- The ID of the HIT type whose notification specification is being updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notification
The notification specification for the HIT type.
- Parameters:
notification
- The notification specification for the HIT type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notification
default UpdateNotificationSettingsRequest.Builder notification(Consumer<NotificationSpecification.Builder> notification) The notification specification for the HIT type.
This is a convenience method that creates an instance of theNotificationSpecification.Builder
avoiding the need to create one manually viaNotificationSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonotification(NotificationSpecification)
.- Parameters:
notification
- a consumer that will call methods onNotificationSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
active
Specifies whether notifications are sent for HITs of this HIT type, according to the notification specification. You must specify either the Notification parameter or the Active parameter for the call to UpdateNotificationSettings to succeed.
- Parameters:
active
- Specifies whether notifications are sent for HITs of this HIT type, according to the notification specification. You must specify either the Notification parameter or the Active parameter for the call to UpdateNotificationSettings to succeed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateNotificationSettingsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateNotificationSettingsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-