public class ApiCreateScheduleRequest
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ApiCreateScheduleRequest.Builder |
Constructor and Description |
---|
ApiCreateScheduleRequest(java.util.Map<java.lang.String,java.lang.Object> attributes,
Optional<java.lang.Long> hours,
Optional<java.lang.Long> minutes,
Optional<java.lang.Boolean> paused,
Optional<java.lang.Boolean> recurring,
java.lang.String scheduleName,
java.lang.String scheduleType,
ApiScheduleInfo scheduleInfo,
Optional<java.lang.String> startingDate,
Optional<java.lang.Long[]> monthdays,
Optional<ApiWeekday[]> weekdays)
The Request object for the "CreateSchedule" API Service call.
|
Modifier and Type | Method and Description |
---|---|
ApiCreateScheduleRequest.Builder |
asBuilder() |
static ApiCreateScheduleRequest.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
The "frequency" object is returned in "attributes" to indicate the frequency at which the snapshot will be made.
Valid values for "frequency" are: Days of Week Days of Month Time Interval |
Optional<java.lang.Long> |
getHours()
Number of hours between snapshots or hour at which the snapshot will occur in "Days of Week", or "Days of Month" mode.
Valid values: 0 - 24 |
Optional<java.lang.Long> |
getMinutes()
Number of minutes between snapshots or minute at which the snapshot will occur in "Days of Week", or "Days of Month" mode.
Valid values: 0 - 59 |
Optional<java.lang.Long[]> |
getMonthdays()
The days of the month that a snapshot will be made.
|
Optional<java.lang.Boolean> |
getPaused()
Indicates if the schedule should be paused or not.
|
Optional<java.lang.Boolean> |
getRecurring()
Indicates if the schedule will be recurring or not.
|
ApiScheduleInfo |
getScheduleInfo()
An object of schedule information about how the snapshot should be created at each scheduled interval.
volumeID - The ID of the volume to be included in the snapshot. |
java.lang.String |
getScheduleName()
Unique name for the schedule.
|
java.lang.String |
getScheduleType()
Indicates the type of schedule to create.
Valid value is: snapshot |
Optional<java.lang.String> |
getStartingDate()
Time after which the schedule will be run.
|
Optional<ApiWeekday[]> |
getWeekdays()
Day of the week the snapshot is to be created.
|
int |
hashCode() |
java.lang.String |
toString() |
@Since(value="8.0") public ApiCreateScheduleRequest(java.util.Map<java.lang.String,java.lang.Object> attributes, Optional<java.lang.Long> hours, Optional<java.lang.Long> minutes, Optional<java.lang.Boolean> paused, Optional<java.lang.Boolean> recurring, java.lang.String scheduleName, java.lang.String scheduleType, ApiScheduleInfo scheduleInfo, Optional<java.lang.String> startingDate, Optional<java.lang.Long[]> monthdays, Optional<ApiWeekday[]> weekdays)
attributes
- [required] The "frequency" object is returned in "attributes" to indicate the frequency at which the snapshot will be made.hours
- (optional) Number of hours between snapshots or hour at which the snapshot will occur in "Days of Week", or "Days of Month" mode.minutes
- (optional) Number of minutes between snapshots or minute at which the snapshot will occur in "Days of Week", or "Days of Month" mode.paused
- (optional) Indicates if the schedule should be paused or not.recurring
- (optional) Indicates if the schedule will be recurring or not.scheduleName
- [required] Unique name for the schedule.scheduleType
- [required] Indicates the type of schedule to create.scheduleInfo
- [required] An object of schedule information about how the snapshot should be created at each scheduled interval.startingDate
- (optional) Time after which the schedule will be run. If not set the schedule starts immediately. Formatted in UTC time.monthdays
- (optional) The days of the month that a snapshot will be made. weekdays
- (optional) Day of the week the snapshot is to be created. public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
public Optional<java.lang.Long> getHours()
public Optional<java.lang.Long> getMinutes()
public Optional<java.lang.Boolean> getPaused()
public Optional<java.lang.Boolean> getRecurring()
public java.lang.String getScheduleName()
public java.lang.String getScheduleType()
public ApiScheduleInfo getScheduleInfo()
public Optional<java.lang.String> getStartingDate()
public Optional<java.lang.Long[]> getMonthdays()
public Optional<ApiWeekday[]> getWeekdays()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static ApiCreateScheduleRequest.Builder builder()
public final ApiCreateScheduleRequest.Builder asBuilder()