@Generated(value="io.sphere.sdk.annotations.processors.generators.ResourceDraftValueGenerator", comments="Generated from: io.sphere.sdk.taxcategories.TaxCategoryDraft") public final class TaxCategoryDraftDsl extends Base implements TaxCategoryDraft
TaxCategoryDraft.| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
String |
getKey() |
String |
getName() |
List<TaxRateDraft> |
getTaxRates() |
TaxCategoryDraftBuilder |
newBuilder()
Creates a new builder with the values of this object.
|
static TaxCategoryDraftDsl |
of(String name,
List<TaxRateDraft> taxRates,
String description)
Creates a new object initialized with the given values.
|
static TaxCategoryDraftDsl |
of(TaxCategoryDraft template)
Creates a new object initialized with the fields of the template parameter.
|
TaxCategoryDraftDsl |
withDescription(String description) |
TaxCategoryDraftDsl |
withKey(String key) |
TaxCategoryDraftDsl |
withName(String name) |
TaxCategoryDraftDsl |
withRates(List<TaxRateDraft> taxRates) |
TaxCategoryDraftDsl |
withTaxRates(List<TaxRateDraft> taxRates) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitof@Nullable public String getDescription()
getDescription in interface TaxCategoryDraft@Nullable public String getKey()
getKey in interface WithKeygetKey in interface TaxCategoryDraftpublic String getName()
getName in interface TaxCategoryDraftpublic List<TaxRateDraft> getTaxRates()
getTaxRates in interface TaxCategoryDraftpublic TaxCategoryDraftBuilder newBuilder()
public TaxCategoryDraftDsl withDescription(@Nullable String description)
public TaxCategoryDraftDsl withKey(@Nullable String key)
public TaxCategoryDraftDsl withName(String name)
public TaxCategoryDraftDsl withTaxRates(List<TaxRateDraft> taxRates)
public TaxCategoryDraftDsl withRates(List<TaxRateDraft> taxRates)
public static TaxCategoryDraftDsl of(String name, List<TaxRateDraft> taxRates, @Nullable String description)
of in interface TaxCategoryDraftname - initial value for the TaxCategoryDraft.getName() propertytaxRates - initial value for the TaxCategoryDraft.getTaxRates() propertydescription - initial value for the TaxCategoryDraft.getDescription() propertypublic static TaxCategoryDraftDsl of(TaxCategoryDraft template)
template - the template