public class ScheduledInstanceRecurrenceRequest
extends java.lang.Object
implements java.io.Serializable
Describes the recurring schedule for a Scheduled Instance.
Constructor and Description |
---|
ScheduledInstanceRecurrenceRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFrequency()
The frequency (
Daily , Weekly , or
Monthly ). |
java.lang.Integer |
getInterval()
The interval quantity.
|
java.util.List<java.lang.Integer> |
getOccurrenceDays()
The days.
|
java.lang.Boolean |
getOccurrenceRelativeToEnd()
Indicates whether the occurrence is relative to the end of the
specified week or month.
|
java.lang.String |
getOccurrenceUnit()
The unit for
OccurrenceDays (DayOfWeek or
DayOfMonth ). |
int |
hashCode() |
java.lang.Boolean |
isOccurrenceRelativeToEnd()
Indicates whether the occurrence is relative to the end of the
specified week or month.
|
void |
setFrequency(java.lang.String frequency)
The frequency (
Daily , Weekly , or
Monthly ). |
void |
setInterval(java.lang.Integer interval)
The interval quantity.
|
void |
setOccurrenceDays(java.util.Collection<java.lang.Integer> occurrenceDays)
The days.
|
void |
setOccurrenceRelativeToEnd(java.lang.Boolean occurrenceRelativeToEnd)
Indicates whether the occurrence is relative to the end of the
specified week or month.
|
void |
setOccurrenceUnit(java.lang.String occurrenceUnit)
The unit for
OccurrenceDays (DayOfWeek or
DayOfMonth ). |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ScheduledInstanceRecurrenceRequest |
withFrequency(java.lang.String frequency)
The frequency (
Daily , Weekly , or
Monthly ). |
ScheduledInstanceRecurrenceRequest |
withInterval(java.lang.Integer interval)
The interval quantity.
|
ScheduledInstanceRecurrenceRequest |
withOccurrenceDays(java.util.Collection<java.lang.Integer> occurrenceDays)
The days.
|
ScheduledInstanceRecurrenceRequest |
withOccurrenceDays(java.lang.Integer... occurrenceDays)
The days.
|
ScheduledInstanceRecurrenceRequest |
withOccurrenceRelativeToEnd(java.lang.Boolean occurrenceRelativeToEnd)
Indicates whether the occurrence is relative to the end of the
specified week or month.
|
ScheduledInstanceRecurrenceRequest |
withOccurrenceUnit(java.lang.String occurrenceUnit)
The unit for
OccurrenceDays (DayOfWeek or
DayOfMonth ). |
public java.lang.String getFrequency()
Daily
, Weekly
, or
Monthly
).Daily
, Weekly
, or
Monthly
).public void setFrequency(java.lang.String frequency)
Daily
, Weekly
, or
Monthly
).frequency
- The frequency (Daily
, Weekly
, or
Monthly
).public ScheduledInstanceRecurrenceRequest withFrequency(java.lang.String frequency)
Daily
, Weekly
, or
Monthly
).
Returns a reference to this object so that method calls can be chained together.
frequency
- The frequency (Daily
, Weekly
, or
Monthly
).public java.lang.Integer getInterval()
Frequency
. For example, every 2 weeks or every 2 months.Frequency
. For example, every 2 weeks or every 2 months.public void setInterval(java.lang.Integer interval)
Frequency
. For example, every 2 weeks or every 2 months.interval
- The interval quantity. The interval unit depends on the value of
Frequency
. For example, every 2 weeks or every 2 months.public ScheduledInstanceRecurrenceRequest withInterval(java.lang.Integer interval)
Frequency
. For example, every 2 weeks or every 2 months.
Returns a reference to this object so that method calls can be chained together.
interval
- The interval quantity. The interval unit depends on the value of
Frequency
. For example, every 2 weeks or every 2 months.public java.util.List<java.lang.Integer> getOccurrenceDays()
public void setOccurrenceDays(java.util.Collection<java.lang.Integer> occurrenceDays)
occurrenceDays
- The days. For a monthly schedule, this is one or more days of the
month (1-31). For a weekly schedule, this is one or more days of the
week (1-7, where 1 is Sunday). You can't specify this value with a
daily schedule. If the occurrence is relative to the end of the month,
you can specify only a single day.public ScheduledInstanceRecurrenceRequest withOccurrenceDays(java.lang.Integer... occurrenceDays)
Returns a reference to this object so that method calls can be chained together.
occurrenceDays
- The days. For a monthly schedule, this is one or more days of the
month (1-31). For a weekly schedule, this is one or more days of the
week (1-7, where 1 is Sunday). You can't specify this value with a
daily schedule. If the occurrence is relative to the end of the month,
you can specify only a single day.public ScheduledInstanceRecurrenceRequest withOccurrenceDays(java.util.Collection<java.lang.Integer> occurrenceDays)
Returns a reference to this object so that method calls can be chained together.
occurrenceDays
- The days. For a monthly schedule, this is one or more days of the
month (1-31). For a weekly schedule, this is one or more days of the
week (1-7, where 1 is Sunday). You can't specify this value with a
daily schedule. If the occurrence is relative to the end of the month,
you can specify only a single day.public java.lang.Boolean isOccurrenceRelativeToEnd()
public void setOccurrenceRelativeToEnd(java.lang.Boolean occurrenceRelativeToEnd)
occurrenceRelativeToEnd
- Indicates whether the occurrence is relative to the end of the
specified week or month. You can't specify this value with a daily
schedule.public ScheduledInstanceRecurrenceRequest withOccurrenceRelativeToEnd(java.lang.Boolean occurrenceRelativeToEnd)
Returns a reference to this object so that method calls can be chained together.
occurrenceRelativeToEnd
- Indicates whether the occurrence is relative to the end of the
specified week or month. You can't specify this value with a daily
schedule.public java.lang.Boolean getOccurrenceRelativeToEnd()
public java.lang.String getOccurrenceUnit()
OccurrenceDays
(DayOfWeek
or
DayOfMonth
). This value is required for a monthly
schedule. You can't specify DayOfWeek
with a weekly
schedule. You can't specify this value with a daily schedule.OccurrenceDays
(DayOfWeek
or
DayOfMonth
). This value is required for a monthly
schedule. You can't specify DayOfWeek
with a weekly
schedule. You can't specify this value with a daily schedule.public void setOccurrenceUnit(java.lang.String occurrenceUnit)
OccurrenceDays
(DayOfWeek
or
DayOfMonth
). This value is required for a monthly
schedule. You can't specify DayOfWeek
with a weekly
schedule. You can't specify this value with a daily schedule.occurrenceUnit
- The unit for OccurrenceDays
(DayOfWeek
or
DayOfMonth
). This value is required for a monthly
schedule. You can't specify DayOfWeek
with a weekly
schedule. You can't specify this value with a daily schedule.public ScheduledInstanceRecurrenceRequest withOccurrenceUnit(java.lang.String occurrenceUnit)
OccurrenceDays
(DayOfWeek
or
DayOfMonth
). This value is required for a monthly
schedule. You can't specify DayOfWeek
with a weekly
schedule. You can't specify this value with a daily schedule.
Returns a reference to this object so that method calls can be chained together.
occurrenceUnit
- The unit for OccurrenceDays
(DayOfWeek
or
DayOfMonth
). This value is required for a monthly
schedule. You can't specify DayOfWeek
with a weekly
schedule. You can't specify this value with a daily schedule.public 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.