@Generated(value="OracleSDKGenerator", comments="API Version: 20171215") public final class SnapshotSchedule extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The snapshot schedule is a structure within a parent file system snapshot policy. It contains
data about the frequency of snapshot creation and the retention time of the taken snapshots.
Note: Objects should always be created or deserialized using the SnapshotSchedule.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the SnapshotSchedule.Builder
, which maintain a
set of all explicitly set fields called SnapshotSchedule.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
SnapshotSchedule.Builder |
static class |
SnapshotSchedule.DayOfWeek
The day of the week to create a scheduled snapshot.
|
static class |
SnapshotSchedule.Month
The month to create a scheduled snapshot.
|
static class |
SnapshotSchedule.Period
The frequency of scheduled snapshots.
|
static class |
SnapshotSchedule.TimeZone
Time zone used for scheduling the snapshot.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
SnapshotSchedule(String schedulePrefix,
Date timeScheduleStart,
SnapshotSchedule.Period period,
Long retentionDurationInSeconds,
SnapshotSchedule.TimeZone timeZone,
Integer hourOfDay,
SnapshotSchedule.DayOfWeek dayOfWeek,
Integer dayOfMonth,
SnapshotSchedule.Month month)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static SnapshotSchedule.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Integer |
getDayOfMonth()
The day of the month to create a scheduled snapshot.
|
SnapshotSchedule.DayOfWeek |
getDayOfWeek()
The day of the week to create a scheduled snapshot.
|
Integer |
getHourOfDay()
The hour of the day to create a DAILY, WEEKLY, MONTHLY, or YEARLY snapshot.
|
SnapshotSchedule.Month |
getMonth()
The month to create a scheduled snapshot.
|
SnapshotSchedule.Period |
getPeriod()
The frequency of scheduled snapshots.
|
Long |
getRetentionDurationInSeconds()
The number of seconds to retain snapshots created with this schedule.
|
String |
getSchedulePrefix()
A name prefix to be applied to snapshots created by this schedule.
|
Date |
getTimeScheduleStart()
The starting point used to begin the scheduling of the snapshots based upon recurrence string
in RFC 3339 timestamp format.
|
SnapshotSchedule.TimeZone |
getTimeZone()
Time zone used for scheduling the snapshot.
|
int |
hashCode() |
SnapshotSchedule.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"schedulePrefix","timeScheduleStart","period","retentionDurationInSeconds","timeZone","hourOfDay","dayOfWeek","dayOfMonth","month"}) public SnapshotSchedule(String schedulePrefix, Date timeScheduleStart, SnapshotSchedule.Period period, Long retentionDurationInSeconds, SnapshotSchedule.TimeZone timeZone, Integer hourOfDay, SnapshotSchedule.DayOfWeek dayOfWeek, Integer dayOfMonth, SnapshotSchedule.Month month)
public static SnapshotSchedule.Builder builder()
Create a new builder.
public SnapshotSchedule.Builder toBuilder()
public String getSchedulePrefix()
A name prefix to be applied to snapshots created by this schedule.
Example: compliance1
public Date getTimeScheduleStart()
The starting point used to begin the scheduling of the snapshots based upon recurrence string
in RFC 3339 timestamp format. If no timeScheduleStart
is provided, the value will be set to the time when the schedule was
created.
public SnapshotSchedule.Period getPeriod()
The frequency of scheduled snapshots.
public Long getRetentionDurationInSeconds()
The number of seconds to retain snapshots created with this schedule. Snapshot expiration time will not be set if this value is empty.
public SnapshotSchedule.TimeZone getTimeZone()
Time zone used for scheduling the snapshot.
public Integer getHourOfDay()
The hour of the day to create a DAILY, WEEKLY, MONTHLY, or YEARLY snapshot. If not set, the system chooses a value at creation time.
public SnapshotSchedule.DayOfWeek getDayOfWeek()
The day of the week to create a scheduled snapshot. Used for WEEKLY snapshot schedules. If not set, the system chooses a value at creation time.
public Integer getDayOfMonth()
The day of the month to create a scheduled snapshot. If the day does not exist for the month, snapshot creation will be skipped. Used for MONTHLY and YEARLY snapshot schedules. If not set, the system chooses a value at creation time.
public SnapshotSchedule.Month getMonth()
The month to create a scheduled snapshot. Used only for YEARLY snapshot schedules. If not set, the system chooses a value at creation time.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.