public class Schedule
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Schedule.Builder |
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
Schedule() |
Schedule(Frequency frequency,
Optional<java.lang.Boolean> runNextInterval,
Optional<java.lang.Boolean> paused,
Optional<java.lang.String> lastRunTimeStarted,
Optional<java.lang.String> lastRunStatus,
Optional<java.lang.Boolean> toBeDeleted,
ScheduleInfo scheduleInfo,
java.lang.String name,
Optional<java.lang.Boolean> hasError,
Optional<java.lang.Long> scheduleID,
Optional<java.lang.Boolean> recurring,
Optional<java.lang.String> startingDate) |
Modifier and Type | Method and Description |
---|---|
Schedule.Builder |
asBuilder() |
static Schedule.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
Frequency |
getFrequency()
Indicates the frequency of the schedule occurrence.
|
Optional<java.lang.Boolean> |
getHasError()
Indicates whether or not the schedule has errors.
|
Optional<java.lang.String> |
getLastRunStatus()
Indicates the status of the last scheduled snapshot.
|
Optional<java.lang.String> |
getLastRunTimeStarted()
Indicates the last time the schedule started n ISO 8601 date string.
|
java.lang.String |
getName()
Unique name assigned to the schedule.
|
Optional<java.lang.Boolean> |
getPaused()
Indicates whether or not the schedule is paused.
|
Optional<java.lang.Boolean> |
getRecurring()
Indicates whether or not the schedule is recurring.
|
Optional<java.lang.Boolean> |
getRunNextInterval()
Indicates whether or not the schedule will run the next time the scheduler is active.
|
Optional<java.lang.Long> |
getScheduleID()
Unique ID of the schedule
|
ScheduleInfo |
getScheduleInfo()
Includes the unique name given to the schedule, the retention period for the snapshot that was created, and the volume ID of the volume from which the snapshot was created.
|
Optional<java.lang.String> |
getStartingDate()
Indicates the date the first time the schedule began of will begin.
|
Optional<java.lang.Boolean> |
getToBeDeleted()
Indicates if the schedule is marked for deletion.
|
int |
hashCode() |
void |
setFrequency(Frequency frequency) |
void |
setHasError(Optional<java.lang.Boolean> hasError) |
void |
setLastRunStatus(Optional<java.lang.String> lastRunStatus) |
void |
setLastRunTimeStarted(Optional<java.lang.String> lastRunTimeStarted) |
void |
setName(java.lang.String name) |
void |
setPaused(Optional<java.lang.Boolean> paused) |
void |
setRecurring(Optional<java.lang.Boolean> recurring) |
void |
setRunNextInterval(Optional<java.lang.Boolean> runNextInterval) |
void |
setScheduleID(Optional<java.lang.Long> scheduleID) |
void |
setScheduleInfo(ScheduleInfo scheduleInfo) |
void |
setStartingDate(Optional<java.lang.String> startingDate) |
void |
setToBeDeleted(Optional<java.lang.Boolean> toBeDeleted) |
java.util.Map<java.lang.String,java.lang.Object> |
toMap() |
java.lang.String |
toString() |
public static final long serialVersionUID
@Since(value="7.0") public Schedule(Frequency frequency, Optional<java.lang.Boolean> runNextInterval, Optional<java.lang.Boolean> paused, Optional<java.lang.String> lastRunTimeStarted, Optional<java.lang.String> lastRunStatus, Optional<java.lang.Boolean> toBeDeleted, ScheduleInfo scheduleInfo, java.lang.String name, Optional<java.lang.Boolean> hasError, Optional<java.lang.Long> scheduleID, Optional<java.lang.Boolean> recurring, Optional<java.lang.String> startingDate)
public Frequency getFrequency()
public void setFrequency(Frequency frequency)
public Optional<java.lang.Boolean> getRunNextInterval()
public void setRunNextInterval(Optional<java.lang.Boolean> runNextInterval)
public Optional<java.lang.Boolean> getPaused()
public void setPaused(Optional<java.lang.Boolean> paused)
public Optional<java.lang.String> getLastRunTimeStarted()
public void setLastRunTimeStarted(Optional<java.lang.String> lastRunTimeStarted)
public Optional<java.lang.String> getLastRunStatus()
public void setLastRunStatus(Optional<java.lang.String> lastRunStatus)
public Optional<java.lang.Boolean> getToBeDeleted()
public void setToBeDeleted(Optional<java.lang.Boolean> toBeDeleted)
public ScheduleInfo getScheduleInfo()
public void setScheduleInfo(ScheduleInfo scheduleInfo)
public java.lang.String getName()
public void setName(java.lang.String name)
public Optional<java.lang.Boolean> getHasError()
public void setHasError(Optional<java.lang.Boolean> hasError)
public Optional<java.lang.Long> getScheduleID()
public void setScheduleID(Optional<java.lang.Long> scheduleID)
public Optional<java.lang.Boolean> getRecurring()
public void setRecurring(Optional<java.lang.Boolean> recurring)
public Optional<java.lang.String> getStartingDate()
public void setStartingDate(Optional<java.lang.String> startingDate)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.Map<java.lang.String,java.lang.Object> toMap()
public java.lang.String toString()
toString
in class java.lang.Object
public static Schedule.Builder builder()
public final Schedule.Builder asBuilder()