| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
Campaign.builder() instead of private constructor to create new builder. |
protected |
Builder(Campaign pObject)
Use
Campaign.builder(Campaign) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
Campaign |
build()
Method creates a new instance of class Campaign.
|
Campaign |
buildValidated()
Method creates a new validated instance of class Campaign.
|
Campaign.Builder |
setDiscountOffers(List<DiscountOffer> pDiscountOffers)
Method sets the association "discountOffers".
|
protected Builder()
Campaign.builder() instead of private constructor to create new builder.protected Builder(Campaign pObject)
Campaign.builder(Campaign) instead of private constructor to create new builder.public Campaign.Builder setDiscountOffers(List<DiscountOffer> pDiscountOffers)
pDiscountOffers - Collection with objects to which the association should be set.public Campaign build()
public Campaign 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.