#[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 ==
.impl StructuralPartialEq for S3SetObjectRetentionOperationBuilder
Auto Trait Implementations§
impl Freeze for S3SetObjectRetentionOperationBuilder
impl RefUnwindSafe for S3SetObjectRetentionOperationBuilder
impl Send for S3SetObjectRetentionOperationBuilder
impl Sync for S3SetObjectRetentionOperationBuilder
impl Unpin for S3SetObjectRetentionOperationBuilder
impl UnwindSafe for S3SetObjectRetentionOperationBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more