Class BetaManagedAgentsSessionRefusalStopDetails
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionRefusalStopDetailsStructured information about a refusal.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsSessionRefusalStopDetails.BuilderA builder for BetaManagedAgentsSessionRefusalStopDetails.
public final classBetaManagedAgentsSessionRefusalStopDetails.CategoryThe policy category that triggered the refusal, or
nullwhen there is no named category. New values can be added over time.
-
Method Summary
Modifier and Type Method Description final Optional<BetaManagedAgentsSessionRefusalStopDetails.Category>category()The policy category that triggered the refusal, or nullwhen there is no named category.final Optional<String>explanation()Human-readable explanation of the refusal, or nullwhen none is available.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<BetaManagedAgentsSessionRefusalStopDetails.Category>_category()Returns the raw JSON value of category. final JsonField<String>_explanation()Returns the raw JSON value of explanation. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsSessionRefusalStopDetails.BuildertoBuilder()final BetaManagedAgentsSessionRefusalStopDetailsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsSessionRefusalStopDetails.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsSessionRefusalStopDetails. -
-
Method Detail
-
category
final Optional<BetaManagedAgentsSessionRefusalStopDetails.Category> category()
The policy category that triggered the refusal, or
nullwhen there is no named category. New values can be added over time.
-
explanation
final Optional<String> explanation()
Human-readable explanation of the refusal, or
nullwhen none is available. The wording can change, so do not parse it.
-
_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<BetaManagedAgentsSessionRefusalStopDetails.Category> _category()
Returns the raw JSON value of category.
Unlike category, this method doesn't throw if the JSON field has an unexpected type.
-
_explanation
final JsonField<String> _explanation()
Returns the raw JSON value of explanation.
Unlike explanation, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsSessionRefusalStopDetails.Builder toBuilder()
-
validate
final BetaManagedAgentsSessionRefusalStopDetails 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 BetaManagedAgentsSessionRefusalStopDetails.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsSessionRefusalStopDetails.
The following fields are required:
.category() .explanation()
-
-
-
-