Package com.stripe.param.v2.core
Class EventDestinationCreateParams.Builder
java.lang.Object
com.stripe.param.v2.core.EventDestinationCreateParams.Builder
- Enclosing class:
- EventDestinationCreateParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllEnabledEvent(List<String> elements) Add all elements to `enabledEvents` list.Add all elements to `eventsFrom` list.Add all elements to `include` list.addEnabledEvent(String element) Add an element to `enabledEvents` list.Add an element to `eventsFrom` list.Add an element to `include` list.build()Finalize and obtain parameter instance from this builder.putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putAllMetadata(Map<String, String> map) Add all map key/value pairs to `metadata` map.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.putMetadata(String key, String value) Add a key/value pair to `metadata` map.setAmazonEventbridge(EventDestinationCreateParams.AmazonEventbridge amazonEventbridge) Amazon EventBridge configuration.setDescription(String description) An optional description of what the event destination is used for.setEventPayload(EventDestinationCreateParams.EventPayload eventPayload) Required. Payload type of events being subscribed to.Required. Event destination name.setSnapshotApiVersion(String snapshotApiVersion) If using the snapshot event payload, the API version events are rendered as.Required. Event destination type.setWebhookEndpoint(EventDestinationCreateParams.WebhookEndpoint webhookEndpoint) Webhook endpoint configuration.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmazonEventbridge
public EventDestinationCreateParams.Builder setAmazonEventbridge(EventDestinationCreateParams.AmazonEventbridge amazonEventbridge) Amazon EventBridge configuration. -
setDescription
An optional description of what the event destination is used for. -
addEnabledEvent
Add an element to `enabledEvents` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeEventDestinationCreateParams.enabledEventsfor the field documentation. -
addAllEnabledEvent
Add all elements to `enabledEvents` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeEventDestinationCreateParams.enabledEventsfor the field documentation. -
setEventPayload
public EventDestinationCreateParams.Builder setEventPayload(EventDestinationCreateParams.EventPayload eventPayload) Required. Payload type of events being subscribed to. -
addEventsFrom
public EventDestinationCreateParams.Builder addEventsFrom(EventDestinationCreateParams.EventsFrom element) Add an element to `eventsFrom` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeEventDestinationCreateParams.eventsFromfor the field documentation. -
addAllEventsFrom
public EventDestinationCreateParams.Builder addAllEventsFrom(List<EventDestinationCreateParams.EventsFrom> elements) Add all elements to `eventsFrom` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeEventDestinationCreateParams.eventsFromfor the field documentation. -
putExtraParam
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeEventDestinationCreateParams.extraParamsfor the field documentation. -
putAllExtraParam
Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeEventDestinationCreateParams.extraParamsfor the field documentation. -
addInclude
public EventDestinationCreateParams.Builder addInclude(EventDestinationCreateParams.Include element) Add an element to `include` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeEventDestinationCreateParams.includefor the field documentation. -
addAllInclude
public EventDestinationCreateParams.Builder addAllInclude(List<EventDestinationCreateParams.Include> elements) Add all elements to `include` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeEventDestinationCreateParams.includefor the field documentation. -
putMetadata
Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeEventDestinationCreateParams.metadatafor the field documentation. -
putAllMetadata
Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeEventDestinationCreateParams.metadatafor the field documentation. -
setName
Required. Event destination name. -
setSnapshotApiVersion
If using the snapshot event payload, the API version events are rendered as. -
setType
Required. Event destination type. -
setWebhookEndpoint
public EventDestinationCreateParams.Builder setWebhookEndpoint(EventDestinationCreateParams.WebhookEndpoint webhookEndpoint) Webhook endpoint configuration.
-