Package com.oracle.bmc.database.model
Class WindowPreferenceDetail
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.database.model.WindowPreferenceDetail
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class WindowPreferenceDetail extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The Single Scheduling Window details.
Note: Objects should always be created or deserialized using theWindowPreferenceDetail.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 theWindowPreferenceDetail.Builder
, which maintain a set of all explicitly set fields calledWindowPreferenceDetail.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
WindowPreferenceDetail.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WindowPreferenceDetail.Builder
builder()
Create a new builder.boolean
equals(Object o)
List<DayOfWeek>
getDaysOfWeek()
Days during the week when scheduling window should be performed.Integer
getDuration()
Duration window allows user to set a duration they plan to allocate for Scheduling window.Boolean
getIsEnforcedDuration()
Indicates if duration the user plans to allocate for scheduling window is strictly enforced.List<Month>
getMonths()
Months during the year when scheduled window should be performed.String
getStartTime()
The scheduling window start time.List<Integer>
getWeeksOfMonth()
Weeks during the month when scheduled window should be performed.int
hashCode()
WindowPreferenceDetail.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
WindowPreferenceDetail
@Deprecated @ConstructorProperties({"months","weeksOfMonth","daysOfWeek","startTime","duration","isEnforcedDuration"}) public WindowPreferenceDetail(List<Month> months, List<Integer> weeksOfMonth, List<DayOfWeek> daysOfWeek, String startTime, Integer duration, Boolean isEnforcedDuration)
Deprecated.
-
-
Method Detail
-
builder
public static WindowPreferenceDetail.Builder builder()
Create a new builder.
-
toBuilder
public WindowPreferenceDetail.Builder toBuilder()
-
getMonths
public List<Month> getMonths()
Months during the year when scheduled window should be performed.- Returns:
- the value
-
getWeeksOfMonth
public List<Integer> getWeeksOfMonth()
Weeks during the month when scheduled window 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 scheduling window during the 2nd week of the month (from the 8th day to the 14th day of the month), use the value 2. Scheduling window 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 startTime parameters to allow you to specify specific days of the week and hours that scheduled window will be performed.
- Returns:
- the value
-
getDaysOfWeek
public List<DayOfWeek> getDaysOfWeek()
Days during the week when scheduling window should be performed.- Returns:
- the value
-
getStartTime
public String getStartTime()
The scheduling window start time.The value must use the ISO-8601 format “hh:mm”.
- Returns:
- the value
-
getDuration
public Integer getDuration()
Duration window allows user to set a duration they plan to allocate for Scheduling window.The duration is in minutes.
- Returns:
- the value
-
getIsEnforcedDuration
public Boolean getIsEnforcedDuration()
Indicates if duration the user plans to allocate for scheduling window is strictly enforced.The default value is FALSE.
- 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
-
-