#[non_exhaustive]pub struct S3SetObjectRetentionOperationBuilder { /* private fields */ }
Expand description
A builder for S3SetObjectRetentionOperation
.
Implementations§
source§impl S3SetObjectRetentionOperationBuilder
impl S3SetObjectRetentionOperationBuilder
sourcepub fn bypass_governance_retention(self, input: bool) -> Self
pub fn bypass_governance_retention(self, input: bool) -> Self
Indicates if the action should be applied to objects in the Batch Operations job even if they have Object Lock GOVERNANCE
type in place.
sourcepub fn set_bypass_governance_retention(self, input: Option<bool>) -> Self
pub fn set_bypass_governance_retention(self, input: Option<bool>) -> Self
Indicates if the action should be applied to objects in the Batch Operations job even if they have Object Lock GOVERNANCE
type in place.
sourcepub fn get_bypass_governance_retention(&self) -> &Option<bool>
pub fn get_bypass_governance_retention(&self) -> &Option<bool>
Indicates if the action should be applied to objects in the Batch Operations job even if they have Object Lock GOVERNANCE
type in place.
sourcepub fn retention(self, input: S3Retention) -> Self
pub fn retention(self, input: S3Retention) -> Self
Contains the Object Lock retention mode to be applied to all objects in the Batch Operations job. For more information, see Using S3 Object Lock retention with S3 Batch Operations in the Amazon S3 User Guide.
This field is required.sourcepub fn set_retention(self, input: Option<S3Retention>) -> Self
pub fn set_retention(self, input: Option<S3Retention>) -> Self
Contains the Object Lock retention mode to be applied to all objects in the Batch Operations job. For more information, see Using S3 Object Lock retention with S3 Batch Operations in the Amazon S3 User Guide.
sourcepub fn get_retention(&self) -> &Option<S3Retention>
pub fn get_retention(&self) -> &Option<S3Retention>
Contains the Object Lock retention mode to be applied to all objects in the Batch Operations job. For more information, see Using S3 Object Lock retention with S3 Batch Operations in the Amazon S3 User Guide.
sourcepub fn build(self) -> S3SetObjectRetentionOperation
pub fn build(self) -> S3SetObjectRetentionOperation
Consumes the builder and constructs a S3SetObjectRetentionOperation
.
Trait Implementations§
source§impl Clone for S3SetObjectRetentionOperationBuilder
impl Clone for S3SetObjectRetentionOperationBuilder
source§fn clone(&self) -> S3SetObjectRetentionOperationBuilder
fn clone(&self) -> S3SetObjectRetentionOperationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for S3SetObjectRetentionOperationBuilder
impl Default for S3SetObjectRetentionOperationBuilder
source§fn default() -> S3SetObjectRetentionOperationBuilder
fn default() -> S3SetObjectRetentionOperationBuilder
source§impl PartialEq for S3SetObjectRetentionOperationBuilder
impl PartialEq for S3SetObjectRetentionOperationBuilder
source§fn eq(&self, other: &S3SetObjectRetentionOperationBuilder) -> bool
fn eq(&self, other: &S3SetObjectRetentionOperationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.