public static final class CfnCampaign.LimitsProperty.Builder
extends java.lang.Object
CfnCampaign.LimitsProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnCampaign.LimitsProperty |
build()
Builds the configured instance.
|
CfnCampaign.LimitsProperty.Builder |
daily(java.lang.Number daily)
Sets the value of
CfnCampaign.LimitsProperty.getDaily() |
CfnCampaign.LimitsProperty.Builder |
maximumDuration(java.lang.Number maximumDuration)
Sets the value of
CfnCampaign.LimitsProperty.getMaximumDuration() |
CfnCampaign.LimitsProperty.Builder |
messagesPerSecond(java.lang.Number messagesPerSecond)
Sets the value of
CfnCampaign.LimitsProperty.getMessagesPerSecond() |
CfnCampaign.LimitsProperty.Builder |
session(java.lang.Number session)
Sets the value of
CfnCampaign.LimitsProperty.getSession() |
CfnCampaign.LimitsProperty.Builder |
total(java.lang.Number total)
Sets the value of
CfnCampaign.LimitsProperty.getTotal() |
public CfnCampaign.LimitsProperty.Builder daily(java.lang.Number daily)
CfnCampaign.LimitsProperty.getDaily()
daily
- The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period.
The maximum value is 100.this
public CfnCampaign.LimitsProperty.Builder maximumDuration(java.lang.Number maximumDuration)
CfnCampaign.LimitsProperty.getMaximumDuration()
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.this
public CfnCampaign.LimitsProperty.Builder messagesPerSecond(java.lang.Number messagesPerSecond)
CfnCampaign.LimitsProperty.getMessagesPerSecond()
messagesPerSecond
- The maximum number of messages that a campaign can send each second.
The minimum value is 1. The maximum value is 20,000.this
public CfnCampaign.LimitsProperty.Builder session(java.lang.Number session)
CfnCampaign.LimitsProperty.getSession()
session
- `CfnCampaign.LimitsProperty.Session`.this
public CfnCampaign.LimitsProperty.Builder total(java.lang.Number total)
CfnCampaign.LimitsProperty.getTotal()
total
- The maximum number of messages that a campaign can send to a single endpoint during the course of the campaign.
The maximum value is 100.this
public CfnCampaign.LimitsProperty build()
CfnCampaign.LimitsProperty
java.lang.NullPointerException
- if any required attribute was not provided