aws_sdk_workmail/client/put_retention_policy.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`PutRetentionPolicy`](crate::operation::put_retention_policy::builders::PutRetentionPolicyFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`organization_id(impl Into<String>)`](crate::operation::put_retention_policy::builders::PutRetentionPolicyFluentBuilder::organization_id) / [`set_organization_id(Option<String>)`](crate::operation::put_retention_policy::builders::PutRetentionPolicyFluentBuilder::set_organization_id):<br>required: **true**<br><p>The organization ID.</p><br>
/// - [`id(impl Into<String>)`](crate::operation::put_retention_policy::builders::PutRetentionPolicyFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::put_retention_policy::builders::PutRetentionPolicyFluentBuilder::set_id):<br>required: **false**<br><p>The retention policy ID.</p><br>
/// - [`name(impl Into<String>)`](crate::operation::put_retention_policy::builders::PutRetentionPolicyFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::put_retention_policy::builders::PutRetentionPolicyFluentBuilder::set_name):<br>required: **true**<br><p>The retention policy name.</p><br>
/// - [`description(impl Into<String>)`](crate::operation::put_retention_policy::builders::PutRetentionPolicyFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::put_retention_policy::builders::PutRetentionPolicyFluentBuilder::set_description):<br>required: **false**<br><p>The retention policy description.</p><br>
/// - [`folder_configurations(FolderConfiguration)`](crate::operation::put_retention_policy::builders::PutRetentionPolicyFluentBuilder::folder_configurations) / [`set_folder_configurations(Option<Vec::<FolderConfiguration>>)`](crate::operation::put_retention_policy::builders::PutRetentionPolicyFluentBuilder::set_folder_configurations):<br>required: **true**<br><p>The retention policy folder configurations.</p><br>
/// - On success, responds with [`PutRetentionPolicyOutput`](crate::operation::put_retention_policy::PutRetentionPolicyOutput)
/// - On failure, responds with [`SdkError<PutRetentionPolicyError>`](crate::operation::put_retention_policy::PutRetentionPolicyError)
pub fn put_retention_policy(&self) -> crate::operation::put_retention_policy::builders::PutRetentionPolicyFluentBuilder {
crate::operation::put_retention_policy::builders::PutRetentionPolicyFluentBuilder::new(self.handle.clone())
}
}