public class CampaignLimits extends Object implements Serializable
| Constructor and Description |
|---|
CampaignLimits() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Integer |
getDaily()
The maximum number of messages that the campaign can send daily.
|
Integer |
getMaximumDuration()
The maximum duration of a campaign from the scheduled start.
|
Integer |
getMessagesPerSecond()
The maximum number of messages per second that the campaign will send.
|
Integer |
getTotal()
The maximum total number of messages that the campaign can send.
|
int |
hashCode() |
void |
setDaily(Integer daily)
The maximum number of messages that the campaign can send daily.
|
void |
setMaximumDuration(Integer maximumDuration)
The maximum duration of a campaign from the scheduled start.
|
void |
setMessagesPerSecond(Integer messagesPerSecond)
The maximum number of messages per second that the campaign will send.
|
void |
setTotal(Integer total)
The maximum total number of messages that the campaign can send.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CampaignLimits |
withDaily(Integer daily)
The maximum number of messages that the campaign can send daily.
|
CampaignLimits |
withMaximumDuration(Integer maximumDuration)
The maximum duration of a campaign from the scheduled start.
|
CampaignLimits |
withMessagesPerSecond(Integer messagesPerSecond)
The maximum number of messages per second that the campaign will send.
|
CampaignLimits |
withTotal(Integer total)
The maximum total number of messages that the campaign can send.
|
public Integer getDaily()
public void setDaily(Integer daily)
daily - The maximum number of messages that the campaign can send
daily.public CampaignLimits withDaily(Integer daily)
Returns a reference to this object so that method calls can be chained together.
daily - The maximum number of messages that the campaign can send
daily.public Integer getMaximumDuration()
public void setMaximumDuration(Integer maximumDuration)
maximumDuration - The maximum duration of a campaign from the
scheduled start. Must be a minimum of 60 seconds.public CampaignLimits withMaximumDuration(Integer maximumDuration)
Returns a reference to this object so that method calls can be chained together.
maximumDuration - The maximum duration of a campaign from the
scheduled start. Must be a minimum of 60 seconds.public Integer getMessagesPerSecond()
public void setMessagesPerSecond(Integer messagesPerSecond)
messagesPerSecond - The maximum number of messages per second that
the campaign will send. This is a best effort maximum cap and
can go as high as 20000 and as low as 50public CampaignLimits withMessagesPerSecond(Integer messagesPerSecond)
Returns a reference to this object so that method calls can be chained together.
messagesPerSecond - The maximum number of messages per second that
the campaign will send. This is a best effort maximum cap and
can go as high as 20000 and as low as 50public Integer getTotal()
public void setTotal(Integer total)
total - The maximum total number of messages that the campaign can
send.public CampaignLimits withTotal(Integer total)
Returns a reference to this object so that method calls can be chained together.
total - The maximum total number of messages that the campaign can
send.public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.