public static class DiscountOffer.Builder extends Object
DiscountOffer.| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
DiscountOffer.builder() instead of private constructor to create new builder. |
protected |
Builder(DiscountOffer pObject)
Use
DiscountOffer.builder(DiscountOffer) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
DiscountOffer |
build()
Method creates a new instance of class DiscountOffer.
|
DiscountOffer |
buildValidated()
Method creates a new validated instance of class DiscountOffer.
|
DiscountOffer.Builder |
setCampaigns(Set<SoftLink> pCampaigns)
Deprecated.
|
protected Builder()
DiscountOffer.builder() instead of private constructor to create new builder.protected Builder(DiscountOffer pObject)
DiscountOffer.builder(DiscountOffer) instead of private constructor to create new builder.@Deprecated public DiscountOffer.Builder setCampaigns(Set<SoftLink> pCampaigns)
campaigns.pCampaigns - Collection to which campaigns should be set.DiscountOffer.Builder Instance of this builder to support chaining setters. Method never returns null.public DiscountOffer build()
public DiscountOffer buildValidated() throws javax.validation.ConstraintViolationException
javax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.Copyright © 2023. All rights reserved.