Class UserProfileCreateParams.Builder
-
- All Implemented Interfaces:
public final class UserProfileCreateParams.BuilderA builder for UserProfileCreateParams.
-
-
Method Summary
-
-
Method Detail
-
betas
final UserProfileCreateParams.Builder betas(List<AnthropicBeta> betas)
Optional header to specify the beta version(s) you want to use.
-
betas
final UserProfileCreateParams.Builder betas(Optional<List<AnthropicBeta>> betas)
Alias for calling Builder.betas with
betas.orElse(null).
-
workspaceId
final UserProfileCreateParams.Builder workspaceId(String workspaceId)
Optional header to select the Workspace for this request. The value is a Workspace ID (for example,
wrkspc_011CZkZaBF1tNoB5wlCeusgy).Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
-
workspaceId
final UserProfileCreateParams.Builder workspaceId(Optional<String> workspaceId)
Alias for calling Builder.workspaceId with
workspaceId.orElse(null).
-
body
final UserProfileCreateParams.Builder body(UserProfileCreateParams.Body body)
Sets the entire request body.
This is generally only useful if you are already constructing the body separately. Otherwise, it's more convenient to use the top-level setters instead:
-
additionalHeaders
final UserProfileCreateParams.Builder additionalHeaders(Headers additionalHeaders)
-
additionalHeaders
final UserProfileCreateParams.Builder additionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
additionalQueryParams
final UserProfileCreateParams.Builder additionalQueryParams(QueryParams additionalQueryParams)
-
additionalQueryParams
final UserProfileCreateParams.Builder additionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
addBeta
final UserProfileCreateParams.Builder addBeta(AnthropicBeta beta)
Adds a single AnthropicBeta to betas.
-
addBeta
final UserProfileCreateParams.Builder addBeta(String value)
Sets addBeta to an arbitrary String.
You should usually call addBeta with a well-typed AnthropicBeta constant instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
accessType
final UserProfileCreateParams.Builder accessType(UserProfileCreateParams.AccessType accessType)
How the platform uses the API for this entity.
application(default): the profile represents an individual end-user of the platform's product.passthrough: the profile identifies a company the platform resells Claude access to.
-
accessType
final UserProfileCreateParams.Builder accessType(JsonField<UserProfileCreateParams.AccessType> accessType)
Sets Builder.accessType to an arbitrary JSON value.
You should usually call Builder.accessType with a well-typed AccessType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
externalId
final UserProfileCreateParams.Builder externalId(String externalId)
Platform's own identifier for this user. Not enforced unique. Maximum 255 characters. Legacy field, accepted only under the
user-profiles-2026-03-24anduser-profiles-2026-08-18beta headers; without one of them, sendexternal_user_details.reference_id.
-
externalId
final UserProfileCreateParams.Builder externalId(Optional<String> externalId)
Alias for calling Builder.externalId with
externalId.orElse(null).
-
externalId
final UserProfileCreateParams.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.
-
externalUserDetails
final UserProfileCreateParams.Builder externalUserDetails(BetaUserProfileExternalUserDetailsParams externalUserDetails)
Details about the entity this profile represents, as the platform states them. Every field is optional. Not accepted under the legacy
user-profiles-2026-03-24anduser-profiles-2026-08-18beta headers, which take the top-levelexternal_id(and, underuser-profiles-2026-08-18,external_user_onboarded_at) instead.
-
externalUserDetails
final UserProfileCreateParams.Builder externalUserDetails(JsonField<BetaUserProfileExternalUserDetailsParams> externalUserDetails)
Sets Builder.externalUserDetails to an arbitrary JSON value.
You should usually call Builder.externalUserDetails with a well-typed BetaUserProfileExternalUserDetailsParams value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
externalUserOnboardedAt
final UserProfileCreateParams.Builder externalUserOnboardedAt(OffsetDateTime externalUserOnboardedAt)
When the entity this profile represents opened its account with the platform, in RFC 3339 format: for an
applicationprofile, when the end-user signed up; for apassthroughprofile, when the company became the platform's customer. Must be a complete timestamp no more than 1 minute in the future. Optional. Legacy field, accepted only under theuser-profiles-2026-08-18beta header; without a legacy header, sendexternal_user_details.onboarded_at.
-
externalUserOnboardedAt
final UserProfileCreateParams.Builder externalUserOnboardedAt(JsonField<OffsetDateTime> externalUserOnboardedAt)
Sets Builder.externalUserOnboardedAt to an arbitrary JSON value.
You should usually call Builder.externalUserOnboardedAt 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 UserProfileCreateParams.Builder metadata(UserProfileCreateParams.Metadata metadata)
Free-form key-value data to attach to this user profile. Maximum 16 keys, with keys up to 64 characters and values up to 512 characters. Values must be non-empty strings.
-
metadata
final UserProfileCreateParams.Builder metadata(JsonField<UserProfileCreateParams.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.
-
name
final UserProfileCreateParams.Builder name(String name)
Optional for all profiles. Real-world name of the entity this profile represents (company or individual); for a company the platform resells Claude access to (
access_typepassthrough), that company's name where known. Maximum 255 characters.
-
name
final UserProfileCreateParams.Builder name(Optional<String> name)
Alias for calling Builder.name with
name.orElse(null).
-
name
final UserProfileCreateParams.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.
-
additionalBodyProperties
final UserProfileCreateParams.Builder additionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
putAdditionalBodyProperty
final UserProfileCreateParams.Builder putAdditionalBodyProperty(String key, JsonValue value)
-
putAllAdditionalBodyProperties
final UserProfileCreateParams.Builder putAllAdditionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
removeAdditionalBodyProperty
final UserProfileCreateParams.Builder removeAdditionalBodyProperty(String key)
-
removeAllAdditionalBodyProperties
final UserProfileCreateParams.Builder removeAllAdditionalBodyProperties(Set<String> keys)
-
putAdditionalHeader
final UserProfileCreateParams.Builder putAdditionalHeader(String name, String value)
-
putAdditionalHeaders
final UserProfileCreateParams.Builder putAdditionalHeaders(String name, Iterable<String> values)
-
putAllAdditionalHeaders
final UserProfileCreateParams.Builder putAllAdditionalHeaders(Headers additionalHeaders)
-
putAllAdditionalHeaders
final UserProfileCreateParams.Builder putAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
replaceAdditionalHeaders
final UserProfileCreateParams.Builder replaceAdditionalHeaders(String name, String value)
-
replaceAdditionalHeaders
final UserProfileCreateParams.Builder replaceAdditionalHeaders(String name, Iterable<String> values)
-
replaceAllAdditionalHeaders
final UserProfileCreateParams.Builder replaceAllAdditionalHeaders(Headers additionalHeaders)
-
replaceAllAdditionalHeaders
final UserProfileCreateParams.Builder replaceAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
removeAdditionalHeaders
final UserProfileCreateParams.Builder removeAdditionalHeaders(String name)
-
removeAllAdditionalHeaders
final UserProfileCreateParams.Builder removeAllAdditionalHeaders(Set<String> names)
-
putAdditionalQueryParam
final UserProfileCreateParams.Builder putAdditionalQueryParam(String key, String value)
-
putAdditionalQueryParams
final UserProfileCreateParams.Builder putAdditionalQueryParams(String key, Iterable<String> values)
-
putAllAdditionalQueryParams
final UserProfileCreateParams.Builder putAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
putAllAdditionalQueryParams
final UserProfileCreateParams.Builder putAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
replaceAdditionalQueryParams
final UserProfileCreateParams.Builder replaceAdditionalQueryParams(String key, String value)
-
replaceAdditionalQueryParams
final UserProfileCreateParams.Builder replaceAdditionalQueryParams(String key, Iterable<String> values)
-
replaceAllAdditionalQueryParams
final UserProfileCreateParams.Builder replaceAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
replaceAllAdditionalQueryParams
final UserProfileCreateParams.Builder replaceAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
removeAdditionalQueryParams
final UserProfileCreateParams.Builder removeAdditionalQueryParams(String key)
-
removeAllAdditionalQueryParams
final UserProfileCreateParams.Builder removeAllAdditionalQueryParams(Set<String> keys)
-
build
final UserProfileCreateParams build()
Returns an immutable instance of UserProfileCreateParams.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-