Class WorkspaceCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class WorkspaceCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
name
final WorkspaceCreateParams.Body.Builder name(String name)
Name of the Workspace.
-
name
final WorkspaceCreateParams.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.
-
dataResidency
final WorkspaceCreateParams.Body.Builder dataResidency(BetaDataResidencyCreateConfig dataResidency)
Data residency configuration for the workspace. If omitted, defaults to
workspace_geo: "us",allowed_inference_geos: "unrestricted", anddefault_inference_geo: "global".
-
dataResidency
final WorkspaceCreateParams.Body.Builder dataResidency(Optional<BetaDataResidencyCreateConfig> dataResidency)
Alias for calling Builder.dataResidency with
dataResidency.orElse(null).
-
dataResidency
final WorkspaceCreateParams.Body.Builder dataResidency(JsonField<BetaDataResidencyCreateConfig> dataResidency)
Sets Builder.dataResidency to an arbitrary JSON value.
You should usually call Builder.dataResidency with a well-typed BetaDataResidencyCreateConfig value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
displayColor
final WorkspaceCreateParams.Body.Builder displayColor(String displayColor)
Hex color code representing the Workspace in the Anthropic Console.
-
displayColor
final WorkspaceCreateParams.Body.Builder displayColor(Optional<String> displayColor)
Alias for calling Builder.displayColor with
displayColor.orElse(null).
-
displayColor
final WorkspaceCreateParams.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 WorkspaceCreateParams.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 WorkspaceCreateParams.Body.Builder externalKeyId(Optional<String> externalKeyId)
Alias for calling Builder.externalKeyId with
externalKeyId.orElse(null).
-
externalKeyId
final WorkspaceCreateParams.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.
-
tags
final WorkspaceCreateParams.Body.Builder tags(WorkspaceCreateParams.Tags tags)
User-defined tags as string key-value pairs. Keys may not begin with
anthropic.
-
tags
final WorkspaceCreateParams.Body.Builder tags(Optional<WorkspaceCreateParams.Tags> tags)
Alias for calling Builder.tags with
tags.orElse(null).
-
tags
final WorkspaceCreateParams.Body.Builder tags(JsonField<WorkspaceCreateParams.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 WorkspaceCreateParams.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. The user profile can't be replaced or removed later; only deleting the user profile clears it.
-
userProfileId
final WorkspaceCreateParams.Body.Builder userProfileId(Optional<String> userProfileId)
Alias for calling Builder.userProfileId with
userProfileId.orElse(null).
-
userProfileId
final WorkspaceCreateParams.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 WorkspaceCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final WorkspaceCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final WorkspaceCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final WorkspaceCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final WorkspaceCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final WorkspaceCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.name()
-
-
-
-