Package com.oracle.bmc.database.model
Class ExecutionWindow
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.database.model.ExecutionWindow
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class ExecutionWindow extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Details of an execution window.
Note: Objects should always be created or deserialized using theExecutionWindow.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 theExecutionWindow.Builder
, which maintain a set of all explicitly set fields calledExecutionWindow.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
ExecutionWindow.Builder
static class
ExecutionWindow.LifecycleState
The current state of the Schedule Policy.static class
ExecutionWindow.LifecycleSubstate
The current sub-state of the execution window.static class
ExecutionWindow.WindowType
The execution window is of PLANNED or UNPLANNED type.
-
Constructor Summary
Constructors Constructor Description ExecutionWindow(String id, String executionResourceId, String compartmentId, String displayName, String description, ExecutionWindow.LifecycleState lifecycleState, ExecutionWindow.LifecycleSubstate lifecycleSubstate, String lifecycleDetails, Date timeCreated, Date timeUpdated, Date timeStarted, Date timeEnded, Date timeScheduled, Integer windowDurationInMins, Boolean isEnforcedDuration, Integer estimatedTimeInMins, Integer totalTimeTakenInMins, ExecutionWindow.WindowType windowType, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExecutionWindow.Builder
builder()
Create a new builder.boolean
equals(Object o)
String
getCompartmentId()
The OCID of the compartment.Map<String,Map<String,Object>>
getDefinedTags()
Defined tags for this resource.String
getDescription()
Description of the execution window.String
getDisplayName()
The user-friendly name for the execution window.Integer
getEstimatedTimeInMins()
The estimated time of the execution window in minutes.String
getExecutionResourceId()
The OCID of the execution resource the execution window belongs to.Map<String,String>
getFreeformTags()
Free-form tags for this resource.String
getId()
The OCID of the execution window.Boolean
getIsEnforcedDuration()
Indicates if duration the user plans to allocate for scheduling window is strictly enforced.String
getLifecycleDetails()
Additional information about the current lifecycle state.ExecutionWindow.LifecycleState
getLifecycleState()
The current state of the Schedule Policy.ExecutionWindow.LifecycleSubstate
getLifecycleSubstate()
The current sub-state of the execution window.Date
getTimeCreated()
The date and time the execution window was created.Date
getTimeEnded()
The date and time that the execution window ended.Date
getTimeScheduled()
The scheduled start date and time of the execution window.Date
getTimeStarted()
The date and time that the execution window was started.Date
getTimeUpdated()
The last date and time that the execution window was updated.Integer
getTotalTimeTakenInMins()
The total time taken by corresponding resource activity in minutes.Integer
getWindowDurationInMins()
Duration window allows user to set a duration they plan to allocate for Scheduling window.ExecutionWindow.WindowType
getWindowType()
The execution window is of PLANNED or UNPLANNED type.int
hashCode()
ExecutionWindow.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
ExecutionWindow
@Deprecated @ConstructorProperties({"id","executionResourceId","compartmentId","displayName","description","lifecycleState","lifecycleSubstate","lifecycleDetails","timeCreated","timeUpdated","timeStarted","timeEnded","timeScheduled","windowDurationInMins","isEnforcedDuration","estimatedTimeInMins","totalTimeTakenInMins","windowType","freeformTags","definedTags"}) public ExecutionWindow(String id, String executionResourceId, String compartmentId, String displayName, String description, ExecutionWindow.LifecycleState lifecycleState, ExecutionWindow.LifecycleSubstate lifecycleSubstate, String lifecycleDetails, Date timeCreated, Date timeUpdated, Date timeStarted, Date timeEnded, Date timeScheduled, Integer windowDurationInMins, Boolean isEnforcedDuration, Integer estimatedTimeInMins, Integer totalTimeTakenInMins, ExecutionWindow.WindowType windowType, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags)
Deprecated.
-
-
Method Detail
-
builder
public static ExecutionWindow.Builder builder()
Create a new builder.
-
toBuilder
public ExecutionWindow.Builder toBuilder()
-
getExecutionResourceId
public String getExecutionResourceId()
The OCID of the execution resource the execution window belongs to.- Returns:
- the value
-
getDisplayName
public String getDisplayName()
The user-friendly name for the execution window.The name does not need to be unique.
- Returns:
- the value
-
getDescription
public String getDescription()
Description of the execution window.- Returns:
- the value
-
getLifecycleState
public ExecutionWindow.LifecycleState getLifecycleState()
The current state of the Schedule Policy.Valid states are CREATED, SCHEDULED, IN_PROGRESS, FAILED, CANCELED, UPDATING, DELETED, SUCCEEDED and PARTIAL_SUCCESS.
- Returns:
- the value
-
getLifecycleSubstate
public ExecutionWindow.LifecycleSubstate getLifecycleSubstate()
The current sub-state of the execution window.Valid states are DURATION_EXCEEDED, MAINTENANCE_IN_PROGRESS and WAITING.
- Returns:
- the value
-
getLifecycleDetails
public String getLifecycleDetails()
Additional information about the current lifecycle state.- Returns:
- the value
-
getTimeCreated
public Date getTimeCreated()
The date and time the execution window was created.- Returns:
- the value
-
getTimeUpdated
public Date getTimeUpdated()
The last date and time that the execution window was updated.- Returns:
- the value
-
getTimeStarted
public Date getTimeStarted()
The date and time that the execution window was started.- Returns:
- the value
-
getTimeEnded
public Date getTimeEnded()
The date and time that the execution window ended.- Returns:
- the value
-
getTimeScheduled
public Date getTimeScheduled()
The scheduled start date and time of the execution window.- Returns:
- the value
-
getWindowDurationInMins
public Integer getWindowDurationInMins()
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
-
getEstimatedTimeInMins
public Integer getEstimatedTimeInMins()
The estimated time of the execution window in minutes.- Returns:
- the value
-
getTotalTimeTakenInMins
public Integer getTotalTimeTakenInMins()
The total time taken by corresponding resource activity in minutes.- Returns:
- the value
-
getWindowType
public ExecutionWindow.WindowType getWindowType()
The execution window is of PLANNED or UNPLANNED type.- Returns:
- the value
-
getFreeformTags
public Map<String,String> getFreeformTags()
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
- Returns:
- the value
-
getDefinedTags
public Map<String,Map<String,Object>> getDefinedTags()
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- 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
-
-