Struct aws_sdk_securityhub::operation::create_finding_aggregator::builders::CreateFindingAggregatorInputBuilder
source · #[non_exhaustive]pub struct CreateFindingAggregatorInputBuilder { /* private fields */ }
Expand description
A builder for CreateFindingAggregatorInput
.
Implementations§
source§impl CreateFindingAggregatorInputBuilder
impl CreateFindingAggregatorInputBuilder
sourcepub fn region_linking_mode(self, input: impl Into<String>) -> Self
pub fn region_linking_mode(self, input: impl Into<String>) -> Self
Indicates whether to aggregate findings from all of the available Regions in the current partition. Also determines whether to automatically aggregate findings from new Regions as Security Hub supports them and you opt into them.
The selected option also determines how to use the Regions provided in the Regions list.
The options are as follows:
-
ALL_REGIONS
- Indicates to aggregate findings from all of the Regions where Security Hub is enabled. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them. -
ALL_REGIONS_EXCEPT_SPECIFIED
- Indicates to aggregate findings from all of the Regions where Security Hub is enabled, except for the Regions listed in theRegions
parameter. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them. -
SPECIFIED_REGIONS
- Indicates to aggregate findings only from the Regions listed in theRegions
parameter. Security Hub does not automatically aggregate findings from new Regions.
sourcepub fn set_region_linking_mode(self, input: Option<String>) -> Self
pub fn set_region_linking_mode(self, input: Option<String>) -> Self
Indicates whether to aggregate findings from all of the available Regions in the current partition. Also determines whether to automatically aggregate findings from new Regions as Security Hub supports them and you opt into them.
The selected option also determines how to use the Regions provided in the Regions list.
The options are as follows:
-
ALL_REGIONS
- Indicates to aggregate findings from all of the Regions where Security Hub is enabled. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them. -
ALL_REGIONS_EXCEPT_SPECIFIED
- Indicates to aggregate findings from all of the Regions where Security Hub is enabled, except for the Regions listed in theRegions
parameter. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them. -
SPECIFIED_REGIONS
- Indicates to aggregate findings only from the Regions listed in theRegions
parameter. Security Hub does not automatically aggregate findings from new Regions.
sourcepub fn get_region_linking_mode(&self) -> &Option<String>
pub fn get_region_linking_mode(&self) -> &Option<String>
Indicates whether to aggregate findings from all of the available Regions in the current partition. Also determines whether to automatically aggregate findings from new Regions as Security Hub supports them and you opt into them.
The selected option also determines how to use the Regions provided in the Regions list.
The options are as follows:
-
ALL_REGIONS
- Indicates to aggregate findings from all of the Regions where Security Hub is enabled. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them. -
ALL_REGIONS_EXCEPT_SPECIFIED
- Indicates to aggregate findings from all of the Regions where Security Hub is enabled, except for the Regions listed in theRegions
parameter. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them. -
SPECIFIED_REGIONS
- Indicates to aggregate findings only from the Regions listed in theRegions
parameter. Security Hub does not automatically aggregate findings from new Regions.
sourcepub fn regions(self, input: impl Into<String>) -> Self
pub fn regions(self, input: impl Into<String>) -> Self
Appends an item to regions
.
To override the contents of this collection use set_regions
.
If RegionLinkingMode
is ALL_REGIONS_EXCEPT_SPECIFIED
, then this is a space-separated list of Regions that do not aggregate findings to the aggregation Region.
If RegionLinkingMode
is SPECIFIED_REGIONS
, then this is a space-separated list of Regions that do aggregate findings to the aggregation Region.
sourcepub fn set_regions(self, input: Option<Vec<String>>) -> Self
pub fn set_regions(self, input: Option<Vec<String>>) -> Self
If RegionLinkingMode
is ALL_REGIONS_EXCEPT_SPECIFIED
, then this is a space-separated list of Regions that do not aggregate findings to the aggregation Region.
If RegionLinkingMode
is SPECIFIED_REGIONS
, then this is a space-separated list of Regions that do aggregate findings to the aggregation Region.
sourcepub fn get_regions(&self) -> &Option<Vec<String>>
pub fn get_regions(&self) -> &Option<Vec<String>>
If RegionLinkingMode
is ALL_REGIONS_EXCEPT_SPECIFIED
, then this is a space-separated list of Regions that do not aggregate findings to the aggregation Region.
If RegionLinkingMode
is SPECIFIED_REGIONS
, then this is a space-separated list of Regions that do aggregate findings to the aggregation Region.
sourcepub fn build(self) -> Result<CreateFindingAggregatorInput, BuildError>
pub fn build(self) -> Result<CreateFindingAggregatorInput, BuildError>
Consumes the builder and constructs a CreateFindingAggregatorInput
.
source§impl CreateFindingAggregatorInputBuilder
impl CreateFindingAggregatorInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateFindingAggregatorOutput, SdkError<CreateFindingAggregatorError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateFindingAggregatorOutput, SdkError<CreateFindingAggregatorError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateFindingAggregatorInputBuilder
impl Clone for CreateFindingAggregatorInputBuilder
source§fn clone(&self) -> CreateFindingAggregatorInputBuilder
fn clone(&self) -> CreateFindingAggregatorInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateFindingAggregatorInputBuilder
impl Default for CreateFindingAggregatorInputBuilder
source§fn default() -> CreateFindingAggregatorInputBuilder
fn default() -> CreateFindingAggregatorInputBuilder
source§impl PartialEq for CreateFindingAggregatorInputBuilder
impl PartialEq for CreateFindingAggregatorInputBuilder
source§fn eq(&self, other: &CreateFindingAggregatorInputBuilder) -> bool
fn eq(&self, other: &CreateFindingAggregatorInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateFindingAggregatorInputBuilder
Auto Trait Implementations§
impl Freeze for CreateFindingAggregatorInputBuilder
impl RefUnwindSafe for CreateFindingAggregatorInputBuilder
impl Send for CreateFindingAggregatorInputBuilder
impl Sync for CreateFindingAggregatorInputBuilder
impl Unpin for CreateFindingAggregatorInputBuilder
impl UnwindSafe for CreateFindingAggregatorInputBuilder
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