Interface SearchExpression.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<SearchExpression.Builder,SearchExpression>
,SdkBuilder<SearchExpression.Builder,SearchExpression>
,SdkPojo
- Enclosing class:
- SearchExpression
public static interface SearchExpression.Builder extends SdkPojo, CopyableBuilder<SearchExpression.Builder,SearchExpression>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SearchExpression.Builder
filters(Collection<Filter> filters)
A list of filter objects.SearchExpression.Builder
filters(Consumer<Filter.Builder>... filters)
A list of filter objects.SearchExpression.Builder
filters(Filter... filters)
A list of filter objects.SearchExpression.Builder
nestedFilters(Collection<NestedFilters> nestedFilters)
A list of nested filter objects.SearchExpression.Builder
nestedFilters(Consumer<NestedFilters.Builder>... nestedFilters)
A list of nested filter objects.SearchExpression.Builder
nestedFilters(NestedFilters... nestedFilters)
A list of nested filter objects.SearchExpression.Builder
operator(String operator)
A Boolean operator used to evaluate the search expression.SearchExpression.Builder
operator(BooleanOperator operator)
A Boolean operator used to evaluate the search expression.SearchExpression.Builder
subExpressions(Collection<SearchExpression> subExpressions)
A list of search expression objects.SearchExpression.Builder
subExpressions(Consumer<SearchExpression.Builder>... subExpressions)
A list of search expression objects.SearchExpression.Builder
subExpressions(SearchExpression... subExpressions)
A list of search expression objects.-
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
-
-
-
-
Method Detail
-
filters
SearchExpression.Builder filters(Collection<Filter> filters)
A list of filter objects.
- Parameters:
filters
- A list of filter objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
SearchExpression.Builder filters(Filter... filters)
A list of filter objects.
- Parameters:
filters
- A list of filter objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
SearchExpression.Builder filters(Consumer<Filter.Builder>... filters)
A list of filter objects.
This is a convenience method that creates an instance of theFilter.Builder
avoiding the need to create one manually viaFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#filters(List
.) - Parameters:
filters
- a consumer that will call methods onFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#filters(java.util.Collection
)
-
nestedFilters
SearchExpression.Builder nestedFilters(Collection<NestedFilters> nestedFilters)
A list of nested filter objects.
- Parameters:
nestedFilters
- A list of nested filter objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nestedFilters
SearchExpression.Builder nestedFilters(NestedFilters... nestedFilters)
A list of nested filter objects.
- Parameters:
nestedFilters
- A list of nested filter objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nestedFilters
SearchExpression.Builder nestedFilters(Consumer<NestedFilters.Builder>... nestedFilters)
A list of nested filter objects.
This is a convenience method that creates an instance of theNestedFilters.Builder
avoiding the need to create one manually viaNestedFilters.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#nestedFilters(List
.) - Parameters:
nestedFilters
- a consumer that will call methods onNestedFilters.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#nestedFilters(java.util.Collection
)
-
subExpressions
SearchExpression.Builder subExpressions(Collection<SearchExpression> subExpressions)
A list of search expression objects.
- Parameters:
subExpressions
- A list of search expression objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subExpressions
SearchExpression.Builder subExpressions(SearchExpression... subExpressions)
A list of search expression objects.
- Parameters:
subExpressions
- A list of search expression objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subExpressions
SearchExpression.Builder subExpressions(Consumer<SearchExpression.Builder>... subExpressions)
A list of search expression objects.
This is a convenience method that creates an instance of theSearchExpression.Builder
avoiding the need to create one manually viaSearchExpression.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#subExpressions(List
.) - Parameters:
subExpressions
- a consumer that will call methods onSearchExpression.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#subExpressions(java.util.Collection
)
-
operator
SearchExpression.Builder operator(String operator)
A Boolean operator used to evaluate the search expression. If you want every conditional statement in all lists to be satisfied for the entire search expression to be true, specify
And
. If only a single conditional statement needs to be true for the entire search expression to be true, specifyOr
. The default value isAnd
.- Parameters:
operator
- A Boolean operator used to evaluate the search expression. If you want every conditional statement in all lists to be satisfied for the entire search expression to be true, specifyAnd
. If only a single conditional statement needs to be true for the entire search expression to be true, specifyOr
. The default value isAnd
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
BooleanOperator
,BooleanOperator
-
operator
SearchExpression.Builder operator(BooleanOperator operator)
A Boolean operator used to evaluate the search expression. If you want every conditional statement in all lists to be satisfied for the entire search expression to be true, specify
And
. If only a single conditional statement needs to be true for the entire search expression to be true, specifyOr
. The default value isAnd
.- Parameters:
operator
- A Boolean operator used to evaluate the search expression. If you want every conditional statement in all lists to be satisfied for the entire search expression to be true, specifyAnd
. If only a single conditional statement needs to be true for the entire search expression to be true, specifyOr
. The default value isAnd
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
BooleanOperator
,BooleanOperator
-
-