Package com.anthropic.models.beta.files
Class BetaFileScope
-
- All Implemented Interfaces:
public final class BetaFileScope
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaFileScope.BuilderA builder for BetaFileScope.
-
Method Summary
Modifier and Type Method Description final Stringid()The ID of the scoping resource (e.g., the session ID). final JsonValue_type()The type of scope (e.g. final JsonField<String>_id()Returns the raw JSON value of id. final Map<String, JsonValue>_additionalProperties()final BetaFileScope.BuildertoBuilder()final BetaFileScopevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaFileScope.Builderbuilder()Returns a mutable builder for constructing an instance of BetaFileScope. -
-
Method Detail
-
_type
final JsonValue _type()
The type of scope (e.g.,
"session").Expected to always return the following:
JsonValue.from("session")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaFileScope.Builder toBuilder()
-
validate
final BetaFileScope 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 BetaFileScope.Builder builder()
Returns a mutable builder for constructing an instance of BetaFileScope.
The following fields are required:
.id()
-
-
-
-