public class ApiCreateScheduleRequest
extends Object
implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ApiCreateScheduleRequest.Builder |
| Constructor and Description |
|---|
ApiCreateScheduleRequest(Map<String,Object> attributes,
Optional<Long> hours,
Optional<Long> minutes,
Optional<Boolean> paused,
Optional<Boolean> recurring,
String scheduleName,
String scheduleType,
ApiScheduleInfo scheduleInfo,
Optional<String> startingDate,
Optional<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(Object o) |
Map<String,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<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<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<Long[]> |
getMonthdays()
The days of the month that a snapshot will be made.
|
Optional<Boolean> |
getPaused()
Indicates if the schedule should be paused or not.
|
Optional<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. |
String |
getScheduleName()
Unique name for the schedule.
|
String |
getScheduleType()
Indicates the type of schedule to create.
Valid value is: snapshot |
Optional<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() |
String |
toString() |
@Since(value="8.0") public ApiCreateScheduleRequest(Map<String,Object> attributes, Optional<Long> hours, Optional<Long> minutes, Optional<Boolean> paused, Optional<Boolean> recurring, String scheduleName, String scheduleType, ApiScheduleInfo scheduleInfo, Optional<String> startingDate, Optional<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 Map<String,Object> getAttributes()
public Optional<Long> getHours()
public Optional<Long> getMinutes()
public Optional<Boolean> getPaused()
public Optional<Boolean> getRecurring()
public String getScheduleName()
public String getScheduleType()
public ApiScheduleInfo getScheduleInfo()
public Optional<String> getStartingDate()
public Optional<Long[]> getMonthdays()
public Optional<ApiWeekday[]> getWeekdays()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic static ApiCreateScheduleRequest.Builder builder()
public final ApiCreateScheduleRequest.Builder asBuilder()
Copyright © 2014-2016 NetApp, Inc. All Rights Reserved.