@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CampaignLimits extends Object implements Serializable, Cloneable, StructuredPojo
For a campaign, specifies limits on the messages that the campaign can send. For an application, specifies the default limits for messages that campaigns in the application can send.
Constructor and Description |
---|
CampaignLimits() |
Modifier and Type | Method and Description |
---|---|
CampaignLimits |
clone() |
boolean |
equals(Object obj) |
Integer |
getDaily()
The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period.
|
Integer |
getMaximumDuration()
The maximum amount of time, in seconds, that a campaign can attempt to deliver a message after the scheduled
start time for the campaign.
|
Integer |
getMessagesPerSecond()
The maximum number of messages that a campaign can send each second.
|
Integer |
getSession()
The maximum total number of messages that the campaign can send per user session.
|
Integer |
getTotal()
The maximum number of messages that a campaign can send to a single endpoint during the course of the campaign.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDaily(Integer daily)
The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period.
|
void |
setMaximumDuration(Integer maximumDuration)
The maximum amount of time, in seconds, that a campaign can attempt to deliver a message after the scheduled
start time for the campaign.
|
void |
setMessagesPerSecond(Integer messagesPerSecond)
The maximum number of messages that a campaign can send each second.
|
void |
setSession(Integer session)
The maximum total number of messages that the campaign can send per user session.
|
void |
setTotal(Integer total)
The maximum number of messages that a campaign can send to a single endpoint during the course of the campaign.
|
String |
toString()
Returns a string representation of this object.
|
CampaignLimits |
withDaily(Integer daily)
The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period.
|
CampaignLimits |
withMaximumDuration(Integer maximumDuration)
The maximum amount of time, in seconds, that a campaign can attempt to deliver a message after the scheduled
start time for the campaign.
|
CampaignLimits |
withMessagesPerSecond(Integer messagesPerSecond)
The maximum number of messages that a campaign can send each second.
|
CampaignLimits |
withSession(Integer session)
The maximum total number of messages that the campaign can send per user session.
|
CampaignLimits |
withTotal(Integer total)
The maximum number of messages that a campaign can send to a single endpoint during the course of the campaign.
|
public void setDaily(Integer daily)
The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period. For an application, this value specifies the default limit for the number of messages that campaigns and journeys can send to a single endpoint during a 24-hour period. The maximum value is 100.
daily
- The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period. For
an application, this value specifies the default limit for the number of messages that campaigns and
journeys can send to a single endpoint during a 24-hour period. The maximum value is 100.public Integer getDaily()
The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period. For an application, this value specifies the default limit for the number of messages that campaigns and journeys can send to a single endpoint during a 24-hour period. The maximum value is 100.
public CampaignLimits withDaily(Integer daily)
The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period. For an application, this value specifies the default limit for the number of messages that campaigns and journeys can send to a single endpoint during a 24-hour period. The maximum value is 100.
daily
- The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period. For
an application, this value specifies the default limit for the number of messages that campaigns and
journeys can send to a single endpoint during a 24-hour period. The maximum value is 100.public void setMaximumDuration(Integer maximumDuration)
The maximum amount of time, in seconds, that a campaign can attempt to deliver a message after the scheduled start time for the campaign. The minimum value is 60 seconds.
maximumDuration
- The maximum amount of time, in seconds, that a campaign can attempt to deliver a message after the
scheduled start time for the campaign. The minimum value is 60 seconds.public Integer getMaximumDuration()
The maximum amount of time, in seconds, that a campaign can attempt to deliver a message after the scheduled start time for the campaign. The minimum value is 60 seconds.
public CampaignLimits withMaximumDuration(Integer maximumDuration)
The maximum amount of time, in seconds, that a campaign can attempt to deliver a message after the scheduled start time for the campaign. The minimum value is 60 seconds.
maximumDuration
- The maximum amount of time, in seconds, that a campaign can attempt to deliver a message after the
scheduled start time for the campaign. The minimum value is 60 seconds.public void setMessagesPerSecond(Integer messagesPerSecond)
The maximum number of messages that a campaign can send each second. For an application, this value specifies the default limit for the number of messages that campaigns can send each second. The minimum value is 1. The maximum value is 20,000.
messagesPerSecond
- The maximum number of messages that a campaign can send each second. For an application, this value
specifies the default limit for the number of messages that campaigns can send each second. The minimum
value is 1. The maximum value is 20,000.public Integer getMessagesPerSecond()
The maximum number of messages that a campaign can send each second. For an application, this value specifies the default limit for the number of messages that campaigns can send each second. The minimum value is 1. The maximum value is 20,000.
public CampaignLimits withMessagesPerSecond(Integer messagesPerSecond)
The maximum number of messages that a campaign can send each second. For an application, this value specifies the default limit for the number of messages that campaigns can send each second. The minimum value is 1. The maximum value is 20,000.
messagesPerSecond
- The maximum number of messages that a campaign can send each second. For an application, this value
specifies the default limit for the number of messages that campaigns can send each second. The minimum
value is 1. The maximum value is 20,000.public void setTotal(Integer total)
The maximum number of messages that a campaign can send to a single endpoint during the course of the campaign. If a campaign recurs, this setting applies to all runs of the campaign. The maximum value is 100.
total
- The maximum number of messages that a campaign can send to a single endpoint during the course of the
campaign. If a campaign recurs, this setting applies to all runs of the campaign. The maximum value is
100.public Integer getTotal()
The maximum number of messages that a campaign can send to a single endpoint during the course of the campaign. If a campaign recurs, this setting applies to all runs of the campaign. The maximum value is 100.
public CampaignLimits withTotal(Integer total)
The maximum number of messages that a campaign can send to a single endpoint during the course of the campaign. If a campaign recurs, this setting applies to all runs of the campaign. The maximum value is 100.
total
- The maximum number of messages that a campaign can send to a single endpoint during the course of the
campaign. If a campaign recurs, this setting applies to all runs of the campaign. The maximum value is
100.public void setSession(Integer session)
The maximum total number of messages that the campaign can send per user session.
session
- The maximum total number of messages that the campaign can send per user session.public Integer getSession()
The maximum total number of messages that the campaign can send per user session.
public CampaignLimits withSession(Integer session)
The maximum total number of messages that the campaign can send per user session.
session
- The maximum total number of messages that the campaign can send per user session.public String toString()
toString
in class Object
Object.toString()
public CampaignLimits clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.