Struct aws_sdk_backup::types::builders::ConditionBuilder
source · #[non_exhaustive]pub struct ConditionBuilder { /* private fields */ }
Expand description
A builder for Condition
.
Implementations§
source§impl ConditionBuilder
impl ConditionBuilder
sourcepub fn condition_type(self, input: ConditionType) -> Self
pub fn condition_type(self, input: ConditionType) -> Self
An operation applied to a key-value pair used to assign resources to your backup plan. Condition only supports StringEquals
. For more flexible assignment options, including StringLike
and the ability to exclude resources from your backup plan, use Conditions
(with an "s" on the end) for your BackupSelection
.
sourcepub fn set_condition_type(self, input: Option<ConditionType>) -> Self
pub fn set_condition_type(self, input: Option<ConditionType>) -> Self
An operation applied to a key-value pair used to assign resources to your backup plan. Condition only supports StringEquals
. For more flexible assignment options, including StringLike
and the ability to exclude resources from your backup plan, use Conditions
(with an "s" on the end) for your BackupSelection
.
sourcepub fn get_condition_type(&self) -> &Option<ConditionType>
pub fn get_condition_type(&self) -> &Option<ConditionType>
An operation applied to a key-value pair used to assign resources to your backup plan. Condition only supports StringEquals
. For more flexible assignment options, including StringLike
and the ability to exclude resources from your backup plan, use Conditions
(with an "s" on the end) for your BackupSelection
.
sourcepub fn condition_key(self, input: impl Into<String>) -> Self
pub fn condition_key(self, input: impl Into<String>) -> Self
The key in a key-value pair. For example, in the tag Department: Accounting
, Department
is the key.
sourcepub fn set_condition_key(self, input: Option<String>) -> Self
pub fn set_condition_key(self, input: Option<String>) -> Self
The key in a key-value pair. For example, in the tag Department: Accounting
, Department
is the key.
sourcepub fn get_condition_key(&self) -> &Option<String>
pub fn get_condition_key(&self) -> &Option<String>
The key in a key-value pair. For example, in the tag Department: Accounting
, Department
is the key.
sourcepub fn condition_value(self, input: impl Into<String>) -> Self
pub fn condition_value(self, input: impl Into<String>) -> Self
The value in a key-value pair. For example, in the tag Department: Accounting
, Accounting
is the value.
sourcepub fn set_condition_value(self, input: Option<String>) -> Self
pub fn set_condition_value(self, input: Option<String>) -> Self
The value in a key-value pair. For example, in the tag Department: Accounting
, Accounting
is the value.
sourcepub fn get_condition_value(&self) -> &Option<String>
pub fn get_condition_value(&self) -> &Option<String>
The value in a key-value pair. For example, in the tag Department: Accounting
, Accounting
is the value.
Trait Implementations§
source§impl Clone for ConditionBuilder
impl Clone for ConditionBuilder
source§fn clone(&self) -> ConditionBuilder
fn clone(&self) -> ConditionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConditionBuilder
impl Debug for ConditionBuilder
source§impl Default for ConditionBuilder
impl Default for ConditionBuilder
source§fn default() -> ConditionBuilder
fn default() -> ConditionBuilder
source§impl PartialEq for ConditionBuilder
impl PartialEq for ConditionBuilder
source§fn eq(&self, other: &ConditionBuilder) -> bool
fn eq(&self, other: &ConditionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConditionBuilder
Auto Trait Implementations§
impl Freeze for ConditionBuilder
impl RefUnwindSafe for ConditionBuilder
impl Send for ConditionBuilder
impl Sync for ConditionBuilder
impl Unpin for ConditionBuilder
impl UnwindSafe for ConditionBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
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>
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