Interface CreateFilterRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateFilterRequest.Builder,CreateFilterRequest>,Inspector2Request.Builder,SdkBuilder<CreateFilterRequest.Builder,CreateFilterRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateFilterRequest
public static interface CreateFilterRequest.Builder extends Inspector2Request.Builder, SdkPojo, CopyableBuilder<CreateFilterRequest.Builder,CreateFilterRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateFilterRequest.Builderaction(String action)Defines the action that is to be applied to the findings that match the filter.CreateFilterRequest.Builderaction(FilterAction action)Defines the action that is to be applied to the findings that match the filter.CreateFilterRequest.Builderdescription(String description)A description of the filter.default CreateFilterRequest.BuilderfilterCriteria(Consumer<FilterCriteria.Builder> filterCriteria)Defines the criteria to be used in the filter for querying findings.CreateFilterRequest.BuilderfilterCriteria(FilterCriteria filterCriteria)Defines the criteria to be used in the filter for querying findings.CreateFilterRequest.Buildername(String name)The name of the filter.CreateFilterRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateFilterRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateFilterRequest.Builderreason(String reason)The reason for creating the filter.CreateFilterRequest.Buildertags(Map<String,String> tags)A list of tags for the filter.-
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.services.inspector2.model.Inspector2Request.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
action
CreateFilterRequest.Builder action(String action)
Defines the action that is to be applied to the findings that match the filter.
- Parameters:
action- Defines the action that is to be applied to the findings that match the filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FilterAction,FilterAction
-
action
CreateFilterRequest.Builder action(FilterAction action)
Defines the action that is to be applied to the findings that match the filter.
- Parameters:
action- Defines the action that is to be applied to the findings that match the filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FilterAction,FilterAction
-
description
CreateFilterRequest.Builder description(String description)
A description of the filter.
- Parameters:
description- A description of the filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterCriteria
CreateFilterRequest.Builder filterCriteria(FilterCriteria filterCriteria)
Defines the criteria to be used in the filter for querying findings.
- Parameters:
filterCriteria- Defines the criteria to be used in the filter for querying findings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterCriteria
default CreateFilterRequest.Builder filterCriteria(Consumer<FilterCriteria.Builder> filterCriteria)
Defines the criteria to be used in the filter for querying findings.
This is a convenience method that creates an instance of theFilterCriteria.Builderavoiding the need to create one manually viaFilterCriteria.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilterCriteria(FilterCriteria).- Parameters:
filterCriteria- a consumer that will call methods onFilterCriteria.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
filterCriteria(FilterCriteria)
-
name
CreateFilterRequest.Builder name(String name)
The name of the filter. Minimum length of 3. Maximum length of 64. Valid characters include alphanumeric characters, dot (.), underscore (_), and dash (-). Spaces are not allowed.
- Parameters:
name- The name of the filter. Minimum length of 3. Maximum length of 64. Valid characters include alphanumeric characters, dot (.), underscore (_), and dash (-). Spaces are not allowed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reason
CreateFilterRequest.Builder reason(String reason)
The reason for creating the filter.
- Parameters:
reason- The reason for creating the filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateFilterRequest.Builder tags(Map<String,String> tags)
A list of tags for the filter.
- Parameters:
tags- A list of tags for the filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateFilterRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateFilterRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-