Enum VolumeBackupSchedule.OffsetType
- java.lang.Object
-
- java.lang.Enum<VolumeBackupSchedule.OffsetType>
-
- com.oracle.bmc.core.model.VolumeBackupSchedule.OffsetType
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<VolumeBackupSchedule.OffsetType>
- Enclosing class:
- VolumeBackupSchedule
public static enum VolumeBackupSchedule.OffsetType extends Enum<VolumeBackupSchedule.OffsetType> implements BmcEnum
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 Summary
Enum Constants Enum Constant 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
Structured
public static final VolumeBackupSchedule.OffsetType Structured
-
NumericSeconds
public static final VolumeBackupSchedule.OffsetType NumericSeconds
-
UnknownEnumValue
public static final VolumeBackupSchedule.OffsetType UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
-
-
Method Detail
-
values
public static VolumeBackupSchedule.OffsetType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VolumeBackupSchedule.OffsetType c : VolumeBackupSchedule.OffsetType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VolumeBackupSchedule.OffsetType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
create
public static VolumeBackupSchedule.OffsetType create(String key)
-
-