@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 by tools like Jackson for JSON.
|
protected |
DiscountOffer(DiscountOffer.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToCampaigns(Collection<SoftLink> pCampaigns)
Deprecated.
|
void |
addToCampaigns(SoftLink pCampaigns)
Deprecated.
|
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()
Deprecated.
|
Set<SoftLink> |
getCampaigns()
Deprecated.
|
void |
removeFromCampaigns(SoftLink pCampaigns)
Deprecated.
|
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.@Deprecated public Set<SoftLink> getCampaigns()
campaigns.campaigns is
com.anaptecs.jeaf.junit.openapi.base.CampaignSet Value to which campaigns is set. The method never returns null and the
returned collection is modifiable.@Deprecated public void addToCampaigns(SoftLink pCampaigns)
campaigns.pCampaigns - Object that should be added to campaigns. The parameter must not be null.@Deprecated public void addToCampaigns(Collection<SoftLink> pCampaigns)
campaigns.pCampaigns - Collection with all objects that should be added to campaigns. The parameter must not be
null.@Deprecated public void removeFromCampaigns(SoftLink pCampaigns)
campaigns.pCampaigns - Object that should be removed from campaigns. The parameter must not be null.@Deprecated public void clearCampaigns()
campaigns.public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2023. All rights reserved.