public class Policy extends AbstractModel
Constructor and Description |
---|
Policy() |
Policy(Policy source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long[] |
getDayOfMonth()
Get Specifies the dates of the month on which a scheduled snapshot will be triggered.
|
Long[] |
getDayOfWeek()
Get Specifies the days of the week, from Monday to Sunday, on which a scheduled snapshot will be triggered.
|
Long[] |
getHour()
Get Specifies the time that that the scheduled snapshot policy will be triggered.
|
Long |
getIntervalDays()
Get Specifies the interval for creating scheduled snapshots in days.
|
void |
setDayOfMonth(Long[] DayOfMonth)
Set Specifies the dates of the month on which a scheduled snapshot will be triggered.
|
void |
setDayOfWeek(Long[] DayOfWeek)
Set Specifies the days of the week, from Monday to Sunday, on which a scheduled snapshot will be triggered.
|
void |
setHour(Long[] Hour)
Set Specifies the time that that the scheduled snapshot policy will be triggered.
|
void |
setIntervalDays(Long IntervalDays)
Set Specifies the interval for creating scheduled snapshots in days.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public Policy()
public Policy(Policy source)
public Long[] getHour()
public void setHour(Long[] Hour)
Hour
- Specifies the time that that the scheduled snapshot policy will be triggered. The unit is hour. The value range is [0-23]. 00:00-23:00 is a total of 24 time points that can be selected. 1 indicates 01:00, and so on.public Long[] getDayOfWeek()
public void setDayOfWeek(Long[] DayOfWeek)
DayOfWeek
- Specifies the days of the week, from Monday to Sunday, on which a scheduled snapshot will be triggered. Value range: [0, 6]. 0 indicates triggering on Sunday, 1-6 indicate triggering on Monday-Saturday.public Long[] getDayOfMonth()
public void setDayOfMonth(Long[] DayOfMonth)
DayOfMonth
- Specifies the dates of the month on which a scheduled snapshot will be triggered. Value range: [1, 31]. `1` to `31` indicate the specific dates of the month; for example, `5` indicates the 5th day of the month. Note: If you set a date that does not exist in some months such as 29, 30, and 31, these months will be skipped for scheduled snapshot creation.public Long getIntervalDays()
public void setIntervalDays(Long IntervalDays)
IntervalDays
- Specifies the interval for creating scheduled snapshots in days. Value range: [1, 365]. For example, if it is set to `5`, scheduled snapshots will be created every 5 days. Note: If you choose to back up by day, the time for the first backup is theoretically the day when the backup policy is created. If the backup policy creation time on the current day is later than the set backup time, the first backup will be performed in the second backup cycle.Copyright © 2023. All rights reserved.