@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, waitof, of, of, ofpublic Boolean isDefault()
isDefault in interface ShippingMethodDraft@Nullable public CustomFieldsDraft getCustom()
getCustom in interface ShippingMethodDraftgetCustom in interface CustomDraft@Nullable @Deprecated public String getDescription()
getDescription in interface ShippingMethodDraft@Nullable public String getKey()
getKey in interface WithKeygetKey in interface ShippingMethodDraft@Nullable public LocalizedString getLocalizedDescription()
getLocalizedDescription in interface ShippingMethodDraft@Nullable public LocalizedString getLocalizedName()
getLocalizedName in interface ShippingMethodDraftpublic String getName()
getName in interface ShippingMethodDraft@Nullable public String getPredicate()
getPredicate in interface ShippingMethodDraftpublic ResourceIdentifier<TaxCategory> getTaxCategory()
getTaxCategory in interface ShippingMethodDraftpublic List<ZoneRateDraft> getZoneRates()
getZoneRates in interface ShippingMethodDraftpublic 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