Class Campaign.Builder
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.Campaign.Builder
-
- Enclosing class:
- Campaign
public static class Campaign.Builder extends java.lang.ObjectClass implements builder to create a new instance of classCampaign.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()UseCampaign.builder()instead of private constructor to create new builder.protectedBuilder(Campaign pObject)UseCampaign.builder(Campaign)instead of private constructor to create new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Campaignbuild()Method creates a new instance of class Campaign.CampaignbuildValidated()Method creates a new validated instance of class Campaign.Campaign.BuildersetDiscountOffers(java.util.List<java.lang.String> pDiscountOffers)Deprecated.Campaign.BuildersetMoreLinks(java.util.Set<java.lang.Long> pMoreLinks)Deprecated.No good any more (since: 1.2, removed with: 3.0)Campaign.BuildersetTheLink(long pTheLink)Deprecated.Please use "moreLinks" instead
-
-
-
Constructor Detail
-
Builder
protected Builder()
UseCampaign.builder()instead of private constructor to create new builder.
-
Builder
protected Builder(Campaign pObject)
UseCampaign.builder(Campaign)instead of private constructor to create new builder.
-
-
Method Detail
-
setTheLink
@Deprecated public Campaign.Builder setTheLink(long pTheLink)
Deprecated.Please use "moreLinks" instead. (since: 2.3.1, removed with: 2.4)Method sets associationtheLink.- Parameters:
pTheLink- Value to whichtheLinkshould be set.- Returns:
Campaign.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setMoreLinks
@Deprecated public Campaign.Builder setMoreLinks(java.util.Set<java.lang.Long> pMoreLinks)
Deprecated.No good any more (since: 1.2, removed with: 3.0)Method sets associationmoreLinks.- Parameters:
pMoreLinks- Collection to whichmoreLinksshould be set.- Returns:
Campaign.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setDiscountOffers
@Deprecated public Campaign.Builder setDiscountOffers(java.util.List<java.lang.String> pDiscountOffers)
Deprecated.Method sets associationdiscountOffers.- Parameters:
pDiscountOffers- Collection to whichdiscountOffersshould be set.- Returns:
Campaign.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
build
public Campaign build()
Method creates a new instance of class Campaign. The object will be initialized with the values of the builder.- Returns:
- Campaign Created object. The method never returns null.
-
buildValidated
public Campaign buildValidated() throws javax.validation.ConstraintViolationException
Method creates a new validated instance of class Campaign. The object will be initialized with the values of the builder and validated afterwards.- Returns:
- Campaign Created and validated object. The method never returns null.
- Throws:
javax.validation.ConstraintViolationException- in case that one or more validations for the created object failed.
-
-