public final class SetDeleteDaysAfterLastModification extends UpdateActionImpl<ShoppingList>
ShoppingList.getDeleteDaysAfterLastModification()
of the shopping list.
See also ShoppingListInStoreUpdateCommand.
withCustomer(client(), customer -> { withUpdateableShoppingList(client(), shoppingList -> { final int deleteDaysAfterLastModification = 11; final ShoppingList updatedShoppingList = client().executeBlocking( ShoppingListUpdateCommand.of(shoppingList, SetDeleteDaysAfterLastModification.of(deleteDaysAfterLastModification))); assertThat(updatedShoppingList.getDeleteDaysAfterLastModification()).isEqualTo(deleteDaysAfterLastModification); return updatedShoppingList; }); });
See the test code.
Modifier and Type | Method and Description |
---|---|
Integer |
getDeleteDaysAfterLastModification() |
static SetDeleteDaysAfterLastModification |
of(Integer deleteDaysAfterLastModification) |
static SetDeleteDaysAfterLastModification |
ofUnset() |
getAction
public static SetDeleteDaysAfterLastModification of(@Nullable Integer deleteDaysAfterLastModification)
public static SetDeleteDaysAfterLastModification ofUnset()