Class MaintenanceWindow
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.database.model.MaintenanceWindow
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class MaintenanceWindow extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The scheduling details for the quarterly maintenance window.Patching and system updates take place during the maintenance window.
Note: Objects should always be created or deserialized using theMaintenanceWindow.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 theMaintenanceWindow.Builder
, which maintain a set of all explicitly set fields calledMaintenanceWindow.Builder.__explicitlySet__
. ThehashCode()
andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MaintenanceWindow.Builder
static class
MaintenanceWindow.PatchingMode
Cloud Exadata infrastructure node patching method, either “ROLLING” or “NONROLLING”.static class
MaintenanceWindow.Preference
The maintenance window scheduling preference.
-
Constructor Summary
Constructors Constructor Description MaintenanceWindow(MaintenanceWindow.Preference preference, MaintenanceWindow.PatchingMode patchingMode, Boolean isCustomActionTimeoutEnabled, Integer customActionTimeoutInMins, Boolean isMonthlyPatchingEnabled, List<Month> months, List<Integer> weeksOfMonth, List<DayOfWeek> daysOfWeek, List<Integer> hoursOfDay, Integer leadTimeInWeeks, List<Boolean> skipRu)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MaintenanceWindow.Builder
builder()
Create a new builder.boolean
equals(Object o)
Integer
getCustomActionTimeoutInMins()
Determines the amount of time the system will wait before the start of each database server patching operation.List<DayOfWeek>
getDaysOfWeek()
Days during the week when maintenance should be performed.List<Integer>
getHoursOfDay()
The window of hours during the day when maintenance should be performed.Boolean
getIsCustomActionTimeoutEnabled()
If true, enables the configuration of a custom action timeout (waiting period) between database server patching operations.Boolean
getIsMonthlyPatchingEnabled()
If true, enables the monthly patching option.Integer
getLeadTimeInWeeks()
Lead time window allows user to set a lead time to prepare for a down time.List<Month>
getMonths()
Months during the year when maintenance should be performed.MaintenanceWindow.PatchingMode
getPatchingMode()
Cloud Exadata infrastructure node patching method, either “ROLLING” or “NONROLLING”.MaintenanceWindow.Preference
getPreference()
The maintenance window scheduling preference.List<Boolean>
getSkipRu()
If true, skips the release update (RU) for the quarter.List<Integer>
getWeeksOfMonth()
Weeks during the month when maintenance should be performed.int
hashCode()
MaintenanceWindow.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
MaintenanceWindow
@Deprecated @ConstructorProperties({"preference","patchingMode","isCustomActionTimeoutEnabled","customActionTimeoutInMins","isMonthlyPatchingEnabled","months","weeksOfMonth","daysOfWeek","hoursOfDay","leadTimeInWeeks","skipRu"}) public MaintenanceWindow(MaintenanceWindow.Preference preference, MaintenanceWindow.PatchingMode patchingMode, Boolean isCustomActionTimeoutEnabled, Integer customActionTimeoutInMins, Boolean isMonthlyPatchingEnabled, List<Month> months, List<Integer> weeksOfMonth, List<DayOfWeek> daysOfWeek, List<Integer> hoursOfDay, Integer leadTimeInWeeks, List<Boolean> skipRu)
Deprecated.
-
-
Method Detail
-
builder
public static MaintenanceWindow.Builder builder()
Create a new builder.
-
toBuilder
public MaintenanceWindow.Builder toBuilder()
-
getPreference
public MaintenanceWindow.Preference getPreference()
The maintenance window scheduling preference.- Returns:
- the value
-
getPatchingMode
public MaintenanceWindow.PatchingMode getPatchingMode()
Cloud Exadata infrastructure node patching method, either “ROLLING” or “NONROLLING”.Default value is ROLLING.
IMPORTANT*: Non-rolling infrastructure patching involves system down time. See [Oracle-Managed Infrastructure Maintenance Updates](https://docs.oracle.com/iaas/Content/Database/Concepts/examaintenance.htm#Oracle) for more information.
- Returns:
- the value
-
getIsCustomActionTimeoutEnabled
public Boolean getIsCustomActionTimeoutEnabled()
If true, enables the configuration of a custom action timeout (waiting period) between database server patching operations.- Returns:
- the value
-
getCustomActionTimeoutInMins
public Integer getCustomActionTimeoutInMins()
Determines the amount of time the system will wait before the start of each database server patching operation.Custom action timeout is in minutes and valid value is between 15 to 120 (inclusive).
- Returns:
- the value
-
getIsMonthlyPatchingEnabled
public Boolean getIsMonthlyPatchingEnabled()
If true, enables the monthly patching option.- Returns:
- the value
-
getMonths
public List<Month> getMonths()
Months during the year when maintenance should be performed.- Returns:
- the value
-
getWeeksOfMonth
public List<Integer> getWeeksOfMonth()
Weeks during the month when maintenance should be performed.Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week. For example, to allow maintenance during the 2nd week of the month (from the 8th day to the 14th day of the month), use the value 2. Maintenance cannot be scheduled for the fifth week of months that contain more than 28 days. Note that this parameter works in conjunction with the daysOfWeek and hoursOfDay parameters to allow you to specify specific days of the week and hours that maintenance will be performed.
- Returns:
- the value
-
getDaysOfWeek
public List<DayOfWeek> getDaysOfWeek()
Days during the week when maintenance should be performed.- Returns:
- the value
-
getHoursOfDay
public List<Integer> getHoursOfDay()
The window of hours during the day when maintenance should be performed.The window is a 4 hour slot. Valid values are - 0 - represents time slot 0:00 - 3:59 UTC - 4 - represents time slot 4:00 - 7:59 UTC - 8 - represents time slot 8:00 - 11:59 UTC - 12 - represents time slot 12:00 - 15:59 UTC - 16 - represents time slot 16:00 - 19:59 UTC - 20 - represents time slot 20:00 - 23:59 UTC
- Returns:
- the value
-
getLeadTimeInWeeks
public Integer getLeadTimeInWeeks()
Lead time window allows user to set a lead time to prepare for a down time.The lead time is in weeks and valid value is between 1 to 4.
- Returns:
- the value
-
getSkipRu
public List<Boolean> getSkipRu()
If true, skips the release update (RU) for the quarter.You cannot skip two consecutive quarters. An RU skip request will only be honoured if the current version of the Autonomous Container Database is supported for current quarter.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-