pub struct PutRetentionPolicy { /* private fields */ }
Expand description
Fluent builder constructing a request to PutRetentionPolicy
.
Puts a retention policy to the specified organization.
Implementations§
source§impl PutRetentionPolicy
impl PutRetentionPolicy
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<PutRetentionPolicy, AwsResponseRetryClassifier>, SdkError<PutRetentionPolicyError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<PutRetentionPolicy, AwsResponseRetryClassifier>, SdkError<PutRetentionPolicyError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<PutRetentionPolicyOutput, SdkError<PutRetentionPolicyError>>
pub async fn send(
self
) -> Result<PutRetentionPolicyOutput, SdkError<PutRetentionPolicyError>>
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 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 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 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.
Trait Implementations§
source§impl Clone for PutRetentionPolicy
impl Clone for PutRetentionPolicy
source§fn clone(&self) -> PutRetentionPolicy
fn clone(&self) -> PutRetentionPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more