Class BetaWorkspace
-
- All Implemented Interfaces:
public final class BetaWorkspace
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaWorkspace.BuilderA builder for BetaWorkspace.
public final classBetaWorkspace.TagsUser-defined tags as string key-value pairs. Keys may not begin with
anthropic.
-
Method Summary
Modifier and Type Method Description final Stringid()ID of the Workspace. final Optional<OffsetDateTime>archivedAt()RFC 3339 datetime string indicating when the Workspace was archived, or nullif the Workspace is not archived.final StringcompartmentId()Identifier for this Workspace's encryption compartment. final OffsetDateTimecreatedAt()RFC 3339 datetime string indicating when the Workspace was created. final BetaDataResidencydataResidency()Data residency configuration. final StringdisplayColor()Hex color code representing the Workspace in the Anthropic Console. final Optional<String>externalKeyId()ID of the customer-managed encryption key (CMEK) configuration to use for this Workspace. final Stringname()Name of the Workspace. final BetaWorkspace.Tagstags()User-defined tags as string key-value pairs. final Optional<String>userProfileId()ID of the user profile attached to the Workspace, or null if it has none. final JsonValue_type()Object type. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OffsetDateTime>_archivedAt()Returns the raw JSON value of archivedAt. final JsonField<String>_compartmentId()Returns the raw JSON value of compartmentId. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<BetaDataResidency>_dataResidency()Returns the raw JSON value of dataResidency. final JsonField<String>_displayColor()Returns the raw JSON value of displayColor. final JsonField<String>_externalKeyId()Returns the raw JSON value of externalKeyId. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<BetaWorkspace.Tags>_tags()Returns the raw JSON value of tags. final JsonField<String>_userProfileId()Returns the raw JSON value of userProfileId. final Map<String, JsonValue>_additionalProperties()final BetaWorkspace.BuildertoBuilder()final BetaWorkspacevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaWorkspace.Builderbuilder()Returns a mutable builder for constructing an instance of BetaWorkspace. -
-
Method Detail
-
archivedAt
final Optional<OffsetDateTime> archivedAt()
RFC 3339 datetime string indicating when the Workspace was archived, or
nullif the Workspace is not archived.
-
compartmentId
final 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.
-
createdAt
final OffsetDateTime createdAt()
RFC 3339 datetime string indicating when the Workspace was created.
-
dataResidency
final BetaDataResidency dataResidency()
Data residency configuration.
-
displayColor
final String displayColor()
Hex color code representing the Workspace in the Anthropic Console.
-
externalKeyId
final Optional<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.
-
tags
final BetaWorkspace.Tags tags()
User-defined tags as string key-value pairs. Keys may not begin with
anthropic.
-
userProfileId
final Optional<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.
-
_type
final JsonValue _type()
Object type.
For Workspaces, this is always
"workspace".Expected to always return the following:
JsonValue.from("workspace")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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.
-
_archivedAt
final JsonField<OffsetDateTime> _archivedAt()
Returns the raw JSON value of archivedAt.
Unlike archivedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_compartmentId
final JsonField<String> _compartmentId()
Returns the raw JSON value of compartmentId.
Unlike compartmentId, 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.
-
_dataResidency
final JsonField<BetaDataResidency> _dataResidency()
Returns the raw JSON value of dataResidency.
Unlike dataResidency, this method doesn't throw if the JSON field has an unexpected type.
-
_displayColor
final JsonField<String> _displayColor()
Returns the raw JSON value of displayColor.
Unlike displayColor, this method doesn't throw if the JSON field has an unexpected type.
-
_externalKeyId
final JsonField<String> _externalKeyId()
Returns the raw JSON value of externalKeyId.
Unlike externalKeyId, 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.
-
_tags
final JsonField<BetaWorkspace.Tags> _tags()
Returns the raw JSON value of tags.
Unlike tags, this method doesn't throw if the JSON field has an unexpected type.
-
_userProfileId
final JsonField<String> _userProfileId()
Returns the raw JSON value of userProfileId.
Unlike userProfileId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaWorkspace.Builder toBuilder()
-
validate
final BetaWorkspace 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 BetaWorkspace.Builder builder()
Returns a mutable builder for constructing an instance of BetaWorkspace.
The following fields are required:
.id() .archivedAt() .compartmentId() .createdAt() .dataResidency() .displayColor() .externalKeyId() .name() .tags() .userProfileId()
-
-
-
-