Class BetaFallbackCreditUsage
-
- All Implemented Interfaces:
public final class BetaFallbackCreditUsageOutcome of the
`fallback_credit_token`presented on this request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaFallbackCreditUsage.BuilderA builder for BetaFallbackCreditUsage.
public final classBetaFallbackCreditUsage.StatusWhether the fallback-credit reprice was applied to this response's billing.
A union discriminated on
type.redeemed: the retry is billed as if the conversation had been on the retry model all along — including when the resulting shift is zero because there was nothing to move.not_applied: no reprice was applied; the arm'sreasonsays why.
-
Method Summary
Modifier and Type Method Description final BetaFallbackCreditUsage.Statusstatus()Whether the fallback-credit reprice was applied to this response's billing. final JsonField<BetaFallbackCreditUsage.Status>_status()Returns the raw JSON value of status. final Map<String, JsonValue>_additionalProperties()final BetaFallbackCreditUsage.BuildertoBuilder()final BetaFallbackCreditUsagevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaFallbackCreditUsage.Builderbuilder()Returns a mutable builder for constructing an instance of BetaFallbackCreditUsage. final static BetaFallbackCreditUsageof(BetaFallbackCreditUsage.Status status)Returns an immutable instance of BetaFallbackCreditUsage with the required status set to the given value. final static BetaFallbackCreditUsageof(BetaFallbackCreditRedeemed redeemed)Alias for calling of with Status.ofRedeemed(redeemed).final static BetaFallbackCreditUsageof(BetaFallbackCreditNotApplied notApplied)Alias for calling of with Status.ofNotApplied(notApplied).-
-
Method Detail
-
status
final BetaFallbackCreditUsage.Status status()
Whether the fallback-credit reprice was applied to this response's billing.
A union discriminated on
type.redeemed: the retry is billed as if the conversation had been on the retry model all along — including when the resulting shift is zero because there was nothing to move.not_applied: no reprice was applied; the arm'sreasonsays why.
-
_status
final JsonField<BetaFallbackCreditUsage.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaFallbackCreditUsage.Builder toBuilder()
-
validate
final BetaFallbackCreditUsage validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaFallbackCreditUsage.Builder builder()
Returns a mutable builder for constructing an instance of BetaFallbackCreditUsage.
The following fields are required:
.status()
-
of
final static BetaFallbackCreditUsage of(BetaFallbackCreditUsage.Status status)
Returns an immutable instance of BetaFallbackCreditUsage with the required status set to the given value.
-
of
final static BetaFallbackCreditUsage of(BetaFallbackCreditRedeemed redeemed)
Alias for calling of with
Status.ofRedeemed(redeemed).
-
of
final static BetaFallbackCreditUsage of(BetaFallbackCreditNotApplied notApplied)
Alias for calling of with
Status.ofNotApplied(notApplied).
-
-
-
-