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