#[non_exhaustive]pub struct ObjectLockRetentionBuilder { /* private fields */ }Expand description
A builder for ObjectLockRetention.
Implementations§
Source§impl ObjectLockRetentionBuilder
impl ObjectLockRetentionBuilder
Sourcepub fn mode(self, input: ObjectLockRetentionMode) -> Self
pub fn mode(self, input: ObjectLockRetentionMode) -> Self
Indicates the Retention mode for the specified object.
Sourcepub fn set_mode(self, input: Option<ObjectLockRetentionMode>) -> Self
pub fn set_mode(self, input: Option<ObjectLockRetentionMode>) -> Self
Indicates the Retention mode for the specified object.
Sourcepub fn get_mode(&self) -> &Option<ObjectLockRetentionMode>
pub fn get_mode(&self) -> &Option<ObjectLockRetentionMode>
Indicates the Retention mode for the specified object.
Sourcepub fn retain_until_date(self, input: DateTime) -> Self
pub fn retain_until_date(self, input: DateTime) -> Self
The date on which this Object Lock Retention will expire.
Sourcepub fn set_retain_until_date(self, input: Option<DateTime>) -> Self
pub fn set_retain_until_date(self, input: Option<DateTime>) -> Self
The date on which this Object Lock Retention will expire.
Sourcepub fn get_retain_until_date(&self) -> &Option<DateTime>
pub fn get_retain_until_date(&self) -> &Option<DateTime>
The date on which this Object Lock Retention will expire.
Sourcepub fn event_hold(self, input: ObjectLockEventHold) -> Self
pub fn event_hold(self, input: ObjectLockEventHold) -> Self
The event hold status for the object. Set to ON to enable an event hold or OFF to disable it.
Sourcepub fn set_event_hold(self, input: Option<ObjectLockEventHold>) -> Self
pub fn set_event_hold(self, input: Option<ObjectLockEventHold>) -> Self
The event hold status for the object. Set to ON to enable an event hold or OFF to disable it.
Sourcepub fn get_event_hold(&self) -> &Option<ObjectLockEventHold>
pub fn get_event_hold(&self) -> &Option<ObjectLockEventHold>
The event hold status for the object. Set to ON to enable an event hold or OFF to disable it.
Sourcepub fn event_hold_duration(self, input: EventHoldDuration) -> Self
pub fn event_hold_duration(self, input: EventHoldDuration) -> Self
The event hold duration for the object. Specifies how long the object remains protected after the event hold is released.
Sourcepub fn set_event_hold_duration(self, input: Option<EventHoldDuration>) -> Self
pub fn set_event_hold_duration(self, input: Option<EventHoldDuration>) -> Self
The event hold duration for the object. Specifies how long the object remains protected after the event hold is released.
Sourcepub fn get_event_hold_duration(&self) -> &Option<EventHoldDuration>
pub fn get_event_hold_duration(&self) -> &Option<EventHoldDuration>
The event hold duration for the object. Specifies how long the object remains protected after the event hold is released.
Sourcepub fn build(self) -> ObjectLockRetention
pub fn build(self) -> ObjectLockRetention
Consumes the builder and constructs a ObjectLockRetention.
Trait Implementations§
Source§impl Clone for ObjectLockRetentionBuilder
impl Clone for ObjectLockRetentionBuilder
Source§fn clone(&self) -> ObjectLockRetentionBuilder
fn clone(&self) -> ObjectLockRetentionBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ObjectLockRetentionBuilder
impl Debug for ObjectLockRetentionBuilder
Source§impl Default for ObjectLockRetentionBuilder
impl Default for ObjectLockRetentionBuilder
Source§fn default() -> ObjectLockRetentionBuilder
fn default() -> ObjectLockRetentionBuilder
impl StructuralPartialEq for ObjectLockRetentionBuilder
Auto Trait Implementations§
impl Freeze for ObjectLockRetentionBuilder
impl RefUnwindSafe for ObjectLockRetentionBuilder
impl Send for ObjectLockRetentionBuilder
impl Sync for ObjectLockRetentionBuilder
impl Unpin for ObjectLockRetentionBuilder
impl UnsafeUnpin for ObjectLockRetentionBuilder
impl UnwindSafe for ObjectLockRetentionBuilder
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§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