Struct aws_sdk_dlm::types::builders::LifecyclePolicySummaryBuilder
source · #[non_exhaustive]pub struct LifecyclePolicySummaryBuilder { /* private fields */ }
Expand description
A builder for LifecyclePolicySummary
.
Implementations§
source§impl LifecyclePolicySummaryBuilder
impl LifecyclePolicySummaryBuilder
sourcepub fn policy_id(self, input: impl Into<String>) -> Self
pub fn policy_id(self, input: impl Into<String>) -> Self
The identifier of the lifecycle policy.
sourcepub fn set_policy_id(self, input: Option<String>) -> Self
pub fn set_policy_id(self, input: Option<String>) -> Self
The identifier of the lifecycle policy.
sourcepub fn get_policy_id(&self) -> &Option<String>
pub fn get_policy_id(&self) -> &Option<String>
The identifier of the lifecycle policy.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the lifecycle policy.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the lifecycle policy.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the lifecycle policy.
sourcepub fn state(self, input: GettablePolicyStateValues) -> Self
pub fn state(self, input: GettablePolicyStateValues) -> Self
The activation state of the lifecycle policy.
sourcepub fn set_state(self, input: Option<GettablePolicyStateValues>) -> Self
pub fn set_state(self, input: Option<GettablePolicyStateValues>) -> Self
The activation state of the lifecycle policy.
sourcepub fn get_state(&self) -> &Option<GettablePolicyStateValues>
pub fn get_state(&self) -> &Option<GettablePolicyStateValues>
The activation state of the lifecycle policy.
The tags.
The tags.
sourcepub fn policy_type(self, input: PolicyTypeValues) -> Self
pub fn policy_type(self, input: PolicyTypeValues) -> Self
The type of policy. EBS_SNAPSHOT_MANAGEMENT
indicates that the policy manages the lifecycle of Amazon EBS snapshots. IMAGE_MANAGEMENT
indicates that the policy manages the lifecycle of EBS-backed AMIs. EVENT_BASED_POLICY
indicates that the policy automates cross-account snapshot copies for snapshots that are shared with your account.
sourcepub fn set_policy_type(self, input: Option<PolicyTypeValues>) -> Self
pub fn set_policy_type(self, input: Option<PolicyTypeValues>) -> Self
The type of policy. EBS_SNAPSHOT_MANAGEMENT
indicates that the policy manages the lifecycle of Amazon EBS snapshots. IMAGE_MANAGEMENT
indicates that the policy manages the lifecycle of EBS-backed AMIs. EVENT_BASED_POLICY
indicates that the policy automates cross-account snapshot copies for snapshots that are shared with your account.
sourcepub fn get_policy_type(&self) -> &Option<PolicyTypeValues>
pub fn get_policy_type(&self) -> &Option<PolicyTypeValues>
The type of policy. EBS_SNAPSHOT_MANAGEMENT
indicates that the policy manages the lifecycle of Amazon EBS snapshots. IMAGE_MANAGEMENT
indicates that the policy manages the lifecycle of EBS-backed AMIs. EVENT_BASED_POLICY
indicates that the policy automates cross-account snapshot copies for snapshots that are shared with your account.
sourcepub fn default_policy(self, input: bool) -> Self
pub fn default_policy(self, input: bool) -> Self
[Default policies only] The type of default policy. Values include:
-
VOLUME
- Default policy for EBS snapshots -
INSTANCE
- Default policy for EBS-backed AMIs
sourcepub fn set_default_policy(self, input: Option<bool>) -> Self
pub fn set_default_policy(self, input: Option<bool>) -> Self
[Default policies only] The type of default policy. Values include:
-
VOLUME
- Default policy for EBS snapshots -
INSTANCE
- Default policy for EBS-backed AMIs
sourcepub fn get_default_policy(&self) -> &Option<bool>
pub fn get_default_policy(&self) -> &Option<bool>
[Default policies only] The type of default policy. Values include:
-
VOLUME
- Default policy for EBS snapshots -
INSTANCE
- Default policy for EBS-backed AMIs
sourcepub fn build(self) -> LifecyclePolicySummary
pub fn build(self) -> LifecyclePolicySummary
Consumes the builder and constructs a LifecyclePolicySummary
.
Trait Implementations§
source§impl Clone for LifecyclePolicySummaryBuilder
impl Clone for LifecyclePolicySummaryBuilder
source§fn clone(&self) -> LifecyclePolicySummaryBuilder
fn clone(&self) -> LifecyclePolicySummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for LifecyclePolicySummaryBuilder
impl Default for LifecyclePolicySummaryBuilder
source§fn default() -> LifecyclePolicySummaryBuilder
fn default() -> LifecyclePolicySummaryBuilder
source§impl PartialEq for LifecyclePolicySummaryBuilder
impl PartialEq for LifecyclePolicySummaryBuilder
source§fn eq(&self, other: &LifecyclePolicySummaryBuilder) -> bool
fn eq(&self, other: &LifecyclePolicySummaryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LifecyclePolicySummaryBuilder
Auto Trait Implementations§
impl Freeze for LifecyclePolicySummaryBuilder
impl RefUnwindSafe for LifecyclePolicySummaryBuilder
impl Send for LifecyclePolicySummaryBuilder
impl Sync for LifecyclePolicySummaryBuilder
impl Unpin for LifecyclePolicySummaryBuilder
impl UnwindSafe for LifecyclePolicySummaryBuilder
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> 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