@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SnapshotSchedule extends Object implements Serializable, Cloneable
Describes a snapshot schedule. You can set a regular interval for creating snapshots of a cluster. You can also schedule snapshots for specific dates.
| Constructor and Description |
|---|
SnapshotSchedule() |
| Modifier and Type | Method and Description |
|---|---|
SnapshotSchedule |
clone() |
boolean |
equals(Object obj) |
Integer |
getAssociatedClusterCount() |
List<ClusterAssociatedToSchedule> |
getAssociatedClusters() |
List<Date> |
getNextInvocations() |
List<String> |
getScheduleDefinitions()
A list of ScheduleDefinitions
|
String |
getScheduleDescription()
The description of the schedule.
|
String |
getScheduleIdentifier()
A unique identifier for the schedule.
|
List<Tag> |
getTags()
An optional set of tags describing the schedule.
|
int |
hashCode() |
void |
setAssociatedClusterCount(Integer associatedClusterCount) |
void |
setAssociatedClusters(Collection<ClusterAssociatedToSchedule> associatedClusters) |
void |
setNextInvocations(Collection<Date> nextInvocations) |
void |
setScheduleDefinitions(Collection<String> scheduleDefinitions)
A list of ScheduleDefinitions
|
void |
setScheduleDescription(String scheduleDescription)
The description of the schedule.
|
void |
setScheduleIdentifier(String scheduleIdentifier)
A unique identifier for the schedule.
|
void |
setTags(Collection<Tag> tags)
An optional set of tags describing the schedule.
|
String |
toString()
Returns a string representation of this object.
|
SnapshotSchedule |
withAssociatedClusterCount(Integer associatedClusterCount) |
SnapshotSchedule |
withAssociatedClusters(ClusterAssociatedToSchedule... associatedClusters)
NOTE: This method appends the values to the existing list (if any).
|
SnapshotSchedule |
withAssociatedClusters(Collection<ClusterAssociatedToSchedule> associatedClusters) |
SnapshotSchedule |
withNextInvocations(Collection<Date> nextInvocations) |
SnapshotSchedule |
withNextInvocations(Date... nextInvocations)
NOTE: This method appends the values to the existing list (if any).
|
SnapshotSchedule |
withScheduleDefinitions(Collection<String> scheduleDefinitions)
A list of ScheduleDefinitions
|
SnapshotSchedule |
withScheduleDefinitions(String... scheduleDefinitions)
A list of ScheduleDefinitions
|
SnapshotSchedule |
withScheduleDescription(String scheduleDescription)
The description of the schedule.
|
SnapshotSchedule |
withScheduleIdentifier(String scheduleIdentifier)
A unique identifier for the schedule.
|
SnapshotSchedule |
withTags(Collection<Tag> tags)
An optional set of tags describing the schedule.
|
SnapshotSchedule |
withTags(Tag... tags)
An optional set of tags describing the schedule.
|
public List<String> getScheduleDefinitions()
A list of ScheduleDefinitions
public void setScheduleDefinitions(Collection<String> scheduleDefinitions)
A list of ScheduleDefinitions
scheduleDefinitions - A list of ScheduleDefinitionspublic SnapshotSchedule withScheduleDefinitions(String... scheduleDefinitions)
A list of ScheduleDefinitions
NOTE: This method appends the values to the existing list (if any). Use
setScheduleDefinitions(java.util.Collection) or withScheduleDefinitions(java.util.Collection)
if you want to override the existing values.
scheduleDefinitions - A list of ScheduleDefinitionspublic SnapshotSchedule withScheduleDefinitions(Collection<String> scheduleDefinitions)
A list of ScheduleDefinitions
scheduleDefinitions - A list of ScheduleDefinitionspublic void setScheduleIdentifier(String scheduleIdentifier)
A unique identifier for the schedule.
scheduleIdentifier - A unique identifier for the schedule.public String getScheduleIdentifier()
A unique identifier for the schedule.
public SnapshotSchedule withScheduleIdentifier(String scheduleIdentifier)
A unique identifier for the schedule.
scheduleIdentifier - A unique identifier for the schedule.public void setScheduleDescription(String scheduleDescription)
The description of the schedule.
scheduleDescription - The description of the schedule.public String getScheduleDescription()
The description of the schedule.
public SnapshotSchedule withScheduleDescription(String scheduleDescription)
The description of the schedule.
scheduleDescription - The description of the schedule.public List<Tag> getTags()
An optional set of tags describing the schedule.
public void setTags(Collection<Tag> tags)
An optional set of tags describing the schedule.
tags - An optional set of tags describing the schedule.public SnapshotSchedule withTags(Tag... tags)
An optional set of tags describing the schedule.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the
existing values.
tags - An optional set of tags describing the schedule.public SnapshotSchedule withTags(Collection<Tag> tags)
An optional set of tags describing the schedule.
tags - An optional set of tags describing the schedule.public void setNextInvocations(Collection<Date> nextInvocations)
nextInvocations - public SnapshotSchedule withNextInvocations(Date... nextInvocations)
NOTE: This method appends the values to the existing list (if any). Use
setNextInvocations(java.util.Collection) or withNextInvocations(java.util.Collection) if you
want to override the existing values.
nextInvocations - public SnapshotSchedule withNextInvocations(Collection<Date> nextInvocations)
nextInvocations - public void setAssociatedClusterCount(Integer associatedClusterCount)
associatedClusterCount - public Integer getAssociatedClusterCount()
public SnapshotSchedule withAssociatedClusterCount(Integer associatedClusterCount)
associatedClusterCount - public List<ClusterAssociatedToSchedule> getAssociatedClusters()
public void setAssociatedClusters(Collection<ClusterAssociatedToSchedule> associatedClusters)
associatedClusters - public SnapshotSchedule withAssociatedClusters(ClusterAssociatedToSchedule... associatedClusters)
NOTE: This method appends the values to the existing list (if any). Use
setAssociatedClusters(java.util.Collection) or withAssociatedClusters(java.util.Collection) if
you want to override the existing values.
associatedClusters - public SnapshotSchedule withAssociatedClusters(Collection<ClusterAssociatedToSchedule> associatedClusters)
associatedClusters - public String toString()
toString in class ObjectObject.toString()public SnapshotSchedule clone()
Copyright © 2019. All rights reserved.