@Generated(value="io.sphere.sdk.annotations.processors.generators.ResourceDraftValueGenerator", comments="Generated from: io.sphere.sdk.shippingmethods.ZoneRateDraft") public final class ZoneRateDraftDsl extends Base implements ZoneRateDraft
ZoneRateDraft
.Modifier and Type | Method and Description |
---|---|
List<ShippingRate> |
getShippingRates() |
ResourceIdentifier<Zone> |
getZone() |
ZoneRateDraftBuilder |
newBuilder()
Creates a new builder with the values of this object.
|
static ZoneRateDraftDsl |
of(ResourceIdentifier<Zone> zone,
List<ShippingRate> shippingRates)
Creates a new object initialized with the given values.
|
static ZoneRateDraftDsl |
of(ZoneRateDraft template)
Creates a new object initialized with the fields of the template parameter.
|
ZoneRateDraftDsl |
withShippingRates(List<ShippingRate> shippingRates) |
ZoneRateDraftDsl |
withZone(ResourceIdentifier<Zone> zone) |
public List<ShippingRate> getShippingRates()
getShippingRates
in interface ZoneRateDraft
public ResourceIdentifier<Zone> getZone()
getZone
in interface ZoneRateDraft
public ZoneRateDraftBuilder newBuilder()
public ZoneRateDraftDsl withShippingRates(List<ShippingRate> shippingRates)
public ZoneRateDraftDsl withZone(ResourceIdentifier<Zone> zone)
public static ZoneRateDraftDsl of(ResourceIdentifier<Zone> zone, List<ShippingRate> shippingRates)
zone
- initial value for the ZoneRateDraft.getZone()
propertyshippingRates
- initial value for the ZoneRateDraft.getShippingRates()
propertypublic static ZoneRateDraftDsl of(ZoneRateDraft template)
template
- the template