@Generated(value="io.sphere.sdk.annotations.processors.generators.ResourceDraftValueGenerator", comments="Generated from: io.sphere.sdk.productdiscounts.ProductDiscountDraft") public final class ProductDiscountDraftDsl extends Base implements ProductDiscountDraft
ProductDiscountDraft.clone, finalize, getClass, notify, notifyAll, wait, wait, waitof, ofpublic Boolean isActive()
isActive in interface ProductDiscountDraft@Nullable public LocalizedString getDescription()
getDescription in interface ProductDiscountDraft@Nullable public String getKey()
getKey in interface WithKeygetKey in interface ProductDiscountDraftpublic LocalizedString getName()
getName in interface ProductDiscountDraftpublic String getPredicate()
getPredicate in interface ProductDiscountDraftpublic String getSortOrder()
getSortOrder in interface ProductDiscountDraft@Nullable public ZonedDateTime getValidFrom()
getValidFrom in interface ProductDiscountDraft@Nullable public ZonedDateTime getValidUntil()
getValidUntil in interface ProductDiscountDraftpublic ProductDiscountValue getValue()
getValue in interface ProductDiscountDraftpublic ProductDiscountDraftBuilder newBuilder()
public ProductDiscountDraftDsl withActive(Boolean active)
public ProductDiscountDraftDsl withDescription(@Nullable LocalizedString description)
public ProductDiscountDraftDsl withKey(@Nullable String key)
public ProductDiscountDraftDsl withName(LocalizedString name)
public ProductDiscountDraftDsl withPredicate(String predicate)
public ProductDiscountDraftDsl withSortOrder(String sortOrder)
public ProductDiscountDraftDsl withValidFrom(@Nullable ZonedDateTime validFrom)
public ProductDiscountDraftDsl withValidUntil(@Nullable ZonedDateTime validUntil)
public ProductDiscountDraftDsl withValue(ProductDiscountValue value)
public ProductDiscountDraftDsl withIsActive(Boolean active)
public static ProductDiscountDraftDsl of()
public static ProductDiscountDraftDsl of(Boolean active, @Nullable LocalizedString description, LocalizedString name, String predicate, String sortOrder, ProductDiscountValue value)
active - initial value for the ProductDiscountDraft.isActive() propertydescription - initial value for the ProductDiscountDraft.getDescription() propertyname - initial value for the ProductDiscountDraft.getName() propertypredicate - initial value for the ProductDiscountDraft.getPredicate() propertysortOrder - initial value for the ProductDiscountDraft.getSortOrder() propertyvalue - initial value for the ProductDiscountDraft.getValue() propertypublic static ProductDiscountDraftDsl of(ProductDiscountDraft template)
template - the template