Class Schedule.Builder
-
- All Implemented Interfaces:
public final class Schedule.BuilderA builder for Schedule.
-
-
Method Summary
Modifier and Type Method Description final Schedule.Builderid(String id)Unique identifier for the schedule. final Schedule.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final Schedule.BuilderinsertedAt(OffsetDateTime insertedAt)Timestamp when the resource was created. final Schedule.BuilderinsertedAt(JsonField<OffsetDateTime> insertedAt)Sets Builder.insertedAt to an arbitrary JSON value. final Schedule.Builderrecipient(Recipient recipient)A recipient of a notification, which is either a user or an object. final Schedule.Builderrecipient(JsonField<Recipient> recipient)Sets Builder.recipient to an arbitrary JSON value. final Schedule.Builderrecipient(User user)Alias for calling recipient with Recipient.ofUser(user).final Schedule.Builderrecipient(Object object_)Alias for calling recipient with Recipient.ofObject(object_).final Schedule.Builderrepeats(List<ScheduleRepeatRule> repeats)The repeat rule for the schedule. final Schedule.Builderrepeats(JsonField<List<ScheduleRepeatRule>> repeats)Sets Builder.repeats to an arbitrary JSON value. final Schedule.BuilderaddRepeat(ScheduleRepeatRule repeat)Adds a single ScheduleRepeatRule to repeats. final Schedule.BuilderupdatedAt(OffsetDateTime updatedAt)The timestamp when the resource was last updated. final Schedule.BuilderupdatedAt(JsonField<OffsetDateTime> updatedAt)Sets Builder.updatedAt to an arbitrary JSON value. final Schedule.Builderworkflow(String workflow)The workflow the schedule is applied to. final Schedule.Builderworkflow(JsonField<String> workflow)Sets Builder.workflow to an arbitrary JSON value. final Schedule.Builder_typename(String _typename)The typename of the schema. final Schedule.Builder_typename(JsonField<String> _typename)Sets Builder._typename to an arbitrary JSON value. final Schedule.Builderactor(Recipient actor)A recipient of a notification, which is either a user or an object. final Schedule.Builderactor(Optional<Recipient> actor)Alias for calling Builder.actor with actor.orElse(null).final Schedule.Builderactor(JsonField<Recipient> actor)Sets Builder.actor to an arbitrary JSON value. final Schedule.Builderactor(User user)Alias for calling actor with Recipient.ofUser(user).final Schedule.Builderactor(Object object_)Alias for calling actor with Recipient.ofObject(object_).final Schedule.Builderdata(Schedule.Data data)An optional map of data to pass into the workflow execution. final Schedule.Builderdata(Optional<Schedule.Data> data)Alias for calling Builder.data with data.orElse(null).final Schedule.Builderdata(JsonField<Schedule.Data> data)Sets Builder.data to an arbitrary JSON value. final Schedule.BuilderlastOccurrenceAt(OffsetDateTime lastOccurrenceAt)The last occurrence of the schedule. final Schedule.BuilderlastOccurrenceAt(Optional<OffsetDateTime> lastOccurrenceAt)Alias for calling Builder.lastOccurrenceAt with lastOccurrenceAt.orElse(null).final Schedule.BuilderlastOccurrenceAt(JsonField<OffsetDateTime> lastOccurrenceAt)Sets Builder.lastOccurrenceAt to an arbitrary JSON value. final Schedule.BuildernextOccurrenceAt(OffsetDateTime nextOccurrenceAt)The next occurrence of the schedule. final Schedule.BuildernextOccurrenceAt(Optional<OffsetDateTime> nextOccurrenceAt)Alias for calling Builder.nextOccurrenceAt with nextOccurrenceAt.orElse(null).final Schedule.BuildernextOccurrenceAt(JsonField<OffsetDateTime> nextOccurrenceAt)Sets Builder.nextOccurrenceAt to an arbitrary JSON value. final Schedule.Buildertenant(String tenant)The tenant to trigger the workflow for. final Schedule.Buildertenant(Optional<String> tenant)Alias for calling Builder.tenant with tenant.orElse(null).final Schedule.Buildertenant(JsonField<String> tenant)Sets Builder.tenant to an arbitrary JSON value. final Schedule.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final Schedule.BuilderputAdditionalProperty(String key, JsonValue value)final Schedule.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final Schedule.BuilderremoveAdditionalProperty(String key)final Schedule.BuilderremoveAllAdditionalProperties(Set<String> keys)final Schedulebuild()Returns an immutable instance of Schedule. -
-
Method Detail
-
id
final Schedule.Builder id(String id)
Unique identifier for the schedule.
-
id
final Schedule.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
insertedAt
final Schedule.Builder insertedAt(OffsetDateTime insertedAt)
Timestamp when the resource was created.
-
insertedAt
final Schedule.Builder insertedAt(JsonField<OffsetDateTime> insertedAt)
Sets Builder.insertedAt to an arbitrary JSON value.
You should usually call Builder.insertedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
recipient
final Schedule.Builder recipient(Recipient recipient)
A recipient of a notification, which is either a user or an object.
-
recipient
final Schedule.Builder recipient(JsonField<Recipient> recipient)
Sets Builder.recipient to an arbitrary JSON value.
You should usually call Builder.recipient with a well-typed Recipient value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
recipient
final Schedule.Builder recipient(User user)
Alias for calling recipient with
Recipient.ofUser(user).
-
recipient
final Schedule.Builder recipient(Object object_)
Alias for calling recipient with
Recipient.ofObject(object_).
-
repeats
final Schedule.Builder repeats(List<ScheduleRepeatRule> repeats)
The repeat rule for the schedule.
-
repeats
final Schedule.Builder repeats(JsonField<List<ScheduleRepeatRule>> repeats)
Sets Builder.repeats to an arbitrary JSON value.
You should usually call Builder.repeats with a well-typed
List<ScheduleRepeatRule>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addRepeat
final Schedule.Builder addRepeat(ScheduleRepeatRule repeat)
Adds a single ScheduleRepeatRule to repeats.
-
updatedAt
final Schedule.Builder updatedAt(OffsetDateTime updatedAt)
The timestamp when the resource was last updated.
-
updatedAt
final Schedule.Builder updatedAt(JsonField<OffsetDateTime> updatedAt)
Sets Builder.updatedAt to an arbitrary JSON value.
You should usually call Builder.updatedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
workflow
final Schedule.Builder workflow(String workflow)
The workflow the schedule is applied to.
-
workflow
final Schedule.Builder workflow(JsonField<String> workflow)
Sets Builder.workflow to an arbitrary JSON value.
You should usually call Builder.workflow with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
_typename
final Schedule.Builder _typename(String _typename)
The typename of the schema.
-
_typename
final Schedule.Builder _typename(JsonField<String> _typename)
Sets Builder._typename to an arbitrary JSON value.
You should usually call Builder._typename with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
actor
final Schedule.Builder actor(Recipient actor)
A recipient of a notification, which is either a user or an object.
-
actor
final Schedule.Builder actor(Optional<Recipient> actor)
Alias for calling Builder.actor with
actor.orElse(null).
-
actor
final Schedule.Builder actor(JsonField<Recipient> actor)
Sets Builder.actor to an arbitrary JSON value.
You should usually call Builder.actor with a well-typed Recipient value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
actor
final Schedule.Builder actor(User user)
Alias for calling actor with
Recipient.ofUser(user).
-
actor
final Schedule.Builder actor(Object object_)
Alias for calling actor with
Recipient.ofObject(object_).
-
data
final Schedule.Builder data(Schedule.Data data)
An optional map of data to pass into the workflow execution.
-
data
final Schedule.Builder data(Optional<Schedule.Data> data)
Alias for calling Builder.data with
data.orElse(null).
-
data
final Schedule.Builder data(JsonField<Schedule.Data> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed Data value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
lastOccurrenceAt
final Schedule.Builder lastOccurrenceAt(OffsetDateTime lastOccurrenceAt)
The last occurrence of the schedule.
-
lastOccurrenceAt
final Schedule.Builder lastOccurrenceAt(Optional<OffsetDateTime> lastOccurrenceAt)
Alias for calling Builder.lastOccurrenceAt with
lastOccurrenceAt.orElse(null).
-
lastOccurrenceAt
final Schedule.Builder lastOccurrenceAt(JsonField<OffsetDateTime> lastOccurrenceAt)
Sets Builder.lastOccurrenceAt to an arbitrary JSON value.
You should usually call Builder.lastOccurrenceAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
nextOccurrenceAt
final Schedule.Builder nextOccurrenceAt(OffsetDateTime nextOccurrenceAt)
The next occurrence of the schedule.
-
nextOccurrenceAt
final Schedule.Builder nextOccurrenceAt(Optional<OffsetDateTime> nextOccurrenceAt)
Alias for calling Builder.nextOccurrenceAt with
nextOccurrenceAt.orElse(null).
-
nextOccurrenceAt
final Schedule.Builder nextOccurrenceAt(JsonField<OffsetDateTime> nextOccurrenceAt)
Sets Builder.nextOccurrenceAt to an arbitrary JSON value.
You should usually call Builder.nextOccurrenceAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tenant
final Schedule.Builder tenant(String tenant)
The tenant to trigger the workflow for. Triggering with a tenant will use any tenant-level overrides associated with the tenant object, and all messages produced from workflow runs will be tagged with the tenant.
-
tenant
final Schedule.Builder tenant(Optional<String> tenant)
Alias for calling Builder.tenant with
tenant.orElse(null).
-
tenant
final Schedule.Builder tenant(JsonField<String> tenant)
Sets Builder.tenant to an arbitrary JSON value.
You should usually call Builder.tenant with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final Schedule.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Schedule.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Schedule.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Schedule.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Schedule.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-