Class EventSubscription
-
- All Implemented Interfaces:
public final class EventSubscriptionA subscription to specific event types.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classEventSubscription.BuilderA builder for EventSubscription.
public final classEventSubscription.EventType
-
Method Summary
Modifier and Type Method Description final Stringtoken()Globally unique identifier. final Stringdescription()A description of the subscription. final Booleandisabled()Whether the subscription is disabled. final Stringurl()final Optional<List<EventSubscription.EventType>>eventTypes()final JsonField<String>_token()Returns the raw JSON value of token. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<Boolean>_disabled()Returns the raw JSON value of disabled. final JsonField<String>_url()Returns the raw JSON value of url. final JsonField<List<EventSubscription.EventType>>_eventTypes()Returns the raw JSON value of eventTypes. final Map<String, JsonValue>_additionalProperties()final EventSubscription.BuildertoBuilder()final EventSubscriptionvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static EventSubscription.Builderbuilder()Returns a mutable builder for constructing an instance of EventSubscription. -
-
Method Detail
-
description
final String description()
A description of the subscription.
-
eventTypes
final Optional<List<EventSubscription.EventType>> eventTypes()
-
_token
final JsonField<String> _token()
Returns the raw JSON value of token.
Unlike token, 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.
-
_disabled
final JsonField<Boolean> _disabled()
Returns the raw JSON value of disabled.
Unlike disabled, 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.
-
_eventTypes
final JsonField<List<EventSubscription.EventType>> _eventTypes()
Returns the raw JSON value of eventTypes.
Unlike eventTypes, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final EventSubscription.Builder toBuilder()
-
validate
final EventSubscription validate()
-
builder
final static EventSubscription.Builder builder()
Returns a mutable builder for constructing an instance of EventSubscription.
The following fields are required:
.token() .description() .disabled() .url()
-
-
-
-