Class CfnCampaign.LimitsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnCampaign.LimitsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaign.LimitsProperty>
- Enclosing interface:
CfnCampaign.LimitsProperty
@Stability(Stable)
public static final class CfnCampaign.LimitsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCampaign.LimitsProperty>
A builder for
CfnCampaign.LimitsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCampaign.LimitsProperty.getDaily()maximumDuration(Number maximumDuration) Sets the value ofCfnCampaign.LimitsProperty.getMaximumDuration()messagesPerSecond(Number messagesPerSecond) Sets the value ofCfnCampaign.LimitsProperty.getMessagesPerSecond()Sets the value ofCfnCampaign.LimitsProperty.getSession()Sets the value ofCfnCampaign.LimitsProperty.getTotal()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
daily
Sets the value ofCfnCampaign.LimitsProperty.getDaily()- Parameters:
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.- Returns:
this
-
maximumDuration
@Stability(Stable) public CfnCampaign.LimitsProperty.Builder maximumDuration(Number maximumDuration) Sets the value ofCfnCampaign.LimitsProperty.getMaximumDuration()- Parameters:
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.- Returns:
this
-
messagesPerSecond
@Stability(Stable) public CfnCampaign.LimitsProperty.Builder messagesPerSecond(Number messagesPerSecond) Sets the value ofCfnCampaign.LimitsProperty.getMessagesPerSecond()- Parameters:
messagesPerSecond- The maximum number of messages that a campaign can send each second. The minimum value is 1. The maximum value is 20,000.- Returns:
this
-
session
Sets the value ofCfnCampaign.LimitsProperty.getSession()- Parameters:
session- The maximum number of messages that the campaign can send per user session.- Returns:
this
-
total
Sets the value ofCfnCampaign.LimitsProperty.getTotal()- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCampaign.LimitsProperty>- Returns:
- a new instance of
CfnCampaign.LimitsProperty - Throws:
NullPointerException- if any required attribute was not provided
-