Struct aws_sdk_config::types::builders::GroupedResourceCountBuilder
source · #[non_exhaustive]pub struct GroupedResourceCountBuilder { /* private fields */ }Expand description
A builder for GroupedResourceCount.
Implementations§
source§impl GroupedResourceCountBuilder
impl GroupedResourceCountBuilder
sourcepub fn group_name(self, input: impl Into<String>) -> Self
pub fn group_name(self, input: impl Into<String>) -> Self
The name of the group that can be region, account ID, or resource type. For example, region1, region2 if the region was chosen as GroupByKey.
sourcepub fn set_group_name(self, input: Option<String>) -> Self
pub fn set_group_name(self, input: Option<String>) -> Self
The name of the group that can be region, account ID, or resource type. For example, region1, region2 if the region was chosen as GroupByKey.
sourcepub fn get_group_name(&self) -> &Option<String>
pub fn get_group_name(&self) -> &Option<String>
The name of the group that can be region, account ID, or resource type. For example, region1, region2 if the region was chosen as GroupByKey.
sourcepub fn resource_count(self, input: i64) -> Self
pub fn resource_count(self, input: i64) -> Self
The number of resources in the group.
This field is required.sourcepub fn set_resource_count(self, input: Option<i64>) -> Self
pub fn set_resource_count(self, input: Option<i64>) -> Self
The number of resources in the group.
sourcepub fn get_resource_count(&self) -> &Option<i64>
pub fn get_resource_count(&self) -> &Option<i64>
The number of resources in the group.
sourcepub fn build(self) -> Result<GroupedResourceCount, BuildError>
pub fn build(self) -> Result<GroupedResourceCount, BuildError>
Consumes the builder and constructs a GroupedResourceCount.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GroupedResourceCountBuilder
impl Clone for GroupedResourceCountBuilder
source§fn clone(&self) -> GroupedResourceCountBuilder
fn clone(&self) -> GroupedResourceCountBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for GroupedResourceCountBuilder
impl Debug for GroupedResourceCountBuilder
source§impl Default for GroupedResourceCountBuilder
impl Default for GroupedResourceCountBuilder
source§fn default() -> GroupedResourceCountBuilder
fn default() -> GroupedResourceCountBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for GroupedResourceCountBuilder
impl PartialEq for GroupedResourceCountBuilder
source§fn eq(&self, other: &GroupedResourceCountBuilder) -> bool
fn eq(&self, other: &GroupedResourceCountBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GroupedResourceCountBuilder
Auto Trait Implementations§
impl Freeze for GroupedResourceCountBuilder
impl RefUnwindSafe for GroupedResourceCountBuilder
impl Send for GroupedResourceCountBuilder
impl Sync for GroupedResourceCountBuilder
impl Unpin for GroupedResourceCountBuilder
impl UnwindSafe for GroupedResourceCountBuilder
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.