@Valid public class Campaign extends Object implements com.anaptecs.jeaf.core.api.ServiceObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Campaign.Builder
Class implements builder to create a new instance of class Campaign.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Campaign()
Default constructor is only intended to be used for deserialization as many frameworks required that.
|
protected |
Campaign(Campaign.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToDiscountOffers(Collection<DiscountOffer> pDiscountOffers)
Method adds all passed objects to the association "discountOffers".
|
void |
addToDiscountOffers(DiscountOffer pDiscountOffers)
Method adds the passed DiscountOffer object to the association "discountOffers".
|
static Campaign.Builder |
builder()
Method returns a new builder.
|
static Campaign.Builder |
builder(Campaign pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
void |
clearDiscountOffers()
Method removes all objects from the association "discountOffers".
|
List<DiscountOffer> |
getDiscountOffers()
Method returns the association "discountOffers".
|
void |
removeFromDiscountOffers(DiscountOffer pDiscountOffers)
Method removes the passed DiscountOffer object from the association "discountOffers".
|
String |
toString()
Method creates a new String with the values of all attributes of this class.
|
StringBuilder |
toStringBuilder(String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object.
|
protected Campaign()
protected Campaign(Campaign.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static Campaign.Builder builder()
Campaign.Builder New builder that can be used to create new Campaign objects.public static Campaign.Builder builder(Campaign pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.Campaign.Builder New builder that can be used to create new Campaign objects. The method never returns null.public List<DiscountOffer> getDiscountOffers()
public void addToDiscountOffers(DiscountOffer pDiscountOffers)
pDiscountOffers - Object that should be added to the association "discountOffers". The parameter must not be
null.public void addToDiscountOffers(Collection<DiscountOffer> pDiscountOffers)
pDiscountOffers - Collection with all objects that should be added to the association "discountOffers". The
parameter must not be null.public void removeFromDiscountOffers(DiscountOffer pDiscountOffers)
pDiscountOffers - Object that should be removed from the association "discountOffers". The parameter must not
be null.public void clearDiscountOffers()
public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2022. All rights reserved.