Class CfnCampaignPropsMixin.ScheduleProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.pinpoint.mixins.CfnCampaignPropsMixin.ScheduleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaignPropsMixin.ScheduleProperty>
- Enclosing interface:
CfnCampaignPropsMixin.ScheduleProperty
@Stability(Stable)
public static final class CfnCampaignPropsMixin.ScheduleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCampaignPropsMixin.ScheduleProperty>
A builder for
CfnCampaignPropsMixin.ScheduleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCampaignPropsMixin.ScheduleProperty.getEndTime()eventFilter(IResolvable eventFilter) Sets the value ofCfnCampaignPropsMixin.ScheduleProperty.getEventFilter()Sets the value ofCfnCampaignPropsMixin.ScheduleProperty.getEventFilter()Sets the value ofCfnCampaignPropsMixin.ScheduleProperty.getFrequency()isLocalTime(Boolean isLocalTime) Sets the value ofCfnCampaignPropsMixin.ScheduleProperty.getIsLocalTime()isLocalTime(IResolvable isLocalTime) Sets the value ofCfnCampaignPropsMixin.ScheduleProperty.getIsLocalTime()quietTime(IResolvable quietTime) Sets the value ofCfnCampaignPropsMixin.ScheduleProperty.getQuietTime()quietTime(CfnCampaignPropsMixin.QuietTimeProperty quietTime) Sets the value ofCfnCampaignPropsMixin.ScheduleProperty.getQuietTime()Sets the value ofCfnCampaignPropsMixin.ScheduleProperty.getStartTime()Sets the value ofCfnCampaignPropsMixin.ScheduleProperty.getTimeZone()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endTime
Sets the value ofCfnCampaignPropsMixin.ScheduleProperty.getEndTime()- Parameters:
endTime- The scheduled time, in ISO 8601 format, when the campaign ended or will end.- Returns:
this
-
eventFilter
@Stability(Stable) public CfnCampaignPropsMixin.ScheduleProperty.Builder eventFilter(IResolvable eventFilter) Sets the value ofCfnCampaignPropsMixin.ScheduleProperty.getEventFilter()- Parameters:
eventFilter- The type of event that causes the campaign to be sent, if the value of theFrequencyproperty isEVENT.- Returns:
this
-
eventFilter
@Stability(Stable) public CfnCampaignPropsMixin.ScheduleProperty.Builder eventFilter(CfnCampaignPropsMixin.CampaignEventFilterProperty eventFilter) Sets the value ofCfnCampaignPropsMixin.ScheduleProperty.getEventFilter()- Parameters:
eventFilter- The type of event that causes the campaign to be sent, if the value of theFrequencyproperty isEVENT.- Returns:
this
-
frequency
@Stability(Stable) public CfnCampaignPropsMixin.ScheduleProperty.Builder frequency(String frequency) Sets the value ofCfnCampaignPropsMixin.ScheduleProperty.getFrequency()- Parameters:
frequency- Specifies how often the campaign is sent or whether the campaign is sent in response to a specific event.- Returns:
this
-
isLocalTime
@Stability(Stable) public CfnCampaignPropsMixin.ScheduleProperty.Builder isLocalTime(Boolean isLocalTime) Sets the value ofCfnCampaignPropsMixin.ScheduleProperty.getIsLocalTime()- Parameters:
isLocalTime- Specifies whether the start and end times for the campaign schedule use each recipient's local time. To base the schedule on each recipient's local time, set this value totrue.- Returns:
this
-
isLocalTime
@Stability(Stable) public CfnCampaignPropsMixin.ScheduleProperty.Builder isLocalTime(IResolvable isLocalTime) Sets the value ofCfnCampaignPropsMixin.ScheduleProperty.getIsLocalTime()- Parameters:
isLocalTime- Specifies whether the start and end times for the campaign schedule use each recipient's local time. To base the schedule on each recipient's local time, set this value totrue.- Returns:
this
-
quietTime
@Stability(Stable) public CfnCampaignPropsMixin.ScheduleProperty.Builder quietTime(IResolvable quietTime) Sets the value ofCfnCampaignPropsMixin.ScheduleProperty.getQuietTime()- Parameters:
quietTime- The default quiet time for the campaign. Quiet time is a specific time range when a campaign doesn't send messages to endpoints, if all the following conditions are met:- The
EndpointDemographic.Timezoneproperty of the endpoint is set to a valid value. - The current time in the endpoint's time zone is later than or equal to the time specified by the
QuietTime.Startproperty for the campaign. - The current time in the endpoint's time zone is earlier than or equal to the time specified by the
QuietTime.Endproperty for the campaign.
If any of the preceding conditions isn't met, the endpoint will receive messages from the campaign, even if quiet time is enabled.
- The
- Returns:
this
-
quietTime
@Stability(Stable) public CfnCampaignPropsMixin.ScheduleProperty.Builder quietTime(CfnCampaignPropsMixin.QuietTimeProperty quietTime) Sets the value ofCfnCampaignPropsMixin.ScheduleProperty.getQuietTime()- Parameters:
quietTime- The default quiet time for the campaign. Quiet time is a specific time range when a campaign doesn't send messages to endpoints, if all the following conditions are met:- The
EndpointDemographic.Timezoneproperty of the endpoint is set to a valid value. - The current time in the endpoint's time zone is later than or equal to the time specified by the
QuietTime.Startproperty for the campaign. - The current time in the endpoint's time zone is earlier than or equal to the time specified by the
QuietTime.Endproperty for the campaign.
If any of the preceding conditions isn't met, the endpoint will receive messages from the campaign, even if quiet time is enabled.
- The
- Returns:
this
-
startTime
@Stability(Stable) public CfnCampaignPropsMixin.ScheduleProperty.Builder startTime(String startTime) Sets the value ofCfnCampaignPropsMixin.ScheduleProperty.getStartTime()- Parameters:
startTime- The scheduled time when the campaign began or will begin. Valid values are:IMMEDIATE, to start the campaign immediately; or, a specific time in ISO 8601 format.- Returns:
this
-
timeZone
Sets the value ofCfnCampaignPropsMixin.ScheduleProperty.getTimeZone()- Parameters:
timeZone- The starting UTC offset for the campaign schedule, if the value of theIsLocalTimeproperty istrue. Valid values are:UTC, UTC+01, UTC+02, UTC+03, UTC+03:30, UTC+04, UTC+04:30, UTC+05, UTC+05:30, UTC+05:45, UTC+06, UTC+06:30, UTC+07, UTC+08, UTC+09, UTC+09:30, UTC+10, UTC+10:30, UTC+11, UTC+12, UTC+13, UTC-02, UTC-03, UTC-04, UTC-05, UTC-06, UTC-07, UTC-08, UTC-09, UTC-10,andUTC-11.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCampaignPropsMixin.ScheduleProperty>- Returns:
- a new instance of
CfnCampaignPropsMixin.ScheduleProperty - Throws:
NullPointerException- if any required attribute was not provided
-