Class MeterUsageRetrieveParams.Meter.Builder

java.lang.Object
com.stripe.param.billing.MeterUsageRetrieveParams.Meter.Builder
Enclosing class:
MeterUsageRetrieveParams.Meter

public static class MeterUsageRetrieveParams.Meter.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      Finalize and obtain parameter instance from this builder.
    • putDimensionFilter

      public MeterUsageRetrieveParams.Meter.Builder putDimensionFilter(String key, String value)
      Add a key/value pair to `dimensionFilters` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See MeterUsageRetrieveParams.Meter.dimensionFilters for the field documentation.
    • putAllDimensionFilter

      public MeterUsageRetrieveParams.Meter.Builder putAllDimensionFilter(Map<String,String> map)
      Add all map key/value pairs to `dimensionFilters` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See MeterUsageRetrieveParams.Meter.dimensionFilters for the field documentation.
    • addDimensionGroupByKey

      public MeterUsageRetrieveParams.Meter.Builder addDimensionGroupByKey(String element)
      Add an element to `dimensionGroupByKeys` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See MeterUsageRetrieveParams.Meter.dimensionGroupByKeys for the field documentation.
    • addAllDimensionGroupByKey

      public MeterUsageRetrieveParams.Meter.Builder addAllDimensionGroupByKey(List<String> elements)
      Add all elements to `dimensionGroupByKeys` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See MeterUsageRetrieveParams.Meter.dimensionGroupByKeys for the field documentation.
    • putExtraParam

      public MeterUsageRetrieveParams.Meter.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 MeterUsageRetrieveParams.Meter.extraParams for the field documentation.
    • putAllExtraParam

      public MeterUsageRetrieveParams.Meter.Builder putAllExtraParam(Map<String,Object> map)
      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 MeterUsageRetrieveParams.Meter.extraParams for the field documentation.
    • setMeterId

      public MeterUsageRetrieveParams.Meter.Builder setMeterId(String meterId)
      Required. Meter id to query usage for.
    • putTenantFilter

      public MeterUsageRetrieveParams.Meter.Builder putTenantFilter(String key, String value)
      Add a key/value pair to `tenantFilters` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See MeterUsageRetrieveParams.Meter.tenantFilters for the field documentation.
    • putAllTenantFilter

      public MeterUsageRetrieveParams.Meter.Builder putAllTenantFilter(Map<String,String> map)