Class StandardTask
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.loganalytics.model.ScheduledTask
-
- com.oracle.bmc.loganalytics.model.StandardTask
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20200601") public final class StandardTask extends ScheduledTaskLog analytics scheduled task resource.
Note: Objects should always be created or deserialized using theStandardTask.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 theStandardTask.Builder, which maintain a set of all explicitly set fields calledStandardTask.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 classStandardTask.Builderstatic classStandardTask.LastExecutionStatusThe most recent task execution status.-
Nested classes/interfaces inherited from class com.oracle.bmc.loganalytics.model.ScheduledTask
ScheduledTask.Kind, ScheduledTask.LifecycleState, ScheduledTask.PauseReason, ScheduledTask.TaskStatus
-
-
Constructor Summary
Constructors Constructor Description StandardTask(String id, String displayName, TaskType taskType, List<Schedule> schedules, Action action, ScheduledTask.TaskStatus taskStatus, ScheduledTask.PauseReason pauseReason, String workRequestId, Long numOccurrences, String compartmentId, Date timeCreated, Date timeUpdated, Date timeOfNextExecution, ScheduledTask.LifecycleState lifecycleState, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, StandardTask.LastExecutionStatus lastExecutionStatus, Date timeLastExecuted)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StandardTask.Builderbuilder()Create a new builder.booleanequals(Object o)StandardTask.LastExecutionStatusgetLastExecutionStatus()The most recent task execution status.DategetTimeLastExecuted()The date and time the scheduled task last executed, in the format defined by RFC3339.inthashCode()StandardTask.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.-
Methods inherited from class com.oracle.bmc.loganalytics.model.ScheduledTask
getAction, getCompartmentId, getDefinedTags, getDisplayName, getFreeformTags, getId, getLifecycleState, getNumOccurrences, getPauseReason, getSchedules, getTaskStatus, getTaskType, getTimeCreated, getTimeOfNextExecution, getTimeUpdated, getWorkRequestId
-
-
-
-
Constructor Detail
-
StandardTask
@Deprecated public StandardTask(String id, String displayName, TaskType taskType, List<Schedule> schedules, Action action, ScheduledTask.TaskStatus taskStatus, ScheduledTask.PauseReason pauseReason, String workRequestId, Long numOccurrences, String compartmentId, Date timeCreated, Date timeUpdated, Date timeOfNextExecution, ScheduledTask.LifecycleState lifecycleState, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, StandardTask.LastExecutionStatus lastExecutionStatus, Date timeLastExecuted)
Deprecated.
-
-
Method Detail
-
builder
public static StandardTask.Builder builder()
Create a new builder.
-
toBuilder
public StandardTask.Builder toBuilder()
-
getLastExecutionStatus
public StandardTask.LastExecutionStatus getLastExecutionStatus()
The most recent task execution status.- Returns:
- the value
-
getTimeLastExecuted
public Date getTimeLastExecuted()
The date and time the scheduled task last executed, in the format defined by RFC3339.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classScheduledTask
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toStringin classScheduledTask- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classScheduledTask
-
hashCode
public int hashCode()
- Overrides:
hashCodein classScheduledTask
-
-