Package dev.restate.admin.model
Class ModifyServiceStateRequest
java.lang.Object
dev.restate.admin.model.ModifyServiceStateRequest
ModifyServiceStateRequest
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return true if this ModifyServiceStateRequest object is equal to o.The new state to replace the previous state withTo what virtual object key to apply this changeIf set, the latest version of the state is compared with this value and the operation will fail when the versions differ.int
hashCode()
putNewStateItem
(String key, List<Integer> newStateItem) void
setNewState
(Map<String, List<Integer>> newState) void
setObjectKey
(String objectKey) void
setVersion
(String version) toString()
Convert the instance into URL query string.toUrlQueryString
(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_VERSION
- See Also:
-
JSON_PROPERTY_OBJECT_KEY
- See Also:
-
JSON_PROPERTY_NEW_STATE
- See Also:
-
-
Constructor Details
-
ModifyServiceStateRequest
public ModifyServiceStateRequest()
-
-
Method Details
-
version
-
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
-
objectKey
-
getObjectKey
To what virtual object key to apply this change- Returns:
- objectKey
-
setObjectKey
-
newState
-
putNewStateItem
-
getNewState
The new state to replace the previous state with- Returns:
- newState
-
setNewState
-
equals
Return true if this ModifyServiceStateRequest object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix
- prefix of the query string- Returns:
- URL query string
-