Interface CreateInsightRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateInsightRequest.Builder,
,CreateInsightRequest> SdkBuilder<CreateInsightRequest.Builder,
,CreateInsightRequest> SdkPojo
,SdkRequest.Builder
,SecurityHubRequest.Builder
- Enclosing class:
CreateInsightRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateInsightRequest.Builder
filters
(Consumer<AwsSecurityFindingFilters.Builder> filters) One or more attributes used to filter the findings included in the insight.filters
(AwsSecurityFindingFilters filters) One or more attributes used to filter the findings included in the insight.groupByAttribute
(String groupByAttribute) The attribute used to group the findings for the insight.The name of the custom insight to create.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.services.securityhub.model.SecurityHubRequest.Builder
build
-
Method Details
-
name
The name of the custom insight to create.
- Parameters:
name
- The name of the custom insight to create.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
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.
- Parameters:
filters
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
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 is a convenience method that creates an instance of theAwsSecurityFindingFilters.Builder
avoiding the need to create one manually viaAwsSecurityFindingFilters.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilters(AwsSecurityFindingFilters)
.- Parameters:
filters
- a consumer that will call methods onAwsSecurityFindingFilters.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
groupByAttribute
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.
- Parameters:
groupByAttribute
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateInsightRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateInsightRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-