Class WorkspaceUpdateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class WorkspaceUpdateParams implements Params
Update Workspace
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWorkspaceUpdateParams.BuilderA builder for WorkspaceUpdateParams.
public final classWorkspaceUpdateParams.BodyPartial update — omitted fields are unchanged.
public final classWorkspaceUpdateParams.TagsUser-defined tags as string key-value pairs. Keys may not begin with
anthropic.
-
Method Summary
Modifier and Type Method Description final Optional<String>workspaceId()final Optional<BetaDataResidencyUpdateConfig>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<BetaDataResidencyUpdateConfig>_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>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final WorkspaceUpdateParams.BuildertoBuilder()final WorkspaceUpdateParams.Body_body()final String_pathParam(Integer index)Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. SpanData_spanData()The data for the OpenTelemetry span of a call to the method with these parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final static WorkspaceUpdateParamsnone()final static WorkspaceUpdateParams.Builderbuilder()Returns a mutable builder for constructing an instance of WorkspaceUpdateParams. -
-
Method Detail
-
workspaceId
final Optional<String> workspaceId()
-
dataResidency
final Optional<BetaDataResidencyUpdateConfig> 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<BetaDataResidencyUpdateConfig> _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.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final WorkspaceUpdateParams.Builder toBuilder()
-
_body
final WorkspaceUpdateParams.Body _body()
-
_pathParam
final String _pathParam(Integer index)
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
_spanData
SpanData _spanData()
The data for the OpenTelemetry span of a call to the method with these parameters.
-
none
final static WorkspaceUpdateParams none()
-
builder
final static WorkspaceUpdateParams.Builder builder()
Returns a mutable builder for constructing an instance of WorkspaceUpdateParams.
-
-
-
-