public static class UsageRecordCreateOnSubscriptionItemParams.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
UsageRecordCreateOnSubscriptionItemParams.Builder |
addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` list.
|
UsageRecordCreateOnSubscriptionItemParams.Builder |
addExpand(java.lang.String element)
Add an element to `expand` list.
|
UsageRecordCreateOnSubscriptionItemParams |
build()
Finalize and obtain parameter instance from this builder.
|
UsageRecordCreateOnSubscriptionItemParams.Builder |
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.
|
UsageRecordCreateOnSubscriptionItemParams.Builder |
putExtraParam(java.lang.String key,
java.lang.Object value)
Add a key/value pair to `extraParams` map.
|
UsageRecordCreateOnSubscriptionItemParams.Builder |
setAction(UsageRecordCreateOnSubscriptionItemParams.Action action)
Valid values are
increment (default) or set. |
UsageRecordCreateOnSubscriptionItemParams.Builder |
setQuantity(java.lang.Long quantity)
The usage quantity for the specified timestamp.
|
UsageRecordCreateOnSubscriptionItemParams.Builder |
setTimestamp(java.lang.Long timestamp)
The timestamp for the usage event.
|
public UsageRecordCreateOnSubscriptionItemParams build()
public UsageRecordCreateOnSubscriptionItemParams.Builder setAction(UsageRecordCreateOnSubscriptionItemParams.Action action)
increment (default) or set. When using increment the
specified quantity will be added to the usage at the specified timestamp. The set action will overwrite the usage quantity at that timestamp. If the subscription has billing
thresholds, increment is the only allowed value.public UsageRecordCreateOnSubscriptionItemParams.Builder addExpand(java.lang.String element)
UsageRecordCreateOnSubscriptionItemParams.expand for the field documentation.public UsageRecordCreateOnSubscriptionItemParams.Builder addAllExpand(java.util.List<java.lang.String> elements)
UsageRecordCreateOnSubscriptionItemParams.expand for the field documentation.public UsageRecordCreateOnSubscriptionItemParams.Builder putExtraParam(java.lang.String key, java.lang.Object value)
UsageRecordCreateOnSubscriptionItemParams.extraParams for the field documentation.public UsageRecordCreateOnSubscriptionItemParams.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
UsageRecordCreateOnSubscriptionItemParams.extraParams for the field
documentation.public UsageRecordCreateOnSubscriptionItemParams.Builder setQuantity(java.lang.Long quantity)
public UsageRecordCreateOnSubscriptionItemParams.Builder setTimestamp(java.lang.Long timestamp)
subscription_item.