Package com.stripe.param.v2.core
Class EventDestinationUpdateParams.Builder
java.lang.Object
com.stripe.param.v2.core.EventDestinationUpdateParams.Builder
- Enclosing class:
- EventDestinationUpdateParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllEnabledEvent
(List<String> elements) Add all elements to `enabledEvents` list.Add all elements to `include` list.addEnabledEvent
(String element) Add an element to `enabledEvents` 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, Object> 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, EmptyParam value) Add a key/value pair to `metadata` map.putMetadata
(String key, String value) Add a key/value pair to `metadata` map.setDescription
(EmptyParam description) An optional description of what the event destination is used for.setDescription
(String description) An optional description of what the event destination is used for.setName
(EmptyParam name) Event destination name.Event destination name.setWebhookEndpoint
(EventDestinationUpdateParams.WebhookEndpoint webhookEndpoint) Webhook endpoint configuration.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setDescription
An optional description of what the event destination is used for. -
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. SeeEventDestinationUpdateParams.enabledEvents
for 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. SeeEventDestinationUpdateParams.enabledEvents
for 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. SeeEventDestinationUpdateParams.extraParams
for 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. SeeEventDestinationUpdateParams.extraParams
for the field documentation. -
addInclude
public EventDestinationUpdateParams.Builder addInclude(EventDestinationUpdateParams.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. SeeEventDestinationUpdateParams.include
for the field documentation. -
addAllInclude
public EventDestinationUpdateParams.Builder addAllInclude(List<EventDestinationUpdateParams.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. SeeEventDestinationUpdateParams.include
for 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. SeeEventDestinationUpdateParams.metadata
for 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. SeeEventDestinationUpdateParams.metadata
for 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. Map values can only be one of the following types: `String`, `EmptyParam`. SeeEventDestinationUpdateParams.metadata
for the field documentation. -
setName
Event destination name. -
setName
Event destination name. -
setWebhookEndpoint
public EventDestinationUpdateParams.Builder setWebhookEndpoint(EventDestinationUpdateParams.WebhookEndpoint webhookEndpoint) Webhook endpoint configuration.
-