Class MeterEventStreamCreateParams.Event.Builder

java.lang.Object
com.stripe.param.v2.billing.MeterEventStreamCreateParams.Event.Builder
Enclosing class:
MeterEventStreamCreateParams.Event

public static class MeterEventStreamCreateParams.Event.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      Finalize and obtain parameter instance from this builder.
    • setEventName

      public MeterEventStreamCreateParams.Event.Builder setEventName(String eventName)
      Required. The name of the meter event. Corresponds with the event_name field on a meter.
    • putExtraParam

      public MeterEventStreamCreateParams.Event.Builder putExtraParam(String key, Object value)
      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. See MeterEventStreamCreateParams.Event.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. See MeterEventStreamCreateParams.Event.extraParams for the field documentation.
    • setIdentifier

      public MeterEventStreamCreateParams.Event.Builder setIdentifier(String identifier)
      A unique identifier for the event. If not provided, one will be generated. We recommend using a globally unique identifier for this. We’ll enforce uniqueness within a rolling 24 hour period.
    • putPayload

      public MeterEventStreamCreateParams.Event.Builder putPayload(String key, String value)
      Add a key/value pair to `payload` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See MeterEventStreamCreateParams.Event.payload for the field documentation.
    • putAllPayload

      Add all map key/value pairs to `payload` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See MeterEventStreamCreateParams.Event.payload for the field documentation.
    • setTimestamp

      public MeterEventStreamCreateParams.Event.Builder setTimestamp(Instant timestamp)
      The time of the event. Must be within the past 35 calendar days or up to 5 minutes in the future. Defaults to current timestamp if not specified.