Package io.temporal.common
Class SearchAttributes.Builder
- java.lang.Object
-
- io.temporal.common.SearchAttributes.Builder
-
- Enclosing class:
- SearchAttributes
public static class SearchAttributes.Builder extends java.lang.Object
Builder for creating a search attribute collection.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchAttributes
build()
Build the search attribute collection.<T> SearchAttributes.Builder
set(SearchAttributeKey<T> key, T value)
Set a search attribute key and typed value, replacing previous if present.SearchAttributes.Builder
unset(SearchAttributeKey<?> key)
Unset a search attribute key.
-
-
-
Method Detail
-
set
public <T> SearchAttributes.Builder set(SearchAttributeKey<T> key, @Nonnull T value)
Set a search attribute key and typed value, replacing previous if present.
-
unset
public SearchAttributes.Builder unset(SearchAttributeKey<?> key)
Unset a search attribute key.
-
build
public SearchAttributes build()
Build the search attribute collection. This builder cannot be used after this.
-
-