Class WorkspaceUpdateParams.Body
-
- All Implemented Interfaces:
public final class WorkspaceUpdateParams.BodyPartial update — omitted fields are unchanged.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWorkspaceUpdateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Optional<DataResidencyUpdateConfig>dataResidency()Data residency configuration for the workspace. final Optional<String>displayColor()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 Optional<String>name()Name of the Workspace. final Optional<WorkspaceUpdateParams.Tags>tags()User-defined tags as string key-value pairs. final Optional<String>userProfileId()ID of a user profile to attach to the Workspace. final JsonField<DataResidencyUpdateConfig>_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<WorkspaceUpdateParams.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 WorkspaceUpdateParams.Body.BuildertoBuilder()final WorkspaceUpdateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static WorkspaceUpdateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
dataResidency
final Optional<DataResidencyUpdateConfig> dataResidency()
Data residency configuration for the workspace.
-
displayColor
final Optional<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 Optional<WorkspaceUpdateParams.Tags> tags()
User-defined tags as string key-value pairs. Keys may not begin with
anthropic.
-
userProfileId
final Optional<String> userProfileId()
ID of a user profile to attach to the Workspace. Every inference request through the Workspace must then name this user profile; the API rejects a request that names none or a different one. Once set, it can't be replaced or removed (sending the same ID again changes nothing); only deleting the user profile clears it. It can't be set on a Workspace whose External Key isn't bound to this user profile. The default Workspace can't have a user profile.
-
_dataResidency
final JsonField<DataResidencyUpdateConfig> _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<WorkspaceUpdateParams.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 WorkspaceUpdateParams.Body.Builder toBuilder()
-
validate
final WorkspaceUpdateParams.Body 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 WorkspaceUpdateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
-
-
-
-