@Generated(value="OracleSDKGenerator", comments="API Version: 20181001") public final class CronExecutionSchedule extends ExecutionSchedule
An autoscaling execution schedule that uses a cron expression.
Note: Objects should always be created or deserialized using the CronExecutionSchedule.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 the CronExecutionSchedule.Builder
, which maintain a
set of all explicitly set fields called CronExecutionSchedule.Builder.__explicitlySet__
. The hashCode()
and equals(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
).
Modifier and Type | Class and Description |
---|---|
static class |
CronExecutionSchedule.Builder |
ExecutionSchedule.Timezone
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
CronExecutionSchedule(ExecutionSchedule.Timezone timezone,
String expression)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static CronExecutionSchedule.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getExpression()
A cron expression that represents the time at which to execute the autoscaling policy.
|
int |
hashCode() |
CronExecutionSchedule.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
getTimezone
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public CronExecutionSchedule(ExecutionSchedule.Timezone timezone, String expression)
public static CronExecutionSchedule.Builder builder()
Create a new builder.
public CronExecutionSchedule.Builder toBuilder()
public String getExpression()
A cron expression that represents the time at which to execute the autoscaling policy.
Cron expressions have this format: <second> <minute> <hour> <day of month> <month>
<day of week> <year>
You can use special characters that are supported with the Quartz cron implementation.
You must specify 0
as the value for seconds.
Example: 0 15 10 ? * *
public String toString()
toString
in class ExecutionSchedule
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class ExecutionSchedule
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class ExecutionSchedule
public int hashCode()
hashCode
in class ExecutionSchedule
Copyright © 2016–2024. All rights reserved.