public class Schedule
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Schedule() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getEndTime()
The scheduled time that the campaign ends in ISO 8601 format.
|
CampaignEventFilter |
getEventFilter()
Defines the type of events that can trigger the campaign.
|
java.lang.String |
getFrequency()
How often the campaign delivers messages.
|
java.lang.Boolean |
getIsLocalTime()
Indicates whether the campaign schedule takes effect according to each
user's local time.
|
QuietTime |
getQuietTime()
The default quiet time for the campaign.
|
java.lang.String |
getStartTime()
The scheduled time that the campaign begins in ISO 8601 format.
|
java.lang.String |
getTimezone()
The starting UTC offset for the schedule if the value for isLocalTime is
true Valid values: 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 UTC-11
|
int |
hashCode() |
java.lang.Boolean |
isIsLocalTime()
Indicates whether the campaign schedule takes effect according to each
user's local time.
|
void |
setEndTime(java.lang.String endTime)
The scheduled time that the campaign ends in ISO 8601 format.
|
void |
setEventFilter(CampaignEventFilter eventFilter)
Defines the type of events that can trigger the campaign.
|
void |
setFrequency(Frequency frequency)
How often the campaign delivers messages.
|
void |
setFrequency(java.lang.String frequency)
How often the campaign delivers messages.
|
void |
setIsLocalTime(java.lang.Boolean isLocalTime)
Indicates whether the campaign schedule takes effect according to each
user's local time.
|
void |
setQuietTime(QuietTime quietTime)
The default quiet time for the campaign.
|
void |
setStartTime(java.lang.String startTime)
The scheduled time that the campaign begins in ISO 8601 format.
|
void |
setTimezone(java.lang.String timezone)
The starting UTC offset for the schedule if the value for isLocalTime is
true Valid values: 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 UTC-11
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Schedule |
withEndTime(java.lang.String endTime)
The scheduled time that the campaign ends in ISO 8601 format.
|
Schedule |
withEventFilter(CampaignEventFilter eventFilter)
Defines the type of events that can trigger the campaign.
|
Schedule |
withFrequency(Frequency frequency)
How often the campaign delivers messages.
|
Schedule |
withFrequency(java.lang.String frequency)
How often the campaign delivers messages.
|
Schedule |
withIsLocalTime(java.lang.Boolean isLocalTime)
Indicates whether the campaign schedule takes effect according to each
user's local time.
|
Schedule |
withQuietTime(QuietTime quietTime)
The default quiet time for the campaign.
|
Schedule |
withStartTime(java.lang.String startTime)
The scheduled time that the campaign begins in ISO 8601 format.
|
Schedule |
withTimezone(java.lang.String timezone)
The starting UTC offset for the schedule if the value for isLocalTime is
true Valid values: 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 UTC-11
|
public java.lang.String getEndTime()
public void setEndTime(java.lang.String endTime)
endTime
- The scheduled time that the campaign ends in ISO 8601
format.public Schedule withEndTime(java.lang.String endTime)
Returns a reference to this object so that method calls can be chained together.
endTime
- The scheduled time that the campaign ends in ISO 8601
format.public CampaignEventFilter getEventFilter()
public void setEventFilter(CampaignEventFilter eventFilter)
eventFilter
- Defines the type of events that can trigger the
campaign. Used when the Frequency is set to EVENT.public Schedule withEventFilter(CampaignEventFilter eventFilter)
Returns a reference to this object so that method calls can be chained together.
eventFilter
- Defines the type of events that can trigger the
campaign. Used when the Frequency is set to EVENT.public java.lang.String getFrequency()
Constraints:
Allowed Values: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, EVENT
Frequency
public void setFrequency(java.lang.String frequency)
Constraints:
Allowed Values: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, EVENT
frequency
- How often the campaign delivers messages. Valid values:
ONCE HOURLY DAILY WEEKLY MONTHLY EVENTFrequency
public Schedule withFrequency(java.lang.String frequency)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, EVENT
frequency
- How often the campaign delivers messages. Valid values:
ONCE HOURLY DAILY WEEKLY MONTHLY EVENTFrequency
public void setFrequency(Frequency frequency)
Constraints:
Allowed Values: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, EVENT
frequency
- How often the campaign delivers messages. Valid values:
ONCE HOURLY DAILY WEEKLY MONTHLY EVENTFrequency
public Schedule withFrequency(Frequency frequency)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, EVENT
frequency
- How often the campaign delivers messages. Valid values:
ONCE HOURLY DAILY WEEKLY MONTHLY EVENTFrequency
public java.lang.Boolean isIsLocalTime()
public java.lang.Boolean getIsLocalTime()
public void setIsLocalTime(java.lang.Boolean isLocalTime)
isLocalTime
- Indicates whether the campaign schedule takes effect
according to each user's local time.public Schedule withIsLocalTime(java.lang.Boolean isLocalTime)
Returns a reference to this object so that method calls can be chained together.
isLocalTime
- Indicates whether the campaign schedule takes effect
according to each user's local time.public QuietTime getQuietTime()
public void setQuietTime(QuietTime quietTime)
quietTime
- The default quiet time for the campaign. The campaign
doesn't send messages to endpoints during the quiet time.
Note: Make sure that your endpoints include the
Demographics.Timezone attribute if you plan to enable a quiet
time for your campaign. If your endpoints don't include this
attribute, they'll receive the messages that you send them,
even if quiet time is enabled. When you set up a campaign to
use quiet time, the campaign doesn't send messages during the
time range you specified, as long as all of the following are
true: - The endpoint includes a valid Demographic.Timezone
attribute. - The current time in the endpoint's time zone is
later than or equal to the time specified in the
QuietTime.Start attribute for the campaign. - The current time
in the endpoint's time zone is earlier than or equal to the
time specified in the QuietTime.End attribute for the
campaign.public Schedule withQuietTime(QuietTime quietTime)
Returns a reference to this object so that method calls can be chained together.
quietTime
- The default quiet time for the campaign. The campaign
doesn't send messages to endpoints during the quiet time.
Note: Make sure that your endpoints include the
Demographics.Timezone attribute if you plan to enable a quiet
time for your campaign. If your endpoints don't include this
attribute, they'll receive the messages that you send them,
even if quiet time is enabled. When you set up a campaign to
use quiet time, the campaign doesn't send messages during the
time range you specified, as long as all of the following are
true: - The endpoint includes a valid Demographic.Timezone
attribute. - The current time in the endpoint's time zone is
later than or equal to the time specified in the
QuietTime.Start attribute for the campaign. - The current time
in the endpoint's time zone is earlier than or equal to the
time specified in the QuietTime.End attribute for the
campaign.public java.lang.String getStartTime()
public void setStartTime(java.lang.String startTime)
startTime
- The scheduled time that the campaign begins in ISO 8601
format.public Schedule withStartTime(java.lang.String startTime)
Returns a reference to this object so that method calls can be chained together.
startTime
- The scheduled time that the campaign begins in ISO 8601
format.public java.lang.String getTimezone()
public void setTimezone(java.lang.String timezone)
timezone
- The starting UTC offset for the schedule if the value for
isLocalTime is true Valid values: 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 UTC-11public Schedule withTimezone(java.lang.String timezone)
Returns a reference to this object so that method calls can be chained together.
timezone
- The starting UTC offset for the schedule if the value for
isLocalTime is true Valid values: 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 UTC-11public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.