Class WebhookCreateParams.Body
-
- All Implemented Interfaces:
public final class WebhookCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWebhookCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final List<WebhookCreateParams.EnabledEvent>enabledEvents()The event types to deliver to the endpoint. final Stringurl()The HTTPS URL that deliveries are sent to. final Optional<String>description()Notes about the endpoint. final Optional<String>name()A short label for the endpoint. final JsonField<List<WebhookCreateParams.EnabledEvent>>_enabledEvents()Returns the raw JSON value of enabledEvents. final JsonField<String>_url()Returns the raw JSON value of url. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<String>_name()Returns the raw JSON value of name. final Map<String, JsonValue>_additionalProperties()final WebhookCreateParams.Body.BuildertoBuilder()final WebhookCreateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static WebhookCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
enabledEvents
final List<WebhookCreateParams.EnabledEvent> enabledEvents()
The event types to deliver to the endpoint. Must list at least one.
-
description
final Optional<String> description()
Notes about the endpoint.
-
_enabledEvents
final JsonField<List<WebhookCreateParams.EnabledEvent>> _enabledEvents()
Returns the raw JSON value of enabledEvents.
Unlike enabledEvents, this method doesn't throw if the JSON field has an unexpected type.
-
_url
final JsonField<String> _url()
Returns the raw JSON value of url.
Unlike url, this method doesn't throw if the JSON field has an unexpected type.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final WebhookCreateParams.Body.Builder toBuilder()
-
validate
final WebhookCreateParams.Body 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 WebhookCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.enabledEvents() .url()
-
-
-
-