Struct aws_sdk_backup::types::builders::ControlScopeBuilder
source · #[non_exhaustive]pub struct ControlScopeBuilder { /* private fields */ }
Expand description
A builder for ControlScope
.
Implementations§
source§impl ControlScopeBuilder
impl ControlScopeBuilder
sourcepub fn compliance_resource_ids(self, input: impl Into<String>) -> Self
pub fn compliance_resource_ids(self, input: impl Into<String>) -> Self
Appends an item to compliance_resource_ids
.
To override the contents of this collection use set_compliance_resource_ids
.
The ID of the only Amazon Web Services resource that you want your control scope to contain.
sourcepub fn set_compliance_resource_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_compliance_resource_ids(self, input: Option<Vec<String>>) -> Self
The ID of the only Amazon Web Services resource that you want your control scope to contain.
sourcepub fn get_compliance_resource_ids(&self) -> &Option<Vec<String>>
pub fn get_compliance_resource_ids(&self) -> &Option<Vec<String>>
The ID of the only Amazon Web Services resource that you want your control scope to contain.
sourcepub fn compliance_resource_types(self, input: impl Into<String>) -> Self
pub fn compliance_resource_types(self, input: impl Into<String>) -> Self
Appends an item to compliance_resource_types
.
To override the contents of this collection use set_compliance_resource_types
.
Describes whether the control scope includes one or more types of resources, such as EFS
or RDS
.
sourcepub fn set_compliance_resource_types(self, input: Option<Vec<String>>) -> Self
pub fn set_compliance_resource_types(self, input: Option<Vec<String>>) -> Self
Describes whether the control scope includes one or more types of resources, such as EFS
or RDS
.
sourcepub fn get_compliance_resource_types(&self) -> &Option<Vec<String>>
pub fn get_compliance_resource_types(&self) -> &Option<Vec<String>>
Describes whether the control scope includes one or more types of resources, such as EFS
or RDS
.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tag key-value pair applied to those Amazon Web Services resources that you want to trigger an evaluation for a rule. A maximum of one key-value pair can be provided. The tag value is optional, but it cannot be an empty string. The structure to assign a tag is: \[{"Key":"string","Value":"string"}\]
.
The tag key-value pair applied to those Amazon Web Services resources that you want to trigger an evaluation for a rule. A maximum of one key-value pair can be provided. The tag value is optional, but it cannot be an empty string. The structure to assign a tag is: \[{"Key":"string","Value":"string"}\]
.
The tag key-value pair applied to those Amazon Web Services resources that you want to trigger an evaluation for a rule. A maximum of one key-value pair can be provided. The tag value is optional, but it cannot be an empty string. The structure to assign a tag is: \[{"Key":"string","Value":"string"}\]
.
sourcepub fn build(self) -> ControlScope
pub fn build(self) -> ControlScope
Consumes the builder and constructs a ControlScope
.
Trait Implementations§
source§impl Clone for ControlScopeBuilder
impl Clone for ControlScopeBuilder
source§fn clone(&self) -> ControlScopeBuilder
fn clone(&self) -> ControlScopeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ControlScopeBuilder
impl Debug for ControlScopeBuilder
source§impl Default for ControlScopeBuilder
impl Default for ControlScopeBuilder
source§fn default() -> ControlScopeBuilder
fn default() -> ControlScopeBuilder
source§impl PartialEq for ControlScopeBuilder
impl PartialEq for ControlScopeBuilder
source§fn eq(&self, other: &ControlScopeBuilder) -> bool
fn eq(&self, other: &ControlScopeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ControlScopeBuilder
Auto Trait Implementations§
impl Freeze for ControlScopeBuilder
impl RefUnwindSafe for ControlScopeBuilder
impl Send for ControlScopeBuilder
impl Sync for ControlScopeBuilder
impl Unpin for ControlScopeBuilder
impl UnwindSafe for ControlScopeBuilder
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