@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, wait
of
@Nullable public String getDescription()
getDescription
in interface TaxCategoryDraft
@Nullable public String getKey()
getKey
in interface WithKey
getKey
in interface TaxCategoryDraft
public String getName()
getName
in interface TaxCategoryDraft
public List<TaxRateDraft> getTaxRates()
getTaxRates
in interface TaxCategoryDraft
public 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 TaxCategoryDraft
name
- 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