@Beta public enum UpdateStrategy extends Enum<UpdateStrategy>
Enum Constant and Description |
---|
MODIFY_WITH_PATCH
Request to update the entity is sent with the HTTP method PATCH and its payload contains the changed fields only.
|
REPLACE_WITH_PUT
Request to update the entity is sent with the HTTP method PUT and its payload contains all fields of the entity,
regardless which of them have been changed
|
Modifier and Type | Method and Description |
---|---|
static UpdateStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UpdateStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UpdateStrategy REPLACE_WITH_PUT
public static final UpdateStrategy MODIFY_WITH_PATCH
public static UpdateStrategy[] values()
for (UpdateStrategy c : UpdateStrategy.values()) System.out.println(c);
public static UpdateStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2020 SAP SE. All rights reserved.