Class BetaManagedAgentsCronSchedule.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsCronSchedule.BuilderA builder for BetaManagedAgentsCronSchedule.
-
-
Method Summary
-
-
Method Detail
-
expression
final BetaManagedAgentsCronSchedule.Builder expression(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).
-
expression
final BetaManagedAgentsCronSchedule.Builder expression(JsonField<String> expression)
Sets Builder.expression to an arbitrary JSON value.
You should usually call Builder.expression with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
timezone
final BetaManagedAgentsCronSchedule.Builder timezone(String timezone)
IANA timezone identifier (e.g., "America/Los_Angeles", "UTC").
-
timezone
final BetaManagedAgentsCronSchedule.Builder timezone(JsonField<String> timezone)
Sets Builder.timezone to an arbitrary JSON value.
You should usually call Builder.timezone with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaManagedAgentsCronSchedule.Builder type(BetaManagedAgentsCronSchedule.Type type)
-
type
final BetaManagedAgentsCronSchedule.Builder type(JsonField<BetaManagedAgentsCronSchedule.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
lastRunAt
final BetaManagedAgentsCronSchedule.Builder lastRunAt(OffsetDateTime lastRunAt)
A timestamp in RFC 3339 format
-
lastRunAt
final BetaManagedAgentsCronSchedule.Builder lastRunAt(Optional<OffsetDateTime> lastRunAt)
Alias for calling Builder.lastRunAt with
lastRunAt.orElse(null).
-
lastRunAt
final BetaManagedAgentsCronSchedule.Builder lastRunAt(JsonField<OffsetDateTime> lastRunAt)
Sets Builder.lastRunAt to an arbitrary JSON value.
You should usually call Builder.lastRunAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
upcomingRunsAt
final BetaManagedAgentsCronSchedule.Builder upcomingRunsAt(List<OffsetDateTime> upcomingRunsAt)
Up to 5 timestamps of upcoming cron occurrences. Non-empty for active and paused deployments (reflects what the schedule would do if unpaused); empty once the deployment is archived (
archived_atset). Each fire is offset by a small per-schedule jitter, so a run will actually start at or shortly after its listed time.
-
upcomingRunsAt
final BetaManagedAgentsCronSchedule.Builder upcomingRunsAt(JsonField<List<OffsetDateTime>> upcomingRunsAt)
Sets Builder.upcomingRunsAt to an arbitrary JSON value.
You should usually call Builder.upcomingRunsAt with a well-typed
List<OffsetDateTime>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addUpcomingRunsAt
final BetaManagedAgentsCronSchedule.Builder addUpcomingRunsAt(OffsetDateTime upcomingRunsAt)
Adds a single OffsetDateTime to Builder.upcomingRunsAt.
-
additionalProperties
final BetaManagedAgentsCronSchedule.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsCronSchedule.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsCronSchedule.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsCronSchedule.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsCronSchedule.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsCronSchedule build()
Returns an immutable instance of BetaManagedAgentsCronSchedule.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.expression() .timezone() .type()
-
-
-
-