Struct aws_sdk_workmail::model::folder_configuration::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for FolderConfiguration
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn name(self, input: FolderName) -> Self
pub fn name(self, input: FolderName) -> Self
The folder name.
sourcepub fn set_name(self, input: Option<FolderName>) -> Self
pub fn set_name(self, input: Option<FolderName>) -> Self
The folder name.
sourcepub fn action(self, input: RetentionAction) -> Self
pub fn action(self, input: RetentionAction) -> Self
The action to take on the folder contents at the end of the folder configuration period.
sourcepub fn set_action(self, input: Option<RetentionAction>) -> Self
pub fn set_action(self, input: Option<RetentionAction>) -> Self
The action to take on the folder contents at the end of the folder configuration period.
sourcepub fn period(self, input: i32) -> Self
pub fn period(self, input: i32) -> Self
The number of days for which the folder-configuration action applies.
sourcepub fn set_period(self, input: Option<i32>) -> Self
pub fn set_period(self, input: Option<i32>) -> Self
The number of days for which the folder-configuration action applies.
sourcepub fn build(self) -> FolderConfiguration
pub fn build(self) -> FolderConfiguration
Consumes the builder and constructs a FolderConfiguration
.