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