Class BetaFallbackRefusalTrigger
-
- All Implemented Interfaces:
public final class BetaFallbackRefusalTriggerThe
frommodel declined for policy reasons.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaFallbackRefusalTrigger.BuilderA builder for BetaFallbackRefusalTrigger.
public final classBetaFallbackRefusalTrigger.CategoryThe policy category that triggered the
frommodel's refusal at this hop.nullwhen the refusal doesn't map to a named category. Same vocabulary asstop_details.category.
-
Method Summary
Modifier and Type Method Description final Optional<BetaFallbackRefusalTrigger.Category>category()The policy category that triggered the frommodel's refusal at this hop.final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("refusal")final JsonField<BetaFallbackRefusalTrigger.Category>_category()Returns the raw JSON value of category. final Map<String, JsonValue>_additionalProperties()final BetaFallbackRefusalTrigger.BuildertoBuilder()final BetaFallbackRefusalTriggervalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaFallbackRefusalTrigger.Builderbuilder()Returns a mutable builder for constructing an instance of BetaFallbackRefusalTrigger. final static BetaFallbackRefusalTriggerof(BetaFallbackRefusalTrigger.Category category)Returns an immutable instance of BetaFallbackRefusalTrigger with the required category set to the given value. final static BetaFallbackRefusalTriggerof(Optional<BetaFallbackRefusalTrigger.Category> category)Alias for calling of with category.orElse(null).-
-
Method Detail
-
category
final Optional<BetaFallbackRefusalTrigger.Category> category()
The policy category that triggered the
frommodel's refusal at this hop.nullwhen the refusal doesn't map to a named category. Same vocabulary asstop_details.category.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("refusal")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_category
final JsonField<BetaFallbackRefusalTrigger.Category> _category()
Returns the raw JSON value of category.
Unlike category, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaFallbackRefusalTrigger.Builder toBuilder()
-
validate
final BetaFallbackRefusalTrigger 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 BetaFallbackRefusalTrigger.Builder builder()
Returns a mutable builder for constructing an instance of BetaFallbackRefusalTrigger.
The following fields are required:
.category()
-
of
final static BetaFallbackRefusalTrigger of(BetaFallbackRefusalTrigger.Category category)
Returns an immutable instance of BetaFallbackRefusalTrigger with the required category set to the given value.
-
of
final static BetaFallbackRefusalTrigger of(Optional<BetaFallbackRefusalTrigger.Category> category)
Alias for calling of with
category.orElse(null).
-
-
-
-