public static enum VolumeBackupSchedule.OffsetType extends Enum<VolumeBackupSchedule.OffsetType>
Indicates how the offset is defined. If value is STRUCTURED, then hourOfDay, dayOfWeek, dayOfMonth, and month fields are used and offsetSeconds will be ignored in requests and users should ignore its value from the responses.
hourOfDay is applicable for periods ONE_DAY, ONE_WEEK, ONE_MONTH and ONE_YEAR.
dayOfWeek is applicable for period ONE_WEEK.
dayOfMonth is applicable for periods ONE_MONTH and ONE_YEAR.
‘month’ is applicable for period ‘ONE_YEAR’.
They will be ignored in the requests for inapplicable periods.
If value is NUMERIC_SECONDS, then offsetSeconds will be used for both requests and responses and the structured fields will be ignored in the requests and users should ignore their values from the responses.
For clients using older versions of Apis and not sending offsetType in their requests, the behaviour is just like NUMERIC_SECONDS.
| Enum Constant and Description |
|---|
NumericSeconds |
Structured |
UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by this
version of the SDK.
|
| Modifier and Type | Method and Description |
|---|---|
static VolumeBackupSchedule.OffsetType |
create(String key) |
String |
getValue() |
static VolumeBackupSchedule.OffsetType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VolumeBackupSchedule.OffsetType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VolumeBackupSchedule.OffsetType Structured
public static final VolumeBackupSchedule.OffsetType NumericSeconds
public static final VolumeBackupSchedule.OffsetType UnknownEnumValue
public static VolumeBackupSchedule.OffsetType[] values()
for (VolumeBackupSchedule.OffsetType c : VolumeBackupSchedule.OffsetType.values()) System.out.println(c);
public static VolumeBackupSchedule.OffsetType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getValue()
public static VolumeBackupSchedule.OffsetType create(String key)
Copyright © 2016–2020. All rights reserved.