@Generated(value="io.sphere.sdk.annotations.processors.generators.ResourceDraftValueGenerator", comments="Generated from: io.sphere.sdk.shippingmethods.ShippingMethodDraft") public final class ShippingMethodDraftDsl extends Base implements ShippingMethodDraft
ShippingMethodDraft
.clone, finalize, getClass, notify, notifyAll, wait, wait, wait
of, of, of, of
public Boolean isDefault()
isDefault
in interface ShippingMethodDraft
@Nullable public CustomFieldsDraft getCustom()
getCustom
in interface ShippingMethodDraft
getCustom
in interface CustomDraft
@Nullable @Deprecated public String getDescription()
getDescription
in interface ShippingMethodDraft
@Nullable public String getKey()
getKey
in interface WithKey
getKey
in interface ShippingMethodDraft
@Nullable public LocalizedString getLocalizedDescription()
getLocalizedDescription
in interface ShippingMethodDraft
@Nullable public LocalizedString getLocalizedName()
getLocalizedName
in interface ShippingMethodDraft
public String getName()
getName
in interface ShippingMethodDraft
@Nullable public String getPredicate()
getPredicate
in interface ShippingMethodDraft
public ResourceIdentifier<TaxCategory> getTaxCategory()
getTaxCategory
in interface ShippingMethodDraft
public List<ZoneRateDraft> getZoneRates()
getZoneRates
in interface ShippingMethodDraft
public ShippingMethodDraftBuilder newBuilder()
public ShippingMethodDraftDsl withDefault(Boolean _default)
public ShippingMethodDraftDsl withCustom(@Nullable CustomFieldsDraft custom)
@Deprecated public ShippingMethodDraftDsl withDescription(@Nullable String description)
public ShippingMethodDraftDsl withKey(@Nullable String key)
public ShippingMethodDraftDsl withLocalizedDescription(@Nullable LocalizedString localizedDescription)
public ShippingMethodDraftDsl withLocalizedName(@Nullable LocalizedString localizedName)
public ShippingMethodDraftDsl withName(String name)
public ShippingMethodDraftDsl withPredicate(@Nullable String predicate)
public ShippingMethodDraftDsl withTaxCategory(ResourceIdentifier<TaxCategory> taxCategory)
public ShippingMethodDraftDsl withZoneRates(List<ZoneRateDraft> zoneRates)
public ShippingMethodDraftDsl withIsDefault(Boolean _default)
public static ShippingMethodDraftDsl of(String name, @Nullable String description, ResourceIdentifier<TaxCategory> taxCategory, List<ZoneRateDraft> zoneRates, Boolean _default)
name
- initial value for the ShippingMethodDraft.getName()
propertydescription
- initial value for the ShippingMethodDraft.getDescription()
propertytaxCategory
- initial value for the ShippingMethodDraft.getTaxCategory()
propertyzoneRates
- initial value for the ShippingMethodDraft.getZoneRates()
property_default
- initial value for the ShippingMethodDraft.isDefault()
propertypublic static ShippingMethodDraftDsl of(String name, ResourceIdentifier<TaxCategory> taxCategory, List<ZoneRateDraft> zoneRates, Boolean _default)
name
- initial value for the ShippingMethodDraft.getName()
propertytaxCategory
- initial value for the ShippingMethodDraft.getTaxCategory()
propertyzoneRates
- initial value for the ShippingMethodDraft.getZoneRates()
property_default
- initial value for the ShippingMethodDraft.isDefault()
propertypublic static ShippingMethodDraftDsl of(String name, @Nullable LocalizedString localizedDescription, ResourceIdentifier<TaxCategory> taxCategory, List<ZoneRateDraft> zoneRates, Boolean _default)
name
- initial value for the ShippingMethodDraft.getName()
propertylocalizedDescription
- initial value for the ShippingMethodDraft.getLocalizedDescription()
propertytaxCategory
- initial value for the ShippingMethodDraft.getTaxCategory()
propertyzoneRates
- initial value for the ShippingMethodDraft.getZoneRates()
property_default
- initial value for the ShippingMethodDraft.isDefault()
propertypublic static ShippingMethodDraftDsl of(ShippingMethodDraft template)
template
- the template