Interface UpdateNotificationSettingsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateNotificationSettingsRequest.Builder,,UpdateNotificationSettingsRequest> MTurkRequest.Builder,SdkBuilder<UpdateNotificationSettingsRequest.Builder,,UpdateNotificationSettingsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateNotificationSettingsRequest
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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.mturk.model.MTurkRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.Builderavoiding the need to create one manually viaNotificationSpecification.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-