Class ModifyServiceStateRequest

java.lang.Object
dev.restate.admin.model.ModifyServiceStateRequest

public class ModifyServiceStateRequest extends Object
ModifyServiceStateRequest
  • Field Details

  • Constructor Details

    • ModifyServiceStateRequest

      public ModifyServiceStateRequest()
  • Method Details

    • version

      public ModifyServiceStateRequest version(String version)
    • getVersion

      @Nullable public String getVersion()
      If set, the latest version of the state is compared with this value and the operation will fail when the versions differ.
      Returns:
      version
    • setVersion

      public void setVersion(String version)
    • objectKey

      public ModifyServiceStateRequest objectKey(String objectKey)
    • getObjectKey

      @Nonnull public String getObjectKey()
      To what virtual object key to apply this change
      Returns:
      objectKey
    • setObjectKey

      public void setObjectKey(String objectKey)
    • newState

      public ModifyServiceStateRequest newState(Map<String,List<Integer>> newState)
    • putNewStateItem

      public ModifyServiceStateRequest putNewStateItem(String key, List<Integer> newStateItem)
    • getNewState

      @Nonnull public Map<String,List<Integer>> getNewState()
      The new state to replace the previous state with
      Returns:
      newState
    • setNewState

      public void setNewState(Map<String,List<Integer>> newState)
    • equals

      public boolean equals(Object o)
      Return true if this ModifyServiceStateRequest object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string