@Generated(value="io.sphere.sdk.annotations.processors.generators.UpdateActionsGenerator", comments="Generated from: io.sphere.sdk.types.Type") public final class ChangeKey extends UpdateActionImpl<Type>
key
property of a Type
.
withUpdateableType(client(), type -> { final String key = randomKey(); final Type updatedType = client().executeBlocking(TypeUpdateCommand.of(type, ChangeKey.of(key))); assertThat(updatedType.getKey()).isEqualTo(key); return updatedType; });
See the test code.
Type.getKey()
Modifier and Type | Method and Description |
---|---|
String |
getKey() |
static ChangeKey |
of(String key)
Creates a new update action from the given parameters.
|
getAction
public String getKey()
public static ChangeKey of(String key)
key
- the key
property Type.getKey()
.ChangeKey
update action.