Class BetaUserProfile
-
- All Implemented Interfaces:
public final class BetaUserProfile
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaUserProfile.BuilderA builder for BetaUserProfile.
public final classBetaUserProfile.MetadataArbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars, values up to 512 chars.
public final classBetaUserProfile.RelationshipHow the entity behind a user profile relates to the platform that owns the API key.
external: an individual end-user of the platform.resold: a company the platform resells Claude access to.internal: the platform's own usage.public final classBetaUserProfile.TrustGrantsTrust grants for this profile, keyed by grant name. Key omitted when no grant is active or in flight.
public final classBetaUserProfile.TypeObject type. Always
user_profile.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this user profile, prefixed uprof_.final OffsetDateTimecreatedAt()A timestamp in RFC 3339 format final BetaUserProfile.Metadatametadata()Arbitrary key-value metadata. final BetaUserProfile.Relationshiprelationship()How the entity behind a user profile relates to the platform that owns the API key. final BetaUserProfile.TrustGrantstrustGrants()Trust grants for this profile, keyed by grant name. final BetaUserProfile.Typetype()Object type. final OffsetDateTimeupdatedAt()A timestamp in RFC 3339 format final Optional<String>externalId()Platform's own identifier for this user. final Optional<String>name()Display name of the entity this profile represents. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<BetaUserProfile.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<BetaUserProfile.Relationship>_relationship()Returns the raw JSON value of relationship. final JsonField<BetaUserProfile.TrustGrants>_trustGrants()Returns the raw JSON value of trustGrants. final JsonField<BetaUserProfile.Type>_type()Returns the raw JSON value of type. final JsonField<OffsetDateTime>_updatedAt()Returns the raw JSON value of updatedAt. final JsonField<String>_externalId()Returns the raw JSON value of externalId. final JsonField<String>_name()Returns the raw JSON value of name. final Map<String, JsonValue>_additionalProperties()final BetaUserProfile.BuildertoBuilder()final BetaUserProfilevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaUserProfile.Builderbuilder()Returns a mutable builder for constructing an instance of BetaUserProfile. -
-
Method Detail
-
createdAt
final OffsetDateTime createdAt()
A timestamp in RFC 3339 format
-
metadata
final BetaUserProfile.Metadata metadata()
Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars, values up to 512 chars.
-
relationship
final BetaUserProfile.Relationship relationship()
How the entity behind a user profile relates to the platform that owns the API key.
external: an individual end-user of the platform.resold: a company the platform resells Claude access to.internal: the platform's own usage.
-
trustGrants
final BetaUserProfile.TrustGrants trustGrants()
Trust grants for this profile, keyed by grant name. Key omitted when no grant is active or in flight.
-
type
final BetaUserProfile.Type type()
Object type. Always
user_profile.
-
updatedAt
final OffsetDateTime updatedAt()
A timestamp in RFC 3339 format
-
externalId
final Optional<String> externalId()
Platform's own identifier for this user. Not enforced unique.
-
name
final Optional<String> name()
Display name of the entity this profile represents. For
resoldthis is the resold-to company's name.
-
_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.
-
_createdAt
final JsonField<OffsetDateTime> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<BetaUserProfile.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_relationship
final JsonField<BetaUserProfile.Relationship> _relationship()
Returns the raw JSON value of relationship.
Unlike relationship, this method doesn't throw if the JSON field has an unexpected type.
-
_trustGrants
final JsonField<BetaUserProfile.TrustGrants> _trustGrants()
Returns the raw JSON value of trustGrants.
Unlike trustGrants, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<BetaUserProfile.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_updatedAt
final JsonField<OffsetDateTime> _updatedAt()
Returns the raw JSON value of updatedAt.
Unlike updatedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_externalId
final JsonField<String> _externalId()
Returns the raw JSON value of externalId.
Unlike externalId, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaUserProfile.Builder toBuilder()
-
validate
final BetaUserProfile 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 BetaUserProfile.Builder builder()
Returns a mutable builder for constructing an instance of BetaUserProfile.
The following fields are required:
.id() .createdAt() .metadata() .relationship() .trustGrants() .type() .updatedAt()
-
-
-
-