@Generated(value="io.sphere.sdk.annotations.processors.generators.UpdateActionsGenerator", comments="Generated from: io.sphere.sdk.taxcategories.TaxCategory") public final class ChangeName extends UpdateActionImpl<TaxCategory>
name property of a TaxCategory.
withUpdateableTaxCategory(client(), taxCategory -> { final String newName = randomKey(); final TaxCategory updatedTaxCategory = client().executeBlocking(TaxCategoryUpdateCommand.of(taxCategory, ChangeName.of(newName))); assertThat(updatedTaxCategory.getName()).isEqualTo(newName); return updatedTaxCategory; });See the test code.
TaxCategory.getName()| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
static ChangeName |
of(String name)
Creates a new update action from the given parameters.
|
getActionpublic String getName()
public static ChangeName of(String name)
name - the name property TaxCategory.getName().ChangeName update action.