Class ScheduleUpdateParams
-
- All Implemented Interfaces:
-
app.knock.api.core.Params
public final class ScheduleUpdateParams implements Params
Updates one or more existing schedules with new timing, data, or other properties. All specified schedule IDs will be updated with the same values. This endpoint also handles /managing-recipients/identifying-recipients#inline-identifying-recipients for the
actor,recipient, andtenantfields.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classScheduleUpdateParams.BuilderA builder for ScheduleUpdateParams.
public final classScheduleUpdateParams.BodyA request to update a schedule.
public final classScheduleUpdateParams.DataAn optional map of data to pass into the workflow execution.
-
Method Summary
Modifier and Type Method Description final List<String>scheduleIds()A list of schedule IDs. final Optional<RecipientReference>actor()A reference to a recipient, either a user identifier (string) or an object reference (ID, collection). final Optional<ScheduleUpdateParams.Data>data()An optional map of data to pass into the workflow execution. final Optional<OffsetDateTime>endingAt()The ending date and time for the schedule. final Optional<List<ScheduleRepeatRule>>repeats()The repeat rule for the schedule. final Optional<OffsetDateTime>scheduledAt()The starting date and time for the schedule. final Optional<InlineTenantRequest>tenant()An request to set a tenant inline. final JsonField<List<String>>_scheduleIds()Returns the raw JSON value of scheduleIds. final JsonField<RecipientReference>_actor()Returns the raw JSON value of actor. final JsonField<ScheduleUpdateParams.Data>_data()Returns the raw JSON value of data. final JsonField<OffsetDateTime>_endingAt()Returns the raw JSON value of endingAt. final JsonField<List<ScheduleRepeatRule>>_repeats()Returns the raw JSON value of repeats. final JsonField<OffsetDateTime>_scheduledAt()Returns the raw JSON value of scheduledAt. final JsonField<InlineTenantRequest>_tenant()Returns the raw JSON value of tenant. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()final QueryParams_additionalQueryParams()final ScheduleUpdateParams.BuildertoBuilder()final ScheduleUpdateParams.Body_body()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static ScheduleUpdateParams.Builderbuilder()Returns a mutable builder for constructing an instance of ScheduleUpdateParams. -
-
Method Detail
-
scheduleIds
final List<String> scheduleIds()
A list of schedule IDs.
-
actor
final Optional<RecipientReference> actor()
A reference to a recipient, either a user identifier (string) or an object reference (ID, collection).
-
data
final Optional<ScheduleUpdateParams.Data> data()
An optional map of data to pass into the workflow execution.
-
endingAt
final Optional<OffsetDateTime> endingAt()
The ending date and time for the schedule.
-
repeats
final Optional<List<ScheduleRepeatRule>> repeats()
The repeat rule for the schedule.
-
scheduledAt
final Optional<OffsetDateTime> scheduledAt()
The starting date and time for the schedule.
-
tenant
final Optional<InlineTenantRequest> tenant()
An request to set a tenant inline.
-
_scheduleIds
final JsonField<List<String>> _scheduleIds()
Returns the raw JSON value of scheduleIds.
Unlike scheduleIds, this method doesn't throw if the JSON field has an unexpected type.
-
_actor
final JsonField<RecipientReference> _actor()
Returns the raw JSON value of actor.
Unlike actor, this method doesn't throw if the JSON field has an unexpected type.
-
_data
final JsonField<ScheduleUpdateParams.Data> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_endingAt
final JsonField<OffsetDateTime> _endingAt()
Returns the raw JSON value of endingAt.
Unlike endingAt, this method doesn't throw if the JSON field has an unexpected type.
-
_repeats
final JsonField<List<ScheduleRepeatRule>> _repeats()
Returns the raw JSON value of repeats.
Unlike repeats, this method doesn't throw if the JSON field has an unexpected type.
-
_scheduledAt
final JsonField<OffsetDateTime> _scheduledAt()
Returns the raw JSON value of scheduledAt.
Unlike scheduledAt, this method doesn't throw if the JSON field has an unexpected type.
-
_tenant
final JsonField<InlineTenantRequest> _tenant()
Returns the raw JSON value of tenant.
Unlike tenant, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
-
toBuilder
final ScheduleUpdateParams.Builder toBuilder()
-
_body
final ScheduleUpdateParams.Body _body()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static ScheduleUpdateParams.Builder builder()
Returns a mutable builder for constructing an instance of ScheduleUpdateParams.
The following fields are required:
.scheduleIds()
-
-
-
-