Class WorkspaceUpdateParams.Body.Builder
-
- All Implemented Interfaces:
public final class WorkspaceUpdateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
dataResidency
final WorkspaceUpdateParams.Body.Builder dataResidency(DataResidencyUpdateConfig dataResidency)
Data residency configuration for the workspace.
-
dataResidency
final WorkspaceUpdateParams.Body.Builder dataResidency(Optional<DataResidencyUpdateConfig> dataResidency)
Alias for calling Builder.dataResidency with
dataResidency.orElse(null).
-
dataResidency
final WorkspaceUpdateParams.Body.Builder dataResidency(JsonField<DataResidencyUpdateConfig> dataResidency)
Sets Builder.dataResidency to an arbitrary JSON value.
You should usually call Builder.dataResidency with a well-typed DataResidencyUpdateConfig value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
displayColor
final WorkspaceUpdateParams.Body.Builder displayColor(String displayColor)
Hex color code representing the Workspace in the Anthropic Console.
-
displayColor
final WorkspaceUpdateParams.Body.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 WorkspaceUpdateParams.Body.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 WorkspaceUpdateParams.Body.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 WorkspaceUpdateParams.Body.Builder name(String name)
Name of the Workspace.
-
name
final WorkspaceUpdateParams.Body.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 WorkspaceUpdateParams.Body.Builder tags(WorkspaceUpdateParams.Tags tags)
User-defined tags as string key-value pairs. Keys may not begin with
anthropic.
-
tags
final WorkspaceUpdateParams.Body.Builder tags(Optional<WorkspaceUpdateParams.Tags> tags)
Alias for calling Builder.tags with
tags.orElse(null).
-
tags
final WorkspaceUpdateParams.Body.Builder tags(JsonField<WorkspaceUpdateParams.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.
-
userProfileId
final WorkspaceUpdateParams.Body.Builder userProfileId(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.
-
userProfileId
final WorkspaceUpdateParams.Body.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 WorkspaceUpdateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final WorkspaceUpdateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final WorkspaceUpdateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final WorkspaceUpdateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final WorkspaceUpdateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final WorkspaceUpdateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-