Class CampaignCode
- java.lang.Object
 - 
- com.broadleafcommerce.orderoperation.domain.CampaignCode
 
 
- 
- All Implemented Interfaces:
 Serializable
public class CampaignCode extends Object implements Serializable
A CampaignCode represents a distinct code for a Campaign. It is typically created through the Code Generation endpoint and services.- Author:
 - Chad Harchar (charchar)
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description CampaignCode() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)InstantgetActiveEndDate()Defines the ending time for which this campaign code is active.InstantgetActiveStartDate()Defines the beginning time for which this campaign code is active.StringgetCampaignId()Defines the id for the campaign that originated this campaign code.StringgetCode()The string code that represents this record.StringgetEmailRegEx()Defines a regex to be used for validating this campaign code for customer updateUses.StringgetGeneratorId()Defines the id for the code generator that originated this campaign code.StringgetId()intgetMaxUses()Defines the number of max uses allowed for this campaign code.inthashCode()booleanisAssigned()Defines whether this code has been assigned for use.voidsetActiveEndDate(Instant activeEndDate)Defines the ending time for which this campaign code is active.voidsetActiveStartDate(Instant activeStartDate)Defines the beginning time for which this campaign code is active.voidsetAssigned(boolean assigned)Defines whether this code has been assigned for use.voidsetCampaignId(String campaignId)Defines the id for the campaign that originated this campaign code.voidsetCode(String code)The string code that represents this record.voidsetEmailRegEx(String emailRegEx)Defines a regex to be used for validating this campaign code for customer updateUses.voidsetGeneratorId(String generatorId)Defines the id for the code generator that originated this campaign code.voidsetId(String id)voidsetMaxUses(int maxUses)Defines the number of max uses allowed for this campaign code.StringtoString() 
 - 
 
- 
- 
Method Detail
- 
getId
public String getId()
 
- 
getCode
public String getCode()
The string code that represents this record. 
- 
getActiveStartDate
public Instant getActiveStartDate()
Defines the beginning time for which this campaign code is active. Overrides the value set in theCampaign#activeStartDate. 
- 
getActiveEndDate
public Instant getActiveEndDate()
Defines the ending time for which this campaign code is active. Overrides the value set in theCampaign#activeEndDate. 
- 
getMaxUses
public int getMaxUses()
Defines the number of max uses allowed for this campaign code. 
- 
getEmailRegEx
public String getEmailRegEx()
Defines a regex to be used for validating this campaign code for customer updateUses. 
- 
getCampaignId
public String getCampaignId()
Defines the id for the campaign that originated this campaign code. 
- 
getGeneratorId
public String getGeneratorId()
Defines the id for the code generator that originated this campaign code. 
- 
isAssigned
public boolean isAssigned()
Defines whether this code has been assigned for use. 
- 
setId
public void setId(String id)
 
- 
setCode
public void setCode(String code)
The string code that represents this record. 
- 
setActiveStartDate
public void setActiveStartDate(Instant activeStartDate)
Defines the beginning time for which this campaign code is active. Overrides the value set in theCampaign#activeStartDate. 
- 
setActiveEndDate
public void setActiveEndDate(Instant activeEndDate)
Defines the ending time for which this campaign code is active. Overrides the value set in theCampaign#activeEndDate. 
- 
setMaxUses
public void setMaxUses(int maxUses)
Defines the number of max uses allowed for this campaign code. 
- 
setEmailRegEx
public void setEmailRegEx(String emailRegEx)
Defines a regex to be used for validating this campaign code for customer updateUses. 
- 
setCampaignId
public void setCampaignId(String campaignId)
Defines the id for the campaign that originated this campaign code. 
- 
setGeneratorId
public void setGeneratorId(String generatorId)
Defines the id for the code generator that originated this campaign code. 
- 
setAssigned
public void setAssigned(boolean assigned)
Defines whether this code has been assigned for use. 
- 
canEqual
protected boolean canEqual(Object other)
 
 - 
 
 -