#[non_exhaustive]pub struct AggregateResourceIdentifierBuilder { /* private fields */ }Expand description
A builder for AggregateResourceIdentifier.
Implementations§
source§impl AggregateResourceIdentifierBuilder
impl AggregateResourceIdentifierBuilder
sourcepub fn source_account_id(self, input: impl Into<String>) -> Self
pub fn source_account_id(self, input: impl Into<String>) -> Self
The 12-digit account ID of the source account.
This field is required.sourcepub fn set_source_account_id(self, input: Option<String>) -> Self
pub fn set_source_account_id(self, input: Option<String>) -> Self
The 12-digit account ID of the source account.
sourcepub fn get_source_account_id(&self) -> &Option<String>
pub fn get_source_account_id(&self) -> &Option<String>
The 12-digit account ID of the source account.
sourcepub fn source_region(self, input: impl Into<String>) -> Self
pub fn source_region(self, input: impl Into<String>) -> Self
The source region where data is aggregated.
This field is required.sourcepub fn set_source_region(self, input: Option<String>) -> Self
pub fn set_source_region(self, input: Option<String>) -> Self
The source region where data is aggregated.
sourcepub fn get_source_region(&self) -> &Option<String>
pub fn get_source_region(&self) -> &Option<String>
The source region where data is aggregated.
sourcepub fn resource_id(self, input: impl Into<String>) -> Self
pub fn resource_id(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services resource.
This field is required.sourcepub fn set_resource_id(self, input: Option<String>) -> Self
pub fn set_resource_id(self, input: Option<String>) -> Self
The ID of the Amazon Web Services resource.
sourcepub fn get_resource_id(&self) -> &Option<String>
pub fn get_resource_id(&self) -> &Option<String>
The ID of the Amazon Web Services resource.
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The type of the Amazon Web Services resource.
This field is required.sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The type of the Amazon Web Services resource.
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The type of the Amazon Web Services resource.
sourcepub fn resource_name(self, input: impl Into<String>) -> Self
pub fn resource_name(self, input: impl Into<String>) -> Self
The name of the Amazon Web Services resource.
sourcepub fn set_resource_name(self, input: Option<String>) -> Self
pub fn set_resource_name(self, input: Option<String>) -> Self
The name of the Amazon Web Services resource.
sourcepub fn get_resource_name(&self) -> &Option<String>
pub fn get_resource_name(&self) -> &Option<String>
The name of the Amazon Web Services resource.
sourcepub fn build(self) -> Result<AggregateResourceIdentifier, BuildError>
pub fn build(self) -> Result<AggregateResourceIdentifier, BuildError>
Consumes the builder and constructs a AggregateResourceIdentifier.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AggregateResourceIdentifierBuilder
impl Clone for AggregateResourceIdentifierBuilder
source§fn clone(&self) -> AggregateResourceIdentifierBuilder
fn clone(&self) -> AggregateResourceIdentifierBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AggregateResourceIdentifierBuilder
impl Default for AggregateResourceIdentifierBuilder
source§fn default() -> AggregateResourceIdentifierBuilder
fn default() -> AggregateResourceIdentifierBuilder
source§impl PartialEq for AggregateResourceIdentifierBuilder
impl PartialEq for AggregateResourceIdentifierBuilder
source§fn eq(&self, other: &AggregateResourceIdentifierBuilder) -> bool
fn eq(&self, other: &AggregateResourceIdentifierBuilder) -> bool
self and other values to be equal, and is used
by ==.