Struct aws_sdk_dlm::types::builders::LifecyclePolicyBuilder
source · #[non_exhaustive]pub struct LifecyclePolicyBuilder { /* private fields */ }
Expand description
A builder for LifecyclePolicy
.
Implementations§
source§impl LifecyclePolicyBuilder
impl LifecyclePolicyBuilder
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.
sourcepub fn status_message(self, input: impl Into<String>) -> Self
pub fn status_message(self, input: impl Into<String>) -> Self
The description of the status.
sourcepub fn set_status_message(self, input: Option<String>) -> Self
pub fn set_status_message(self, input: Option<String>) -> Self
The description of the status.
sourcepub fn get_status_message(&self) -> &Option<String>
pub fn get_status_message(&self) -> &Option<String>
The description of the status.
sourcepub fn execution_role_arn(self, input: impl Into<String>) -> Self
pub fn execution_role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
sourcepub fn set_execution_role_arn(self, input: Option<String>) -> Self
pub fn set_execution_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
sourcepub fn get_execution_role_arn(&self) -> &Option<String>
pub fn get_execution_role_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
sourcepub fn date_created(self, input: DateTime) -> Self
pub fn date_created(self, input: DateTime) -> Self
The local date and time when the lifecycle policy was created.
sourcepub fn set_date_created(self, input: Option<DateTime>) -> Self
pub fn set_date_created(self, input: Option<DateTime>) -> Self
The local date and time when the lifecycle policy was created.
sourcepub fn get_date_created(&self) -> &Option<DateTime>
pub fn get_date_created(&self) -> &Option<DateTime>
The local date and time when the lifecycle policy was created.
sourcepub fn date_modified(self, input: DateTime) -> Self
pub fn date_modified(self, input: DateTime) -> Self
The local date and time when the lifecycle policy was last modified.
sourcepub fn set_date_modified(self, input: Option<DateTime>) -> Self
pub fn set_date_modified(self, input: Option<DateTime>) -> Self
The local date and time when the lifecycle policy was last modified.
sourcepub fn get_date_modified(&self) -> &Option<DateTime>
pub fn get_date_modified(&self) -> &Option<DateTime>
The local date and time when the lifecycle policy was last modified.
sourcepub fn policy_details(self, input: PolicyDetails) -> Self
pub fn policy_details(self, input: PolicyDetails) -> Self
The configuration of the lifecycle policy
sourcepub fn set_policy_details(self, input: Option<PolicyDetails>) -> Self
pub fn set_policy_details(self, input: Option<PolicyDetails>) -> Self
The configuration of the lifecycle policy
sourcepub fn get_policy_details(&self) -> &Option<PolicyDetails>
pub fn get_policy_details(&self) -> &Option<PolicyDetails>
The configuration of the lifecycle policy
The tags.
The tags.
sourcepub fn policy_arn(self, input: impl Into<String>) -> Self
pub fn policy_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the policy.
sourcepub fn set_policy_arn(self, input: Option<String>) -> Self
pub fn set_policy_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the policy.
sourcepub fn get_policy_arn(&self) -> &Option<String>
pub fn get_policy_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the policy.
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) -> LifecyclePolicy
pub fn build(self) -> LifecyclePolicy
Consumes the builder and constructs a LifecyclePolicy
.
Trait Implementations§
source§impl Clone for LifecyclePolicyBuilder
impl Clone for LifecyclePolicyBuilder
source§fn clone(&self) -> LifecyclePolicyBuilder
fn clone(&self) -> LifecyclePolicyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LifecyclePolicyBuilder
impl Debug for LifecyclePolicyBuilder
source§impl Default for LifecyclePolicyBuilder
impl Default for LifecyclePolicyBuilder
source§fn default() -> LifecyclePolicyBuilder
fn default() -> LifecyclePolicyBuilder
source§impl PartialEq for LifecyclePolicyBuilder
impl PartialEq for LifecyclePolicyBuilder
source§fn eq(&self, other: &LifecyclePolicyBuilder) -> bool
fn eq(&self, other: &LifecyclePolicyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LifecyclePolicyBuilder
Auto Trait Implementations§
impl Freeze for LifecyclePolicyBuilder
impl RefUnwindSafe for LifecyclePolicyBuilder
impl Send for LifecyclePolicyBuilder
impl Sync for LifecyclePolicyBuilder
impl Unpin for LifecyclePolicyBuilder
impl UnwindSafe for LifecyclePolicyBuilder
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