aws_sdk_wickr/client/
update_data_retention.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateDataRetention`](crate::operation::update_data_retention::builders::UpdateDataRetentionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`network_id(impl Into<String>)`](crate::operation::update_data_retention::builders::UpdateDataRetentionFluentBuilder::network_id) / [`set_network_id(Option<String>)`](crate::operation::update_data_retention::builders::UpdateDataRetentionFluentBuilder::set_network_id):<br>required: **true**<br><p>The ID of the Wickr network containing the data retention bot.</p><br>
7    ///   - [`action_type(DataRetentionActionType)`](crate::operation::update_data_retention::builders::UpdateDataRetentionFluentBuilder::action_type) / [`set_action_type(Option<DataRetentionActionType>)`](crate::operation::update_data_retention::builders::UpdateDataRetentionFluentBuilder::set_action_type):<br>required: **true**<br><p>The action to perform. Valid values are 'ENABLE' (to enable the data retention service), 'DISABLE' (to disable the service), or 'PUBKEY_MSG_ACK' (to acknowledge the public key message).</p><br>
8    /// - On success, responds with [`UpdateDataRetentionOutput`](crate::operation::update_data_retention::UpdateDataRetentionOutput) with field(s):
9    ///   - [`message(Option<String>)`](crate::operation::update_data_retention::UpdateDataRetentionOutput::message): <p>A message indicating the result of the update operation.</p>
10    /// - On failure, responds with [`SdkError<UpdateDataRetentionError>`](crate::operation::update_data_retention::UpdateDataRetentionError)
11    pub fn update_data_retention(&self) -> crate::operation::update_data_retention::builders::UpdateDataRetentionFluentBuilder {
12        crate::operation::update_data_retention::builders::UpdateDataRetentionFluentBuilder::new(self.handle.clone())
13    }
14}