@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ScheduledInstanceRecurrence extends Object implements Serializable, Cloneable
Describes the recurring schedule for a Scheduled Instance.
Constructor and Description |
---|
ScheduledInstanceRecurrence() |
Modifier and Type | Method and Description |
---|---|
ScheduledInstanceRecurrence |
clone() |
boolean |
equals(Object obj) |
String |
getFrequency()
The frequency (
Daily , Weekly , or Monthly ). |
Integer |
getInterval()
The interval quantity.
|
List<Integer> |
getOccurrenceDaySet()
The days.
|
Boolean |
getOccurrenceRelativeToEnd()
Indicates whether the occurrence is relative to the end of the specified week or month.
|
String |
getOccurrenceUnit()
The unit for
occurrenceDaySet (DayOfWeek or DayOfMonth ). |
int |
hashCode() |
Boolean |
isOccurrenceRelativeToEnd()
Indicates whether the occurrence is relative to the end of the specified week or month.
|
void |
setFrequency(String frequency)
The frequency (
Daily , Weekly , or Monthly ). |
void |
setInterval(Integer interval)
The interval quantity.
|
void |
setOccurrenceDaySet(Collection<Integer> occurrenceDaySet)
The days.
|
void |
setOccurrenceRelativeToEnd(Boolean occurrenceRelativeToEnd)
Indicates whether the occurrence is relative to the end of the specified week or month.
|
void |
setOccurrenceUnit(String occurrenceUnit)
The unit for
occurrenceDaySet (DayOfWeek or DayOfMonth ). |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ScheduledInstanceRecurrence |
withFrequency(String frequency)
The frequency (
Daily , Weekly , or Monthly ). |
ScheduledInstanceRecurrence |
withInterval(Integer interval)
The interval quantity.
|
ScheduledInstanceRecurrence |
withOccurrenceDaySet(Collection<Integer> occurrenceDaySet)
The days.
|
ScheduledInstanceRecurrence |
withOccurrenceDaySet(Integer... occurrenceDaySet)
The days.
|
ScheduledInstanceRecurrence |
withOccurrenceRelativeToEnd(Boolean occurrenceRelativeToEnd)
Indicates whether the occurrence is relative to the end of the specified week or month.
|
ScheduledInstanceRecurrence |
withOccurrenceUnit(String occurrenceUnit)
The unit for
occurrenceDaySet (DayOfWeek or DayOfMonth ). |
public void setFrequency(String frequency)
The frequency (Daily
, Weekly
, or Monthly
).
frequency
- The frequency (Daily
, Weekly
, or Monthly
).public String getFrequency()
The frequency (Daily
, Weekly
, or Monthly
).
Daily
, Weekly
, or Monthly
).public ScheduledInstanceRecurrence withFrequency(String frequency)
The frequency (Daily
, Weekly
, or Monthly
).
frequency
- The frequency (Daily
, Weekly
, or Monthly
).public void setInterval(Integer interval)
The interval quantity. The interval unit depends on the value of 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 Integer getInterval()
The interval quantity. The interval unit depends on the value of frequency
. For example, every 2
weeks or every 2 months.
frequency
. For example,
every 2 weeks or every 2 months.public ScheduledInstanceRecurrence withInterval(Integer interval)
The interval quantity. The interval unit depends on the value of 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 List<Integer> getOccurrenceDaySet()
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).
public void setOccurrenceDaySet(Collection<Integer> occurrenceDaySet)
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).
occurrenceDaySet
- 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).public ScheduledInstanceRecurrence withOccurrenceDaySet(Integer... occurrenceDaySet)
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).
NOTE: This method appends the values to the existing list (if any). Use
setOccurrenceDaySet(java.util.Collection)
or withOccurrenceDaySet(java.util.Collection)
if you
want to override the existing values.
occurrenceDaySet
- 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).public ScheduledInstanceRecurrence withOccurrenceDaySet(Collection<Integer> occurrenceDaySet)
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).
occurrenceDaySet
- 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).public void setOccurrenceRelativeToEnd(Boolean occurrenceRelativeToEnd)
Indicates whether the occurrence is relative to the end of the specified week or month.
occurrenceRelativeToEnd
- Indicates whether the occurrence is relative to the end of the specified week or month.public Boolean getOccurrenceRelativeToEnd()
Indicates whether the occurrence is relative to the end of the specified week or month.
public ScheduledInstanceRecurrence withOccurrenceRelativeToEnd(Boolean occurrenceRelativeToEnd)
Indicates whether the occurrence is relative to the end of the specified week or month.
occurrenceRelativeToEnd
- Indicates whether the occurrence is relative to the end of the specified week or month.public Boolean isOccurrenceRelativeToEnd()
Indicates whether the occurrence is relative to the end of the specified week or month.
public void setOccurrenceUnit(String occurrenceUnit)
The unit for occurrenceDaySet
(DayOfWeek
or DayOfMonth
).
occurrenceUnit
- The unit for occurrenceDaySet
(DayOfWeek
or DayOfMonth
).public String getOccurrenceUnit()
The unit for occurrenceDaySet
(DayOfWeek
or DayOfMonth
).
occurrenceDaySet
(DayOfWeek
or DayOfMonth
).public ScheduledInstanceRecurrence withOccurrenceUnit(String occurrenceUnit)
The unit for occurrenceDaySet
(DayOfWeek
or DayOfMonth
).
occurrenceUnit
- The unit for occurrenceDaySet
(DayOfWeek
or DayOfMonth
).public String toString()
toString
in class Object
Object.toString()
public ScheduledInstanceRecurrence clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.