Package com.oracle.bmc.jms.model
Class TaskSchedule
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.jms.model.TaskSchedule
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20210610") public final class TaskSchedule extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe properties of a task schedule.
 Note: Objects should always be created or deserialized using theTaskSchedule.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 theTaskSchedule.Builder, which maintain a set of all explicitly set fields calledTaskSchedule.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 SummaryNested Classes Modifier and Type Class Description static classTaskSchedule.Builderstatic classTaskSchedule.LifecycleStateAll possible status of task schedule.
 - 
Constructor SummaryConstructors Constructor Description TaskSchedule(String id, String fleetId, String name, TaskSchedule.LifecycleState lifecycleState, String createdBy, String executionRecurrences, TaskDetails taskDetails, Date timeCreated, Date timeLastRun, Date timeNextRun, Date timeLastUpdated)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TaskSchedule.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetCreatedBy()Name of the task creator.StringgetExecutionRecurrences()Recurrence specification for the task schedule execution (formatted according to RFC-5545).StringgetFleetId()The OCID of the Fleet.StringgetId()The OCID to identify this task schedule.TaskSchedule.LifecycleStategetLifecycleState()All possible status of task schedule.StringgetName()The name of the task schedule.TaskDetailsgetTaskDetails()DategetTimeCreated()The date and time the task schedule was created (formatted according to RFC3339).DategetTimeLastRun()The date and time the task schedule ran last (formatted according to RFC3339).DategetTimeLastUpdated()The date and time the task schedule was last updated (formatted according to RFC3339).DategetTimeNextRun()The date and time the task schedule will run next (formatted according to RFC3339).inthashCode()TaskSchedule.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
TaskSchedule@Deprecated @ConstructorProperties({"id","fleetId","name","lifecycleState","createdBy","executionRecurrences","taskDetails","timeCreated","timeLastRun","timeNextRun","timeLastUpdated"}) public TaskSchedule(String id, String fleetId, String name, TaskSchedule.LifecycleState lifecycleState, String createdBy, String executionRecurrences, TaskDetails taskDetails, Date timeCreated, Date timeLastRun, Date timeNextRun, Date timeLastUpdated) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static TaskSchedule.Builder builder() Create a new builder.
 - 
toBuilderpublic TaskSchedule.Builder toBuilder() 
 - 
getNamepublic String getName() The name of the task schedule.- Returns:
- the value
 
 - 
getLifecycleStatepublic TaskSchedule.LifecycleState getLifecycleState() All possible status of task schedule.- Returns:
- the value
 
 - 
getCreatedBypublic String getCreatedBy() Name of the task creator.- Returns:
- the value
 
 - 
getExecutionRecurrencespublic String getExecutionRecurrences() Recurrence specification for the task schedule execution (formatted according to RFC-5545).To run daily for 10 occurrences starts on September 2, 2024 09:00 EDT, it should be ‘DTSTART;TZID=America/New_York:20240902T090000 RRULE:FREQ=DAILY;COUNT=10’. To run every 3 hours from 9:00 AM to 5:00 PM on August 5, 2024 EDT, it should be ‘DTSTART;TZID=America/New_York:20240805T090000 RRULE:FREQ=HOURLY;INTERVAL=3;UNTIL=20240805T170000Z’. - Returns:
- the value
 
 - 
getTaskDetailspublic TaskDetails getTaskDetails() 
 - 
getTimeCreatedpublic Date getTimeCreated() The date and time the task schedule was created (formatted according to RFC3339).- Returns:
- the value
 
 - 
getTimeLastRunpublic Date getTimeLastRun() The date and time the task schedule ran last (formatted according to RFC3339).- Returns:
- the value
 
 - 
getTimeNextRunpublic Date getTimeNextRun() The date and time the task schedule will run next (formatted according to RFC3339).- Returns:
- the value
 
 - 
getTimeLastUpdatedpublic Date getTimeLastUpdated() The date and time the task schedule was last updated (formatted according to RFC3339).- Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic 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
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-