Class BetaUserProfile.Builder
-
- All Implemented Interfaces:
public final class BetaUserProfile.BuilderA builder for BetaUserProfile.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaUserProfile.Builder id(String id)
Unique identifier for this user profile, prefixed
uprof_.
-
id
final BetaUserProfile.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final BetaUserProfile.Builder createdAt(OffsetDateTime createdAt)
A timestamp in RFC 3339 format
-
createdAt
final BetaUserProfile.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
metadata
final BetaUserProfile.Builder metadata(BetaUserProfile.Metadata metadata)
Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars, values up to 512 chars.
-
metadata
final BetaUserProfile.Builder metadata(JsonField<BetaUserProfile.Metadata> metadata)
Sets Builder.metadata to an arbitrary JSON value.
You should usually call Builder.metadata with a well-typed Metadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
relationship
final BetaUserProfile.Builder relationship(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.
-
relationship
final BetaUserProfile.Builder relationship(JsonField<BetaUserProfile.Relationship> relationship)
Sets Builder.relationship to an arbitrary JSON value.
You should usually call Builder.relationship with a well-typed Relationship value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
trustGrants
final BetaUserProfile.Builder trustGrants(BetaUserProfile.TrustGrants trustGrants)
Trust grants for this profile, keyed by grant name. Key omitted when no grant is active or in flight.
-
trustGrants
final BetaUserProfile.Builder trustGrants(JsonField<BetaUserProfile.TrustGrants> trustGrants)
Sets Builder.trustGrants to an arbitrary JSON value.
You should usually call Builder.trustGrants with a well-typed TrustGrants value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaUserProfile.Builder type(BetaUserProfile.Type type)
Object type. Always
user_profile.
-
type
final BetaUserProfile.Builder type(JsonField<BetaUserProfile.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
updatedAt
final BetaUserProfile.Builder updatedAt(OffsetDateTime updatedAt)
A timestamp in RFC 3339 format
-
updatedAt
final BetaUserProfile.Builder updatedAt(JsonField<OffsetDateTime> updatedAt)
Sets Builder.updatedAt to an arbitrary JSON value.
You should usually call Builder.updatedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
externalId
final BetaUserProfile.Builder externalId(String externalId)
Platform's own identifier for this user. Not enforced unique.
-
externalId
final BetaUserProfile.Builder externalId(Optional<String> externalId)
Alias for calling Builder.externalId with
externalId.orElse(null).
-
externalId
final BetaUserProfile.Builder externalId(JsonField<String> externalId)
Sets Builder.externalId to an arbitrary JSON value.
You should usually call Builder.externalId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final BetaUserProfile.Builder name(String name)
Display name of the entity this profile represents. For
resoldthis is the resold-to company's name.
-
name
final BetaUserProfile.Builder name(Optional<String> name)
Alias for calling Builder.name with
name.orElse(null).
-
name
final BetaUserProfile.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaUserProfile.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaUserProfile.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaUserProfile.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaUserProfile.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaUserProfile.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaUserProfile build()
Returns an immutable instance of BetaUserProfile.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .createdAt() .metadata() .relationship() .trustGrants() .type() .updatedAt()
-
-
-
-