public static class DiscountOffer.Builder extends Object
| 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<Campaign> pCampaigns)
Method sets the association "campaigns".
|
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.public DiscountOffer.Builder setCampaigns(Set<Campaign> pCampaigns)
pCampaigns - Collection with objects to which the association should be set.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 © 2022. All rights reserved.