public final class ProductDiscountDraftBuilder extends Base
Modifier and Type | Method and Description |
---|---|
T |
active(Boolean active)
Sets the
active property of this builder. |
ProductDiscountDraftDsl |
build()
Creates a new instance of
ProductDiscountDraftDsl with the values of this builder. |
T |
description(LocalizedString description)
Sets the
description property of this builder. |
LocalizedString |
getDescription() |
String |
getKey() |
LocalizedString |
getName() |
String |
getPredicate() |
String |
getSortOrder() |
ZonedDateTime |
getValidFrom() |
ZonedDateTime |
getValidUntil() |
ProductDiscountValue |
getValue() |
Boolean |
isActive() |
T |
isActive(Boolean active)
Sets the
active property of this builder. |
T |
key(String key)
Sets the
key property of this builder. |
T |
name(LocalizedString name)
Sets the
name property of this builder. |
static ProductDiscountDraftBuilder |
of()
Creates a new object initialized with the given values.
|
static ProductDiscountDraftBuilder |
of(Boolean active,
LocalizedString description,
LocalizedString name,
String predicate,
String sortOrder,
ProductDiscountValue value)
Creates a new object initialized with the given values.
|
static ProductDiscountDraftBuilder |
of(ProductDiscountDraft template)
Creates a new object initialized with the fields of the template parameter.
|
ProductDiscountDraftBuilder |
predicate(ProductDiscountPredicate predicate) |
T |
predicate(String predicate)
Sets the
predicate property of this builder. |
T |
sortOrder(String sortOrder)
Sets the
sortOrder property of this builder. |
T |
validFrom(ZonedDateTime validFrom)
Sets the
validFrom property of this builder. |
T |
validUntil(ZonedDateTime validUntil)
Sets the
validUntil property of this builder. |
T |
value(ProductDiscountValue value)
Sets the
value property of this builder. |
public ProductDiscountDraftBuilder predicate(ProductDiscountPredicate predicate)
public T active(Boolean active)
active
property of this builder.active
- the value for ProductDiscountDraft.isActive()
public T isActive(Boolean active)
active
property of this builder.active
- the value for ProductDiscountDraft.isActive()
public T description(@Nullable LocalizedString description)
description
property of this builder.description
- the value for ProductDiscountDraft.getDescription()
public T key(@Nullable String key)
key
property of this builder.key
- the value for ProductDiscountDraft.getKey()
public T name(LocalizedString name)
name
property of this builder.name
- the value for ProductDiscountDraft.getName()
public T predicate(String predicate)
predicate
property of this builder.predicate
- the value for ProductDiscountDraft.getPredicate()
public T sortOrder(String sortOrder)
sortOrder
property of this builder.sortOrder
- the value for ProductDiscountDraft.getSortOrder()
public T validFrom(@Nullable ZonedDateTime validFrom)
validFrom
property of this builder.validFrom
- the value for ProductDiscountDraft.getValidFrom()
public T validUntil(@Nullable ZonedDateTime validUntil)
validUntil
property of this builder.validUntil
- the value for ProductDiscountDraft.getValidUntil()
public T value(ProductDiscountValue value)
value
property of this builder.value
- the value for ProductDiscountDraft.getValue()
public Boolean isActive()
@Nullable public LocalizedString getDescription()
public LocalizedString getName()
public String getPredicate()
public String getSortOrder()
@Nullable public ZonedDateTime getValidFrom()
@Nullable public ZonedDateTime getValidUntil()
public ProductDiscountValue getValue()
public ProductDiscountDraftDsl build()
ProductDiscountDraftDsl
with the values of this builder.build
in interface Builder<ProductDiscountDraftDsl>
public static ProductDiscountDraftBuilder of()
public static ProductDiscountDraftBuilder 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 ProductDiscountDraftBuilder of(ProductDiscountDraft template)
template
- the template