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.addAllEventsFrom(List<String> elements) Add all elements to `eventsFrom` list.Add all elements to `include` list.addEnabledEvent(String element) Add an element to `enabledEvents` list.addEventsFrom(String element) 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) AWS account and region where Stripe creates the EventBridge partner event source.setAzureEventGrid(EventDestinationCreateParams.AzureEventGrid azureEventGrid) Azure subscription, resource group, and region where Stripe creates the partner topic.setDescription(String description) An optional user-defined description of the destination's purpose.setEventPayload(EventDestinationCreateParams.EventPayload eventPayload) Required. Whether to deliver as snapshot or thin events.Required. A user-defined label for identifying the destination.setSnapshotApiVersion(String snapshotApiVersion) For snapshot events only, the Stripe API version used to render event objects; do not provide this for thin events.Required. The delivery transport.setWebhookEndpoint(EventDestinationCreateParams.WebhookEndpoint webhookEndpoint) Delivery target for the webhook endpoint.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmazonEventbridge
public EventDestinationCreateParams.Builder setAmazonEventbridge(EventDestinationCreateParams.AmazonEventbridge amazonEventbridge) AWS account and region where Stripe creates the EventBridge partner event source. -
setAzureEventGrid
public EventDestinationCreateParams.Builder setAzureEventGrid(EventDestinationCreateParams.AzureEventGrid azureEventGrid) Azure subscription, resource group, and region where Stripe creates the partner topic. -
setDescription
An optional user-defined description of the destination's purpose. -
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. Whether to deliver as snapshot or thin events. -
addEventsFrom
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
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. A user-defined label for identifying the destination. -
setSnapshotApiVersion
For snapshot events only, the Stripe API version used to render event objects; do not provide this for thin events. -
setType
Required. The delivery transport. Chosen when the destination is created and cannot be changed by update. -
setWebhookEndpoint
public EventDestinationCreateParams.Builder setWebhookEndpoint(EventDestinationCreateParams.WebhookEndpoint webhookEndpoint) Delivery target for the webhook endpoint. Live mode requires HTTPS; sandbox mode also supports HTTP.
-