@Generated(value="io.sphere.sdk.annotations.processors.generators.UpdateActionsGenerator", comments="Generated from: io.sphere.sdk.customers.Customer") public final class SetTitle extends UpdateActionImpl<Customer>
title property of a Customer.
withCustomer(client(), customer -> { String newTitle = "Dr. Eng."; assertThat(customer.getTitle()).isNotEqualTo(newTitle); final Customer updatedCustomer = client().executeBlocking(CustomerUpdateCommand.of(customer, SetTitle.of(newTitle))); assertThat(updatedCustomer.getTitle()).isEqualTo(newTitle); });See the test code.
Customer.getTitle()| Modifier and Type | Method and Description |
|---|---|
String |
getTitle() |
static SetTitle |
of(String title)
Creates a new update action from the given parameters.
|
static SetTitle |
ofUnset()
Creates a new update action to unset the
title property. |
getActionpublic static SetTitle of(@Nullable String title)
title - the title property Customer.getTitle().SetTitle update action.public static SetTitle ofUnset()
title property.SetTitle update action.