#[non_exhaustive]pub struct CreateInsightInputBuilder { /* private fields */ }
Expand description
A builder for CreateInsightInput
.
Implementations§
source§impl CreateInsightInputBuilder
impl CreateInsightInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the custom insight to create.
This field is required.sourcepub fn filters(self, input: AwsSecurityFindingFilters) -> Self
pub fn filters(self, input: AwsSecurityFindingFilters) -> Self
One or more attributes used to filter the findings included in the insight. The insight only includes findings that match the criteria defined in the filters.
This field is required.sourcepub fn set_filters(self, input: Option<AwsSecurityFindingFilters>) -> Self
pub fn set_filters(self, input: Option<AwsSecurityFindingFilters>) -> Self
One or more attributes used to filter the findings included in the insight. The insight only includes findings that match the criteria defined in the filters.
sourcepub fn get_filters(&self) -> &Option<AwsSecurityFindingFilters>
pub fn get_filters(&self) -> &Option<AwsSecurityFindingFilters>
One or more attributes used to filter the findings included in the insight. The insight only includes findings that match the criteria defined in the filters.
sourcepub fn group_by_attribute(self, input: impl Into<String>) -> Self
pub fn group_by_attribute(self, input: impl Into<String>) -> Self
The attribute used to group the findings for the insight. The grouping attribute identifies the type of item that the insight applies to. For example, if an insight is grouped by resource identifier, then the insight produces a list of resource identifiers.
This field is required.sourcepub fn set_group_by_attribute(self, input: Option<String>) -> Self
pub fn set_group_by_attribute(self, input: Option<String>) -> Self
The attribute used to group the findings for the insight. The grouping attribute identifies the type of item that the insight applies to. For example, if an insight is grouped by resource identifier, then the insight produces a list of resource identifiers.
sourcepub fn get_group_by_attribute(&self) -> &Option<String>
pub fn get_group_by_attribute(&self) -> &Option<String>
The attribute used to group the findings for the insight. The grouping attribute identifies the type of item that the insight applies to. For example, if an insight is grouped by resource identifier, then the insight produces a list of resource identifiers.
sourcepub fn build(self) -> Result<CreateInsightInput, BuildError>
pub fn build(self) -> Result<CreateInsightInput, BuildError>
Consumes the builder and constructs a CreateInsightInput
.
source§impl CreateInsightInputBuilder
impl CreateInsightInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateInsightOutput, SdkError<CreateInsightError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateInsightOutput, SdkError<CreateInsightError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateInsightInputBuilder
impl Clone for CreateInsightInputBuilder
source§fn clone(&self) -> CreateInsightInputBuilder
fn clone(&self) -> CreateInsightInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateInsightInputBuilder
impl Debug for CreateInsightInputBuilder
source§impl Default for CreateInsightInputBuilder
impl Default for CreateInsightInputBuilder
source§fn default() -> CreateInsightInputBuilder
fn default() -> CreateInsightInputBuilder
source§impl PartialEq for CreateInsightInputBuilder
impl PartialEq for CreateInsightInputBuilder
source§fn eq(&self, other: &CreateInsightInputBuilder) -> bool
fn eq(&self, other: &CreateInsightInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateInsightInputBuilder
Auto Trait Implementations§
impl Freeze for CreateInsightInputBuilder
impl RefUnwindSafe for CreateInsightInputBuilder
impl Send for CreateInsightInputBuilder
impl Sync for CreateInsightInputBuilder
impl Unpin for CreateInsightInputBuilder
impl UnwindSafe for CreateInsightInputBuilder
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