@Generated(value="io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator", comments="Generated from: io.sphere.sdk.shippingmethods.ZoneRateDraft") public final class ZoneRateDraftBuilder extends Base implements Builder<ZoneRateDraftDsl>
ZoneRateDraft.| Modifier and Type | Method and Description |
|---|---|
ZoneRateDraftDsl |
build()
Creates a new instance of
ZoneRateDraftDsl with the values of this builder. |
List<ShippingRate> |
getShippingRates() |
ResourceIdentifier<Zone> |
getZone() |
static ZoneRateDraftBuilder |
of(ResourceIdentifier<Zone> zone,
List<ShippingRate> shippingRates)
Creates a new object initialized with the given values.
|
static ZoneRateDraftBuilder |
of(ZoneRateDraft template)
Creates a new object initialized with the fields of the template parameter.
|
ZoneRateDraftBuilder |
plusShippingRates(List<ShippingRate> shippingRates)
Concatenate
shippingRates parameter to the shippingRates list property of this builder. |
ZoneRateDraftBuilder |
plusShippingRates(ShippingRate shippingRates)
Adds
shippingRates parameter to the shippingRates list property of this builder. |
ZoneRateDraftBuilder |
shippingRates(List<ShippingRate> shippingRates)
Sets the
shippingRates property of this builder. |
ZoneRateDraftBuilder |
zone(ResourceIdentifier<Zone> zone)
Sets the
zone property of this builder. |
public ZoneRateDraftBuilder shippingRates(List<ShippingRate> shippingRates)
shippingRates property of this builder.shippingRates - the value for ZoneRateDraft.getShippingRates()public ZoneRateDraftBuilder zone(ResourceIdentifier<Zone> zone)
zone property of this builder.zone - the value for ZoneRateDraft.getZone()public List<ShippingRate> getShippingRates()
public ResourceIdentifier<Zone> getZone()
public ZoneRateDraftBuilder plusShippingRates(List<ShippingRate> shippingRates)
shippingRates parameter to the shippingRates list property of this builder.shippingRates - the value for ZoneRateDraft.getShippingRates()public ZoneRateDraftBuilder plusShippingRates(ShippingRate shippingRates)
shippingRates parameter to the shippingRates list property of this builder.shippingRates - the value of the element to add to ZoneRateDraft.getShippingRates()public ZoneRateDraftDsl build()
ZoneRateDraftDsl with the values of this builder.build in interface Builder<ZoneRateDraftDsl>public static ZoneRateDraftBuilder of(ResourceIdentifier<Zone> zone, List<ShippingRate> shippingRates)
zone - initial value for the ZoneRateDraft.getZone() propertyshippingRates - initial value for the ZoneRateDraft.getShippingRates() propertypublic static ZoneRateDraftBuilder of(ZoneRateDraft template)
template - the template