Struct aws_sdk_mturk::client::fluent_builders::UpdateNotificationSettings [−][src]
pub struct UpdateNotificationSettings<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to UpdateNotificationSettings
.
The UpdateNotificationSettings
operation creates, updates, disables or re-enables notifications for a HIT type. If you call the UpdateNotificationSettings operation for a HIT type that already has a notification specification, the operation replaces the old specification with a new one. You can call the UpdateNotificationSettings operation to enable or disable notifications for the HIT type, without having to modify the notification specification itself by providing updates to the Active status without specifying a new notification specification. To change the Active status of a HIT type's notifications, the HIT type must already have a notification specification, or one must be provided in the same call to UpdateNotificationSettings
.
Implementations
impl<C, M, R> UpdateNotificationSettings<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> UpdateNotificationSettings<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<UpdateNotificationSettingsOutput, SdkError<UpdateNotificationSettingsError>> where
R::Policy: SmithyRetryPolicy<UpdateNotificationSettingsInputOperationOutputAlias, UpdateNotificationSettingsOutput, UpdateNotificationSettingsError, UpdateNotificationSettingsInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<UpdateNotificationSettingsOutput, SdkError<UpdateNotificationSettingsError>> where
R::Policy: SmithyRetryPolicy<UpdateNotificationSettingsInputOperationOutputAlias, UpdateNotificationSettingsOutput, UpdateNotificationSettingsError, UpdateNotificationSettingsInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The ID of the HIT type whose notification specification is being updated.
The ID of the HIT type whose notification specification is being updated.
The notification specification for the HIT type.
The notification specification for the HIT type.
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.
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.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for UpdateNotificationSettings<C, M, R>
impl<C, M, R> Send for UpdateNotificationSettings<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for UpdateNotificationSettings<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for UpdateNotificationSettings<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for UpdateNotificationSettings<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more