Class Workspace.Builder
-
- All Implemented Interfaces:
public final class Workspace.BuilderA builder for Workspace.
-
-
Method Summary
Modifier and Type Method Description final Workspace.Builderid(String id)ID of the Workspace. final Workspace.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final Workspace.BuilderarchivedAt(OffsetDateTime archivedAt)RFC 3339 datetime string indicating when the Workspace was archived, or nullif the Workspace is not archived.final Workspace.BuilderarchivedAt(Optional<OffsetDateTime> archivedAt)Alias for calling Builder.archivedAt with archivedAt.orElse(null).final Workspace.BuilderarchivedAt(JsonField<OffsetDateTime> archivedAt)Sets Builder.archivedAt to an arbitrary JSON value. final Workspace.BuildercompartmentId(String compartmentId)Identifier for this Workspace's encryption compartment. final Workspace.BuildercompartmentId(JsonField<String> compartmentId)Sets Builder.compartmentId to an arbitrary JSON value. final Workspace.BuildercreatedAt(OffsetDateTime createdAt)RFC 3339 datetime string indicating when the Workspace was created. final Workspace.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final Workspace.BuilderdataResidency(DataResidency dataResidency)Data residency configuration. final Workspace.BuilderdataResidency(JsonField<DataResidency> dataResidency)Sets Builder.dataResidency to an arbitrary JSON value. final Workspace.BuilderdisplayColor(String displayColor)Hex color code representing the Workspace in the Anthropic Console. final Workspace.BuilderdisplayColor(JsonField<String> displayColor)Sets Builder.displayColor to an arbitrary JSON value. final Workspace.BuilderexternalKeyId(String externalKeyId)ID of the customer-managed encryption key (CMEK) configuration to use for this Workspace. final Workspace.BuilderexternalKeyId(Optional<String> externalKeyId)Alias for calling Builder.externalKeyId with externalKeyId.orElse(null).final Workspace.BuilderexternalKeyId(JsonField<String> externalKeyId)Sets Builder.externalKeyId to an arbitrary JSON value. final Workspace.Buildername(String name)Name of the Workspace. final Workspace.Buildername(JsonField<String> name)Sets Builder.name to an arbitrary JSON value. final Workspace.Buildertags(Workspace.Tags tags)User-defined tags as string key-value pairs. final Workspace.Buildertags(JsonField<Workspace.Tags> tags)Sets Builder.tags to an arbitrary JSON value. final Workspace.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final Workspace.BuilderuserProfileId(String userProfileId)ID of the user profile attached to the Workspace, or null if it has none. final Workspace.BuilderuserProfileId(Optional<String> userProfileId)Alias for calling Builder.userProfileId with userProfileId.orElse(null).final Workspace.BuilderuserProfileId(JsonField<String> userProfileId)Sets Builder.userProfileId to an arbitrary JSON value. final Workspace.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final Workspace.BuilderputAdditionalProperty(String key, JsonValue value)final Workspace.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final Workspace.BuilderremoveAdditionalProperty(String key)final Workspace.BuilderremoveAllAdditionalProperties(Set<String> keys)final Workspacebuild()Returns an immutable instance of Workspace. -
-
Method Detail
-
id
final Workspace.Builder id(String id)
ID of the Workspace.
-
id
final Workspace.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 Workspace.Builder archivedAt(OffsetDateTime archivedAt)
RFC 3339 datetime string indicating when the Workspace was archived, or
nullif the Workspace is not archived.
-
archivedAt
final Workspace.Builder archivedAt(Optional<OffsetDateTime> archivedAt)
Alias for calling Builder.archivedAt with
archivedAt.orElse(null).
-
archivedAt
final Workspace.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 Workspace.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 Workspace.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 Workspace.Builder createdAt(OffsetDateTime createdAt)
RFC 3339 datetime string indicating when the Workspace was created.
-
createdAt
final Workspace.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 Workspace.Builder dataResidency(DataResidency dataResidency)
Data residency configuration.
-
dataResidency
final Workspace.Builder dataResidency(JsonField<DataResidency> dataResidency)
Sets Builder.dataResidency to an arbitrary JSON value.
You should usually call Builder.dataResidency with a well-typed DataResidency value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
displayColor
final Workspace.Builder displayColor(String displayColor)
Hex color code representing the Workspace in the Anthropic Console.
-
displayColor
final Workspace.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 Workspace.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 Workspace.Builder externalKeyId(Optional<String> externalKeyId)
Alias for calling Builder.externalKeyId with
externalKeyId.orElse(null).
-
externalKeyId
final Workspace.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 Workspace.Builder name(String name)
Name of the Workspace.
-
name
final Workspace.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 Workspace.Builder tags(Workspace.Tags tags)
User-defined tags as string key-value pairs. Keys may not begin with
anthropic.
-
tags
final Workspace.Builder tags(JsonField<Workspace.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 Workspace.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 Workspace.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 Workspace.Builder userProfileId(Optional<String> userProfileId)
Alias for calling Builder.userProfileId with
userProfileId.orElse(null).
-
userProfileId
final Workspace.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 Workspace.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Workspace.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Workspace.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Workspace.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Workspace.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final Workspace build()
Returns an immutable instance of Workspace.
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()
-
-
-
-