@Generated(value="io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator", comments="Generated from: io.sphere.sdk.carts.ExternalTaxAmountDraft") public final class ExternalTaxAmountDraftBuilder extends Base implements Builder<ExternalTaxAmountDraftDsl>
ExternalTaxAmountDraft.| Modifier and Type | Method and Description |
|---|---|
ExternalTaxAmountDraftDsl |
build()
Creates a new instance of
ExternalTaxAmountDraftDsl with the values of this builder. |
ExternalTaxRateDraft |
getTaxRate() |
javax.money.MonetaryAmount |
getTotalGross() |
static ExternalTaxAmountDraftBuilder |
of(ExternalTaxAmountDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static ExternalTaxAmountDraftBuilder |
of(javax.money.MonetaryAmount totalGross,
ExternalTaxRateDraft taxRate)
Creates a new object initialized with the given values.
|
ExternalTaxAmountDraftBuilder |
taxRate(ExternalTaxRateDraft taxRate)
Sets the
taxRate property of this builder. |
ExternalTaxAmountDraftBuilder |
totalGross(javax.money.MonetaryAmount totalGross)
Sets the
totalGross property of this builder. |
public ExternalTaxAmountDraftBuilder taxRate(ExternalTaxRateDraft taxRate)
taxRate property of this builder.taxRate - the value for ExternalTaxAmountDraft.getTaxRate()public ExternalTaxAmountDraftBuilder totalGross(javax.money.MonetaryAmount totalGross)
totalGross property of this builder.totalGross - the value for ExternalTaxAmountDraft.getTotalGross()public ExternalTaxRateDraft getTaxRate()
public javax.money.MonetaryAmount getTotalGross()
public ExternalTaxAmountDraftDsl build()
ExternalTaxAmountDraftDsl with the values of this builder.build in interface Builder<ExternalTaxAmountDraftDsl>public static ExternalTaxAmountDraftBuilder of(javax.money.MonetaryAmount totalGross, ExternalTaxRateDraft taxRate)
totalGross - initial value for the ExternalTaxAmountDraft.getTotalGross() propertytaxRate - initial value for the ExternalTaxAmountDraft.getTaxRate() propertypublic static ExternalTaxAmountDraftBuilder of(ExternalTaxAmountDraft template)
template - the template