Class BetaManagedAgentsScheduleParams
-
- All Implemented Interfaces:
public final class BetaManagedAgentsScheduleParamsA recurring schedule. Discriminated union — only cron is supported currently.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsScheduleParams.BuilderA builder for BetaManagedAgentsScheduleParams.
-
Method Summary
Modifier and Type Method Description final Stringexpression()5-field POSIX cron expression: minute hour day-of-month month day-of-week (e.g., "0 9 * * 1-5" for weekdays at 9am). final Stringtimezone()Required. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("cron")final JsonField<String>_expression()Returns the raw JSON value of expression. final JsonField<String>_timezone()Returns the raw JSON value of timezone. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsScheduleParams.BuildertoBuilder()final BetaManagedAgentsScheduleParamsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsScheduleParams.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsScheduleParams. -
-
Method Detail
-
expression
final String expression()
5-field POSIX cron expression: minute hour day-of-month month day-of-week (e.g., "0 9 * * 1-5" for weekdays at 9am). Day-of-week is 0-7 where 0 and 7 both mean Sunday. Extended cron syntax - seconds or year fields, and the special characters L, W, #, and ? - is not supported, nor are predefined shortcuts (@daily).
-
timezone
final String timezone()
Required. IANA timezone identifier (e.g., "America/Los_Angeles", "UTC"). Validated against the IANA timezone database.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("cron")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_expression
final JsonField<String> _expression()
Returns the raw JSON value of expression.
Unlike expression, this method doesn't throw if the JSON field has an unexpected type.
-
_timezone
final JsonField<String> _timezone()
Returns the raw JSON value of timezone.
Unlike timezone, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsScheduleParams.Builder toBuilder()
-
validate
final BetaManagedAgentsScheduleParams validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaManagedAgentsScheduleParams.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsScheduleParams.
The following fields are required:
.expression() .timezone()
-
-
-
-