@Generated(value="io.sphere.sdk.annotations.processors.generators.HasBuilderGenerator", comments="Generated from: io.sphere.sdk.carts.ItemShippingTarget") public final class ItemShippingTargetBuilder extends Base implements Builder<ItemShippingTarget>
ItemShippingTarget
.Modifier and Type | Method and Description |
---|---|
ItemShippingTargetBuilder |
addressKey(String addressKey)
Sets the
addressKey property of this builder. |
ItemShippingTarget |
build()
Creates a new instance of
ItemShippingTarget with the values of this builder. |
static ItemShippingTargetBuilder |
of(ItemShippingTarget template)
Creates a new object initialized with the fields of the template parameter.
|
static ItemShippingTargetBuilder |
of(String addressKey,
Long quantity)
Creates a new object initialized with the given values.
|
ItemShippingTargetBuilder |
quantity(Long quantity)
Sets the
quantity property of this builder. |
public ItemShippingTargetBuilder addressKey(String addressKey)
addressKey
property of this builder.addressKey
- the value for ItemShippingTarget.getAddressKey()
public ItemShippingTargetBuilder quantity(Long quantity)
quantity
property of this builder.quantity
- the value for ItemShippingTarget.getQuantity()
public ItemShippingTarget build()
ItemShippingTarget
with the values of this builder.build
in interface Builder<ItemShippingTarget>
public static ItemShippingTargetBuilder of(String addressKey, Long quantity)
addressKey
- initial value for the ItemShippingTarget.getAddressKey()
propertyquantity
- initial value for the ItemShippingTarget.getQuantity()
propertypublic static ItemShippingTargetBuilder of(ItemShippingTarget template)
template
- the template