Class WorkflowCancelParams
-
- All Implemented Interfaces:
-
app.knock.api.core.Params
public final class WorkflowCancelParams implements Params
When invoked for a workflow using a specific workflow key and cancellation key, will cancel any queued workflow runs associated with that key/cancellation key pair. Can optionally be provided one or more recipients to scope the request to.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWorkflowCancelParams.BuilderA builder for WorkflowCancelParams.
public final classWorkflowCancelParams.BodyWhen invoked using a specific workflow key and cancellation key, will cancel any queued workflow runs associated with that key/cancellation key pair. Can optionally provide one or more recipients to scope the request to.
-
Method Summary
Modifier and Type Method Description final Optional<String>key()final StringcancellationKey()An optional key that is used to reference a specific workflow trigger request when issuing a /send-notifications/canceling-workflows request. final Optional<List<RecipientReference>>recipients()A list of recipients to cancel the notification for. final JsonField<String>_cancellationKey()Returns the raw JSON value of cancellationKey. final JsonField<List<RecipientReference>>_recipients()Returns the raw JSON value of recipients. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()final QueryParams_additionalQueryParams()final WorkflowCancelParams.BuildertoBuilder()final WorkflowCancelParams.Body_body()final String_pathParam(Integer index)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 WorkflowCancelParams.Builderbuilder()Returns a mutable builder for constructing an instance of WorkflowCancelParams. -
-
Method Detail
-
cancellationKey
final String cancellationKey()
An optional key that is used to reference a specific workflow trigger request when issuing a /send-notifications/canceling-workflows request. Must be provided while triggering a workflow in order to enable subsequent cancellation. Should be unique across trigger requests to avoid unintentional cancellations.
-
recipients
final Optional<List<RecipientReference>> recipients()
A list of recipients to cancel the notification for. If omitted, cancels for all recipients associated with the cancellation key.
-
_cancellationKey
final JsonField<String> _cancellationKey()
Returns the raw JSON value of cancellationKey.
Unlike cancellationKey, this method doesn't throw if the JSON field has an unexpected type.
-
_recipients
final JsonField<List<RecipientReference>> _recipients()
Returns the raw JSON value of recipients.
Unlike recipients, 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 WorkflowCancelParams.Builder toBuilder()
-
_body
final WorkflowCancelParams.Body _body()
-
_pathParam
final String _pathParam(Integer index)
-
_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 WorkflowCancelParams.Builder builder()
Returns a mutable builder for constructing an instance of WorkflowCancelParams.
The following fields are required:
.cancellationKey()
-
-
-
-