@Generated(value="io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator", comments="Generated from: io.sphere.sdk.carts.ItemShippingDetailsDraft") public final class ItemShippingDetailsDraftBuilder extends Base implements Builder<ItemShippingDetailsDraftDsl>
ItemShippingDetailsDraft
.Modifier and Type | Method and Description |
---|---|
ItemShippingDetailsDraftDsl |
build()
Creates a new instance of
ItemShippingDetailsDraftDsl with the values of this builder. |
List<ItemShippingTarget> |
getTargets() |
static ItemShippingDetailsDraftBuilder |
of(ItemShippingDetailsDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static ItemShippingDetailsDraftBuilder |
of(List<ItemShippingTarget> targets)
Creates a new object initialized with the given values.
|
ItemShippingDetailsDraftBuilder |
plusTargets(ItemShippingTarget targets)
Adds
targets parameter to the targets list property of this builder. |
ItemShippingDetailsDraftBuilder |
plusTargets(List<ItemShippingTarget> targets)
Concatenate
targets parameter to the targets list property of this builder. |
ItemShippingDetailsDraftBuilder |
targets(List<ItemShippingTarget> targets)
Sets the
targets property of this builder. |
public ItemShippingDetailsDraftBuilder targets(List<ItemShippingTarget> targets)
targets
property of this builder.targets
- the value for ItemShippingDetailsDraft.getTargets()
public List<ItemShippingTarget> getTargets()
public ItemShippingDetailsDraftBuilder plusTargets(List<ItemShippingTarget> targets)
targets
parameter to the targets
list property of this builder.targets
- the value for ItemShippingDetailsDraft.getTargets()
public ItemShippingDetailsDraftBuilder plusTargets(ItemShippingTarget targets)
targets
parameter to the targets
list property of this builder.targets
- the value of the element to add to ItemShippingDetailsDraft.getTargets()
public ItemShippingDetailsDraftDsl build()
ItemShippingDetailsDraftDsl
with the values of this builder.build
in interface Builder<ItemShippingDetailsDraftDsl>
public static ItemShippingDetailsDraftBuilder of(List<ItemShippingTarget> targets)
targets
- initial value for the ItemShippingDetailsDraft.getTargets()
propertypublic static ItemShippingDetailsDraftBuilder of(ItemShippingDetailsDraft template)
template
- the template