#[non_exhaustive]pub struct LifecyclePolicyDetailActionBuilder { /* private fields */ }
Expand description
A builder for LifecyclePolicyDetailAction
.
Implementations§
source§impl LifecyclePolicyDetailActionBuilder
impl LifecyclePolicyDetailActionBuilder
sourcepub fn type(self, input: LifecyclePolicyDetailActionType) -> Self
pub fn type(self, input: LifecyclePolicyDetailActionType) -> Self
Specifies the lifecycle action to take.
This field is required.sourcepub fn set_type(self, input: Option<LifecyclePolicyDetailActionType>) -> Self
pub fn set_type(self, input: Option<LifecyclePolicyDetailActionType>) -> Self
Specifies the lifecycle action to take.
sourcepub fn get_type(&self) -> &Option<LifecyclePolicyDetailActionType>
pub fn get_type(&self) -> &Option<LifecyclePolicyDetailActionType>
Specifies the lifecycle action to take.
sourcepub fn include_resources(
self,
input: LifecyclePolicyDetailActionIncludeResources,
) -> Self
pub fn include_resources( self, input: LifecyclePolicyDetailActionIncludeResources, ) -> Self
Specifies the resources that the lifecycle policy applies to.
sourcepub fn set_include_resources(
self,
input: Option<LifecyclePolicyDetailActionIncludeResources>,
) -> Self
pub fn set_include_resources( self, input: Option<LifecyclePolicyDetailActionIncludeResources>, ) -> Self
Specifies the resources that the lifecycle policy applies to.
sourcepub fn get_include_resources(
&self,
) -> &Option<LifecyclePolicyDetailActionIncludeResources>
pub fn get_include_resources( &self, ) -> &Option<LifecyclePolicyDetailActionIncludeResources>
Specifies the resources that the lifecycle policy applies to.
sourcepub fn build(self) -> Result<LifecyclePolicyDetailAction, BuildError>
pub fn build(self) -> Result<LifecyclePolicyDetailAction, BuildError>
Consumes the builder and constructs a LifecyclePolicyDetailAction
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for LifecyclePolicyDetailActionBuilder
impl Clone for LifecyclePolicyDetailActionBuilder
source§fn clone(&self) -> LifecyclePolicyDetailActionBuilder
fn clone(&self) -> LifecyclePolicyDetailActionBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for LifecyclePolicyDetailActionBuilder
impl Default for LifecyclePolicyDetailActionBuilder
source§fn default() -> LifecyclePolicyDetailActionBuilder
fn default() -> LifecyclePolicyDetailActionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for LifecyclePolicyDetailActionBuilder
impl PartialEq for LifecyclePolicyDetailActionBuilder
source§fn eq(&self, other: &LifecyclePolicyDetailActionBuilder) -> bool
fn eq(&self, other: &LifecyclePolicyDetailActionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LifecyclePolicyDetailActionBuilder
Auto Trait Implementations§
impl Freeze for LifecyclePolicyDetailActionBuilder
impl RefUnwindSafe for LifecyclePolicyDetailActionBuilder
impl Send for LifecyclePolicyDetailActionBuilder
impl Sync for LifecyclePolicyDetailActionBuilder
impl Unpin for LifecyclePolicyDetailActionBuilder
impl UnwindSafe for LifecyclePolicyDetailActionBuilder
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.