Class ActivityOptionsUpdate.ActivityOptionsKey<T>

java.lang.Object
io.temporal.client.ActivityOptionsUpdate.ActivityOptionsKey<T>
Type Parameters:
T - type of the option's value
Enclosing class:
ActivityOptionsUpdate<T>

@Experimental public static final class ActivityOptionsUpdate.ActivityOptionsKey<T> extends Object
Typed key for one updatable activity option. Each key knows both its field-mask path and how to write its value onto the request.

Use the keys on ActivityOptionsUpdate rather than constructing these directly.

  • Method Details

    • getPath

      public String getPath()
      Field-mask path this key updates.
    • getValueType

      public Class<T> getValueType()
      Type of this key's value.
    • set

      public ActivityOptionsUpdate<T> set(@Nonnull T value)
      Create an update that sets this option to the given value.
    • unset

      public ActivityOptionsUpdate<T> unset()
      Create an update that clears this option server-side.
    • toString

      public String toString()
      Overrides:
      toString in class Object