@Generated(value="io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator", comments="Generated from: io.sphere.sdk.taxcategories.TaxCategoryDraft") public final class TaxCategoryDraftBuilder extends Base implements Builder<TaxCategoryDraftDsl>
TaxCategoryDraft.| Modifier and Type | Method and Description |
|---|---|
TaxCategoryDraftDsl |
build()
Creates a new instance of
TaxCategoryDraftDsl with the values of this builder. |
TaxCategoryDraftBuilder |
description(String description)
Sets the
description property of this builder. |
String |
getDescription() |
String |
getKey() |
String |
getName() |
List<TaxRateDraft> |
getTaxRates() |
TaxCategoryDraftBuilder |
key(String key)
Sets the
key property of this builder. |
TaxCategoryDraftBuilder |
name(String name)
Sets the
name property of this builder. |
static TaxCategoryDraftBuilder |
of(String name,
List<TaxRateDraft> taxRates,
String description)
Creates a new object initialized with the given values.
|
static TaxCategoryDraftBuilder |
of(TaxCategoryDraft template)
Creates a new object initialized with the fields of the template parameter.
|
TaxCategoryDraftBuilder |
plusTaxRates(List<TaxRateDraft> taxRates)
Concatenate
taxRates parameter to the taxRates list property of this builder. |
TaxCategoryDraftBuilder |
plusTaxRates(TaxRateDraft taxRates)
Adds
taxRates parameter to the taxRates list property of this builder. |
TaxCategoryDraftBuilder |
taxRates(List<TaxRateDraft> taxRates)
Sets the
taxRates property of this builder. |
public TaxCategoryDraftBuilder description(@Nullable String description)
description property of this builder.description - the value for TaxCategoryDraft.getDescription()public TaxCategoryDraftBuilder key(@Nullable String key)
key property of this builder.key - the value for TaxCategoryDraft.getKey()public TaxCategoryDraftBuilder name(String name)
name property of this builder.name - the value for TaxCategoryDraft.getName()public TaxCategoryDraftBuilder taxRates(List<TaxRateDraft> taxRates)
taxRates property of this builder.taxRates - the value for TaxCategoryDraft.getTaxRates()public String getName()
public List<TaxRateDraft> getTaxRates()
public TaxCategoryDraftBuilder plusTaxRates(List<TaxRateDraft> taxRates)
taxRates parameter to the taxRates list property of this builder.taxRates - the value for TaxCategoryDraft.getTaxRates()public TaxCategoryDraftBuilder plusTaxRates(TaxRateDraft taxRates)
taxRates parameter to the taxRates list property of this builder.taxRates - the value of the element to add to TaxCategoryDraft.getTaxRates()public TaxCategoryDraftDsl build()
TaxCategoryDraftDsl with the values of this builder.build in interface Builder<TaxCategoryDraftDsl>public static TaxCategoryDraftBuilder of(String name, List<TaxRateDraft> taxRates, @Nullable String description)
name - initial value for the TaxCategoryDraft.getName() propertytaxRates - initial value for the TaxCategoryDraft.getTaxRates() propertydescription - initial value for the TaxCategoryDraft.getDescription() propertypublic static TaxCategoryDraftBuilder of(TaxCategoryDraft template)
template - the template