Class BetaFallbackCreditTokenParam.Builder
-
- All Implemented Interfaces:
public final class BetaFallbackCreditTokenParam.BuilderA builder for BetaFallbackCreditTokenParam.
-
-
Method Summary
-
-
Method Detail
-
token
final BetaFallbackCreditTokenParam.Builder token(String token)
The opaque
fallback_credit_tokenfrom a prior refusal'sstop_details— the same string the bare-string form carries.
-
token
final BetaFallbackCreditTokenParam.Builder token(JsonField<String> token)
Sets Builder.token to an arbitrary JSON value.
You should usually call Builder.token with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
mode
final BetaFallbackCreditTokenParam.Builder mode(BetaFallbackCreditTokenParam.Mode mode)
How a failing token affects the retry.
strict(the default, and the bare-string behavior): a failing redemption is a 400 and the retry is not served.best_effort: the retry is served either way — a token-layer failure no longer rejects the request; the retry proceeds at normal price and the outcome is reported on the response'susage.fallback_credit. Two failures stay hard in both modes: a malformed token, and combiningfallback_credit_tokenwithfallbacks.
-
mode
final BetaFallbackCreditTokenParam.Builder mode(JsonField<BetaFallbackCreditTokenParam.Mode> mode)
Sets Builder.mode to an arbitrary JSON value.
You should usually call Builder.mode with a well-typed Mode value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaFallbackCreditTokenParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaFallbackCreditTokenParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaFallbackCreditTokenParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaFallbackCreditTokenParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaFallbackCreditTokenParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaFallbackCreditTokenParam build()
Returns an immutable instance of BetaFallbackCreditTokenParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.token()
-
-
-
-