Struct aws_sdk_workmail::operation::put_retention_policy::builders::PutRetentionPolicyFluentBuilder
source · pub struct PutRetentionPolicyFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to PutRetentionPolicy
.
Puts a retention policy to the specified organization.
Implementations§
source§impl PutRetentionPolicyFluentBuilder
impl PutRetentionPolicyFluentBuilder
sourcepub fn as_input(&self) -> &PutRetentionPolicyInputBuilder
pub fn as_input(&self) -> &PutRetentionPolicyInputBuilder
Access the PutRetentionPolicy as a reference.
sourcepub async fn send(
self
) -> Result<PutRetentionPolicyOutput, SdkError<PutRetentionPolicyError, HttpResponse>>
pub async fn send( self ) -> Result<PutRetentionPolicyOutput, SdkError<PutRetentionPolicyError, HttpResponse>>
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.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<PutRetentionPolicyOutput, PutRetentionPolicyError>, SdkError<PutRetentionPolicyError>>
pub async fn customize( self ) -> Result<CustomizableOperation<PutRetentionPolicyOutput, PutRetentionPolicyError>, SdkError<PutRetentionPolicyError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn organization_id(self, input: impl Into<String>) -> Self
pub fn organization_id(self, input: impl Into<String>) -> Self
The organization ID.
sourcepub fn set_organization_id(self, input: Option<String>) -> Self
pub fn set_organization_id(self, input: Option<String>) -> Self
The organization ID.
sourcepub fn get_organization_id(&self) -> &Option<String>
pub fn get_organization_id(&self) -> &Option<String>
The organization ID.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The retention policy description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The retention policy description.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The retention policy description.
sourcepub fn folder_configurations(self, input: FolderConfiguration) -> Self
pub fn folder_configurations(self, input: FolderConfiguration) -> Self
Appends an item to FolderConfigurations
.
To override the contents of this collection use set_folder_configurations
.
The retention policy folder configurations.
sourcepub fn set_folder_configurations(
self,
input: Option<Vec<FolderConfiguration>>
) -> Self
pub fn set_folder_configurations( self, input: Option<Vec<FolderConfiguration>> ) -> Self
The retention policy folder configurations.
sourcepub fn get_folder_configurations(&self) -> &Option<Vec<FolderConfiguration>>
pub fn get_folder_configurations(&self) -> &Option<Vec<FolderConfiguration>>
The retention policy folder configurations.
Trait Implementations§
source§impl Clone for PutRetentionPolicyFluentBuilder
impl Clone for PutRetentionPolicyFluentBuilder
source§fn clone(&self) -> PutRetentionPolicyFluentBuilder
fn clone(&self) -> PutRetentionPolicyFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more