Struct aws_sdk_ssm::types::builders::InventoryGroupBuilder
source · #[non_exhaustive]pub struct InventoryGroupBuilder { /* private fields */ }
Expand description
A builder for InventoryGroup
.
Implementations§
source§impl InventoryGroupBuilder
impl InventoryGroupBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the group.
This field is required.sourcepub fn filters(self, input: InventoryFilter) -> Self
pub fn filters(self, input: InventoryFilter) -> Self
Appends an item to filters
.
To override the contents of this collection use set_filters
.
Filters define the criteria for the group. The matchingCount
field displays the number of resources that match the criteria. The notMatchingCount
field displays the number of resources that don't match the criteria.
sourcepub fn set_filters(self, input: Option<Vec<InventoryFilter>>) -> Self
pub fn set_filters(self, input: Option<Vec<InventoryFilter>>) -> Self
Filters define the criteria for the group. The matchingCount
field displays the number of resources that match the criteria. The notMatchingCount
field displays the number of resources that don't match the criteria.
sourcepub fn get_filters(&self) -> &Option<Vec<InventoryFilter>>
pub fn get_filters(&self) -> &Option<Vec<InventoryFilter>>
Filters define the criteria for the group. The matchingCount
field displays the number of resources that match the criteria. The notMatchingCount
field displays the number of resources that don't match the criteria.
sourcepub fn build(self) -> Result<InventoryGroup, BuildError>
pub fn build(self) -> Result<InventoryGroup, BuildError>
Consumes the builder and constructs a InventoryGroup
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for InventoryGroupBuilder
impl Clone for InventoryGroupBuilder
source§fn clone(&self) -> InventoryGroupBuilder
fn clone(&self) -> InventoryGroupBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InventoryGroupBuilder
impl Debug for InventoryGroupBuilder
source§impl Default for InventoryGroupBuilder
impl Default for InventoryGroupBuilder
source§fn default() -> InventoryGroupBuilder
fn default() -> InventoryGroupBuilder
source§impl PartialEq for InventoryGroupBuilder
impl PartialEq for InventoryGroupBuilder
source§fn eq(&self, other: &InventoryGroupBuilder) -> bool
fn eq(&self, other: &InventoryGroupBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InventoryGroupBuilder
Auto Trait Implementations§
impl Freeze for InventoryGroupBuilder
impl RefUnwindSafe for InventoryGroupBuilder
impl Send for InventoryGroupBuilder
impl Sync for InventoryGroupBuilder
impl Unpin for InventoryGroupBuilder
impl UnwindSafe for InventoryGroupBuilder
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