Interface CreateFilterRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateFilterRequest.Builder,
,CreateFilterRequest> PersonalizeRequest.Builder
,SdkBuilder<CreateFilterRequest.Builder,
,CreateFilterRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateFilterRequest
public static interface CreateFilterRequest.Builder
extends PersonalizeRequest.Builder, SdkPojo, CopyableBuilder<CreateFilterRequest.Builder,CreateFilterRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondatasetGroupArn
(String datasetGroupArn) The ARN of the dataset group that the filter will belong to.filterExpression
(String filterExpression) The filter expression defines which items are included or excluded from recommendations.The name of the filter to create.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.tags
(Collection<Tag> tags) A list of tags to apply to the filter.tags
(Consumer<Tag.Builder>... tags) A list of tags to apply to the filter.A list of tags to apply to 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.personalize.model.PersonalizeRequest.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 Details
-
name
The name of the filter to create.
- Parameters:
name
- The name of the filter to create.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datasetGroupArn
The ARN of the dataset group that the filter will belong to.
- Parameters:
datasetGroupArn
- The ARN of the dataset group that the filter will belong to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterExpression
The filter expression defines which items are included or excluded from recommendations. Filter expression must follow specific format rules. For information about filter expression structure and syntax, see Filter expressions.
- Parameters:
filterExpression
- The filter expression defines which items are included or excluded from recommendations. Filter expression must follow specific format rules. For information about filter expression structure and syntax, see Filter expressions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags to apply to the filter.
- Parameters:
tags
- A list of tags to apply to the filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags to apply to the filter.
- Parameters:
tags
- A list of tags to apply to the filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags to apply to the filter.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateFilterRequest.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
CreateFilterRequest.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.
-