@Generated(value="io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator", comments="Generated from: io.sphere.sdk.orders.ShippingInfoImportDraft") public final class ShippingInfoImportDraftBuilder extends Base implements Builder<ShippingInfoImportDraftDsl>
ShippingInfoImportDraft
.Modifier and Type | Method and Description |
---|---|
ShippingInfoImportDraftDsl |
build()
Creates a new instance of
ShippingInfoImportDraftDsl with the values of this builder. |
ShippingInfoImportDraftBuilder |
deliveries(List<Delivery> deliveries)
Sets the
deliveries property of this builder. |
ShippingInfoImportDraftBuilder |
discountedPrice(DiscountedLineItemPrice discountedPrice)
Sets the
discountedPrice property of this builder. |
List<Delivery> |
getDeliveries() |
DiscountedLineItemPrice |
getDiscountedPrice() |
javax.money.MonetaryAmount |
getPrice() |
ResourceIdentifier<ShippingMethod> |
getShippingMethod() |
String |
getShippingMethodName() |
ShippingMethodState |
getShippingMethodState() |
ShippingRate |
getShippingRate() |
ResourceIdentifier<TaxCategory> |
getTaxCategory() |
TaxRate |
getTaxRate() |
static ShippingInfoImportDraftBuilder |
of(ShippingInfoImportDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static ShippingInfoImportDraftBuilder |
of(String shippingMethodName,
javax.money.MonetaryAmount price,
ShippingRate shippingRate,
TaxRate taxRate,
ResourceIdentifier<TaxCategory> taxCategory,
ResourceIdentifier<ShippingMethod> shippingMethod,
ShippingMethodState shippingMethodState,
List<Delivery> deliveries)
Creates a new object initialized with the given values.
|
ShippingInfoImportDraftBuilder |
plusDeliveries(Delivery deliveries)
Adds
deliveries parameter to the deliveries list property of this builder. |
ShippingInfoImportDraftBuilder |
plusDeliveries(List<Delivery> deliveries)
Concatenate
deliveries parameter to the deliveries list property of this builder. |
ShippingInfoImportDraftBuilder |
price(javax.money.MonetaryAmount price)
Sets the
price property of this builder. |
ShippingInfoImportDraftBuilder |
shippingMethod(ResourceIdentifier<ShippingMethod> shippingMethod)
Sets the
shippingMethod property of this builder. |
ShippingInfoImportDraftBuilder |
shippingMethodName(String shippingMethodName)
Sets the
shippingMethodName property of this builder. |
ShippingInfoImportDraftBuilder |
shippingMethodState(ShippingMethodState shippingMethodState)
Sets the
shippingMethodState property of this builder. |
ShippingInfoImportDraftBuilder |
shippingRate(ShippingRate shippingRate)
Sets the
shippingRate property of this builder. |
ShippingInfoImportDraftBuilder |
taxCategory(ResourceIdentifier<TaxCategory> taxCategory)
Sets the
taxCategory property of this builder. |
ShippingInfoImportDraftBuilder |
taxRate(TaxRate taxRate)
Sets the
taxRate property of this builder. |
public ShippingInfoImportDraftBuilder deliveries(List<Delivery> deliveries)
deliveries
property of this builder.deliveries
- the value for ShippingInfoImportDraft.getDeliveries()
public ShippingInfoImportDraftBuilder discountedPrice(@Nullable DiscountedLineItemPrice discountedPrice)
discountedPrice
property of this builder.discountedPrice
- the value for ShippingInfoImportDraft.getDiscountedPrice()
public ShippingInfoImportDraftBuilder price(javax.money.MonetaryAmount price)
price
property of this builder.price
- the value for ShippingInfoImportDraft.getPrice()
public ShippingInfoImportDraftBuilder shippingMethod(@Nullable ResourceIdentifier<ShippingMethod> shippingMethod)
shippingMethod
property of this builder.shippingMethod
- the value for ShippingInfoImportDraft.getShippingMethod()
public ShippingInfoImportDraftBuilder shippingMethodName(String shippingMethodName)
shippingMethodName
property of this builder.shippingMethodName
- the value for ShippingInfoImportDraft.getShippingMethodName()
public ShippingInfoImportDraftBuilder shippingMethodState(ShippingMethodState shippingMethodState)
shippingMethodState
property of this builder.shippingMethodState
- the value for ShippingInfoImportDraft.getShippingMethodState()
public ShippingInfoImportDraftBuilder shippingRate(ShippingRate shippingRate)
shippingRate
property of this builder.shippingRate
- the value for ShippingInfoImportDraft.getShippingRate()
public ShippingInfoImportDraftBuilder taxCategory(@Nullable ResourceIdentifier<TaxCategory> taxCategory)
taxCategory
property of this builder.taxCategory
- the value for ShippingInfoImportDraft.getTaxCategory()
public ShippingInfoImportDraftBuilder taxRate(@Nullable TaxRate taxRate)
taxRate
property of this builder.taxRate
- the value for ShippingInfoImportDraft.getTaxRate()
@Nullable public DiscountedLineItemPrice getDiscountedPrice()
public javax.money.MonetaryAmount getPrice()
@Nullable public ResourceIdentifier<ShippingMethod> getShippingMethod()
public String getShippingMethodName()
public ShippingMethodState getShippingMethodState()
public ShippingRate getShippingRate()
@Nullable public ResourceIdentifier<TaxCategory> getTaxCategory()
public ShippingInfoImportDraftBuilder plusDeliveries(List<Delivery> deliveries)
deliveries
parameter to the deliveries
list property of this builder.deliveries
- the value for ShippingInfoImportDraft.getDeliveries()
public ShippingInfoImportDraftBuilder plusDeliveries(Delivery deliveries)
deliveries
parameter to the deliveries
list property of this builder.deliveries
- the value of the element to add to ShippingInfoImportDraft.getDeliveries()
public ShippingInfoImportDraftDsl build()
ShippingInfoImportDraftDsl
with the values of this builder.build
in interface Builder<ShippingInfoImportDraftDsl>
public static ShippingInfoImportDraftBuilder of(String shippingMethodName, javax.money.MonetaryAmount price, ShippingRate shippingRate, @Nullable TaxRate taxRate, @Nullable ResourceIdentifier<TaxCategory> taxCategory, @Nullable ResourceIdentifier<ShippingMethod> shippingMethod, ShippingMethodState shippingMethodState, List<Delivery> deliveries)
shippingMethodName
- initial value for the ShippingInfoImportDraft.getShippingMethodName()
propertyprice
- initial value for the ShippingInfoImportDraft.getPrice()
propertyshippingRate
- initial value for the ShippingInfoImportDraft.getShippingRate()
propertytaxRate
- initial value for the ShippingInfoImportDraft.getTaxRate()
propertytaxCategory
- initial value for the ShippingInfoImportDraft.getTaxCategory()
propertyshippingMethod
- initial value for the ShippingInfoImportDraft.getShippingMethod()
propertyshippingMethodState
- initial value for the ShippingInfoImportDraft.getShippingMethodState()
propertydeliveries
- initial value for the ShippingInfoImportDraft.getDeliveries()
propertypublic static ShippingInfoImportDraftBuilder of(ShippingInfoImportDraft template)
template
- the template