Class EventSubscription.Builder
-
- All Implemented Interfaces:
public final class EventSubscription.BuilderA builder for EventSubscription.
-
-
Method Summary
-
-
Method Detail
-
token
final EventSubscription.Builder token(String token)
Globally unique identifier.
-
token
final EventSubscription.Builder token(JsonField<String> token)
Sets Builder.token to an arbitrary JSON value.
You should usually call Builder.token with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final EventSubscription.Builder description(String description)
A description of the subscription.
-
description
final EventSubscription.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
disabled
final EventSubscription.Builder disabled(Boolean disabled)
Whether the subscription is disabled.
-
disabled
final EventSubscription.Builder disabled(JsonField<Boolean> disabled)
Sets Builder.disabled to an arbitrary JSON value.
You should usually call Builder.disabled with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
url
final EventSubscription.Builder url(String url)
-
url
final EventSubscription.Builder url(JsonField<String> url)
Sets Builder.url to an arbitrary JSON value.
You should usually call Builder.url with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
eventTypes
final EventSubscription.Builder eventTypes(List<EventSubscription.EventType> eventTypes)
-
eventTypes
final EventSubscription.Builder eventTypes(Optional<List<EventSubscription.EventType>> eventTypes)
Alias for calling Builder.eventTypes with
eventTypes.orElse(null).
-
eventTypes
final EventSubscription.Builder eventTypes(JsonField<List<EventSubscription.EventType>> eventTypes)
Sets Builder.eventTypes to an arbitrary JSON value.
You should usually call Builder.eventTypes with a well-typed
List<EventType>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addEventType
final EventSubscription.Builder addEventType(EventSubscription.EventType eventType)
Adds a single EventType to eventTypes.
-
additionalProperties
final EventSubscription.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final EventSubscription.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final EventSubscription.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final EventSubscription.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final EventSubscription.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final EventSubscription build()
Returns an immutable instance of EventSubscription.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.token() .description() .disabled() .url()
-
-
-
-