Package io.temporal.common
Class SearchAttributeUpdate<T>
- java.lang.Object
-
- io.temporal.common.SearchAttributeUpdate<T>
-
public class SearchAttributeUpdate<T> extends java.lang.Object
Representation of a search attribute update inside a workflow. Updates are usually created viaSearchAttributeKey.valueSet(T)
orSearchAttributeKey.valueUnset()
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchAttributeKey<T>
getKey()
Get the key to set/unset.java.util.Optional<T>
getValue()
Get the value to set, or null for unset.static <T> SearchAttributeUpdate<T>
valueSet(SearchAttributeKey<T> key, T value)
Create an update for setting the search attribute key to a value.static <T> SearchAttributeUpdate<T>
valueUnset(SearchAttributeKey<T> key)
Create an update for unsetting a search attribute key.
-
-
-
Method Detail
-
valueSet
public static <T> SearchAttributeUpdate<T> valueSet(SearchAttributeKey<T> key, @Nonnull T value)
Create an update for setting the search attribute key to a value. Most users will preferSearchAttributeKey.valueSet(T)
.
-
valueUnset
public static <T> SearchAttributeUpdate<T> valueUnset(SearchAttributeKey<T> key)
Create an update for unsetting a search attribute key. Most users will preferSearchAttributeKey.valueUnset()
.
-
getKey
public SearchAttributeKey<T> getKey()
Get the key to set/unset.
-
getValue
public java.util.Optional<T> getValue()
Get the value to set, or null for unset.
-
-