Class BetaWorkspace.Builder
-
- All Implemented Interfaces:
public final class BetaWorkspace.BuilderA builder for BetaWorkspace.
-
-
Method Summary
Modifier and Type Method Description final BetaWorkspace.Builderid(String id)ID of the Workspace. final BetaWorkspace.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final BetaWorkspace.BuilderarchivedAt(OffsetDateTime archivedAt)RFC 3339 datetime string indicating when the Workspace was archived, or nullif the Workspace is not archived.final BetaWorkspace.BuilderarchivedAt(Optional<OffsetDateTime> archivedAt)Alias for calling Builder.archivedAt with archivedAt.orElse(null).final BetaWorkspace.BuilderarchivedAt(JsonField<OffsetDateTime> archivedAt)Sets Builder.archivedAt to an arbitrary JSON value. final BetaWorkspace.BuildercompartmentId(String compartmentId)Identifier for this Workspace's encryption compartment. final BetaWorkspace.BuildercompartmentId(JsonField<String> compartmentId)Sets Builder.compartmentId to an arbitrary JSON value. final BetaWorkspace.BuildercreatedAt(OffsetDateTime createdAt)RFC 3339 datetime string indicating when the Workspace was created. final BetaWorkspace.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final BetaWorkspace.BuilderdataResidency(BetaDataResidency dataResidency)Data residency configuration. final BetaWorkspace.BuilderdataResidency(JsonField<BetaDataResidency> dataResidency)Sets Builder.dataResidency to an arbitrary JSON value. final BetaWorkspace.BuilderdisplayColor(String displayColor)Hex color code representing the Workspace in the Anthropic Console. final BetaWorkspace.BuilderdisplayColor(JsonField<String> displayColor)Sets Builder.displayColor to an arbitrary JSON value. final BetaWorkspace.BuilderexternalKeyId(String externalKeyId)ID of the customer-managed encryption key (CMEK) configuration to use for this Workspace. final BetaWorkspace.BuilderexternalKeyId(Optional<String> externalKeyId)Alias for calling Builder.externalKeyId with externalKeyId.orElse(null).final BetaWorkspace.BuilderexternalKeyId(JsonField<String> externalKeyId)Sets Builder.externalKeyId to an arbitrary JSON value. final BetaWorkspace.Buildername(String name)Name of the Workspace. final BetaWorkspace.Buildername(JsonField<String> name)Sets Builder.name to an arbitrary JSON value. final BetaWorkspace.Buildertags(BetaWorkspace.Tags tags)User-defined tags as string key-value pairs. final BetaWorkspace.Buildertags(JsonField<BetaWorkspace.Tags> tags)Sets Builder.tags to an arbitrary JSON value. final BetaWorkspace.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaWorkspace.BuilderuserProfileId(String userProfileId)ID of the user profile attached to the Workspace, or null if it has none. final BetaWorkspace.BuilderuserProfileId(Optional<String> userProfileId)Alias for calling Builder.userProfileId with userProfileId.orElse(null).final BetaWorkspace.BuilderuserProfileId(JsonField<String> userProfileId)Sets Builder.userProfileId to an arbitrary JSON value. final BetaWorkspace.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaWorkspace.BuilderputAdditionalProperty(String key, JsonValue value)final BetaWorkspace.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaWorkspace.BuilderremoveAdditionalProperty(String key)final BetaWorkspace.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaWorkspacebuild()Returns an immutable instance of BetaWorkspace. -
-
Method Detail
-
id
final BetaWorkspace.Builder id(String id)
ID of the Workspace.
-
id
final BetaWorkspace.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.
-
archivedAt
final BetaWorkspace.Builder archivedAt(OffsetDateTime archivedAt)
RFC 3339 datetime string indicating when the Workspace was archived, or
nullif the Workspace is not archived.
-
archivedAt
final BetaWorkspace.Builder archivedAt(Optional<OffsetDateTime> archivedAt)
Alias for calling Builder.archivedAt with
archivedAt.orElse(null).
-
archivedAt
final BetaWorkspace.Builder archivedAt(JsonField<OffsetDateTime> archivedAt)
Sets Builder.archivedAt to an arbitrary JSON value.
You should usually call Builder.archivedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
compartmentId
final BetaWorkspace.Builder compartmentId(String compartmentId)
Identifier for this Workspace's encryption compartment. When you configure an AWS KMS customer-managed encryption key (CMEK) that isn't bound to a user profile, reference this value in your KMS key-policy condition so the key is scoped to this compartment. On GCP and Azure, Anthropic enforces the compartment binding automatically; you do not need to reference this value in your key configuration. See the CMEK integration guide for the required key configuration; unless your organization is on Claude Platform on AWS, it includes a separate value used during key validation. On Claude Platform on AWS there is no separate validation value: your organization's own key is validated against this Workspace's own value when it is attached, so if its key policy uses the compartment condition, add this value to it before attaching the key.
-
compartmentId
final BetaWorkspace.Builder compartmentId(JsonField<String> compartmentId)
Sets Builder.compartmentId to an arbitrary JSON value.
You should usually call Builder.compartmentId 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 BetaWorkspace.Builder createdAt(OffsetDateTime createdAt)
RFC 3339 datetime string indicating when the Workspace was created.
-
createdAt
final BetaWorkspace.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.
-
dataResidency
final BetaWorkspace.Builder dataResidency(BetaDataResidency dataResidency)
Data residency configuration.
-
dataResidency
final BetaWorkspace.Builder dataResidency(JsonField<BetaDataResidency> dataResidency)
Sets Builder.dataResidency to an arbitrary JSON value.
You should usually call Builder.dataResidency with a well-typed BetaDataResidency value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
displayColor
final BetaWorkspace.Builder displayColor(String displayColor)
Hex color code representing the Workspace in the Anthropic Console.
-
displayColor
final BetaWorkspace.Builder displayColor(JsonField<String> displayColor)
Sets Builder.displayColor to an arbitrary JSON value.
You should usually call Builder.displayColor with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
externalKeyId
final BetaWorkspace.Builder externalKeyId(String externalKeyId)
ID of the customer-managed encryption key (CMEK) configuration to use for this Workspace. Setting this field requires CMEK to be enabled for your organization. When set, data stored for this Workspace is encrypted with the referenced key. Create key configurations with the External Keys API. On Claude Platform on AWS the value for an AWS KMS key is the key's ARN, and your organization's own key must be a single-Region key in the same Region as the Workspace. If that key is outside the Workspace's AWS account, it can be attached only by updating an active Workspace. On that platform the key is validated against this Workspace when it is attached, so a key-policy problem is reported as an error on this request. This field is write-once: once a key is attached to a Workspace it cannot be detached or replaced. To rotate key material, rotate the underlying key on your cloud KMS; the
external_key_idstays the same.
-
externalKeyId
final BetaWorkspace.Builder externalKeyId(Optional<String> externalKeyId)
Alias for calling Builder.externalKeyId with
externalKeyId.orElse(null).
-
externalKeyId
final BetaWorkspace.Builder externalKeyId(JsonField<String> externalKeyId)
Sets Builder.externalKeyId to an arbitrary JSON value.
You should usually call Builder.externalKeyId 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 BetaWorkspace.Builder name(String name)
Name of the Workspace.
-
name
final BetaWorkspace.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.
-
tags
final BetaWorkspace.Builder tags(BetaWorkspace.Tags tags)
User-defined tags as string key-value pairs. Keys may not begin with
anthropic.
-
tags
final BetaWorkspace.Builder tags(JsonField<BetaWorkspace.Tags> tags)
Sets Builder.tags to an arbitrary JSON value.
You should usually call Builder.tags with a well-typed Tags value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaWorkspace.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("workspace")This method is primarily for setting the field to an undocumented or not yet supported value.
-
userProfileId
final BetaWorkspace.Builder userProfileId(String userProfileId)
ID of the user profile attached to the Workspace, or null if it has none. Every inference request through a Workspace that has a user profile must name that profile.
-
userProfileId
final BetaWorkspace.Builder userProfileId(Optional<String> userProfileId)
Alias for calling Builder.userProfileId with
userProfileId.orElse(null).
-
userProfileId
final BetaWorkspace.Builder userProfileId(JsonField<String> userProfileId)
Sets Builder.userProfileId to an arbitrary JSON value.
You should usually call Builder.userProfileId 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 BetaWorkspace.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaWorkspace.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaWorkspace.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaWorkspace.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaWorkspace.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaWorkspace build()
Returns an immutable instance of BetaWorkspace.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .archivedAt() .compartmentId() .createdAt() .dataResidency() .displayColor() .externalKeyId() .name() .tags() .userProfileId()
-
-
-
-