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 ==
.