Class BetaExternalKey.Builder
-
- All Implemented Interfaces:
public final class BetaExternalKey.BuilderA builder for BetaExternalKey.
-
-
Method Summary
Modifier and Type Method Description final BetaExternalKey.Builderid(String id)Identifier of the external key config: a tagged ID prefixed ekey_, or, on Claude Platform on AWS, an AWS KMS key's ARN.final BetaExternalKey.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final BetaExternalKey.Builderattachment(BetaExternalKey.Attachment attachment)Whether any workspace uses this config to encrypt its data — counting live and archived workspaces (an archived workspace's data remains encrypted under the config), excluding deleted ones. final BetaExternalKey.Builderattachment(JsonField<BetaExternalKey.Attachment> attachment)Sets Builder.attachment to an arbitrary JSON value. final BetaExternalKey.Builderattachment(BetaExternalKeyAttachedAttachment attached)Alias for calling attachment with Attachment.ofAttached(attached).final BetaExternalKey.Builderattachment(BetaExternalKeyUnattachedAttachment unattached)Alias for calling attachment with Attachment.ofUnattached(unattached).final BetaExternalKey.BuildercreatedAt(OffsetDateTime createdAt)final BetaExternalKey.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final BetaExternalKey.BuilderdisplayName(String displayName)Human-friendly display name. final BetaExternalKey.BuilderdisplayName(Optional<String> displayName)Alias for calling Builder.displayName with displayName.orElse(null).final BetaExternalKey.BuilderdisplayName(JsonField<String> displayName)Sets Builder.displayName to an arbitrary JSON value. final BetaExternalKey.Buildergeo(String geo)Data residency geo. final BetaExternalKey.Buildergeo(JsonField<String> geo)Sets Builder.geo to an arbitrary JSON value. final BetaExternalKey.BuilderproviderConfig(BetaExternalKey.ProviderConfig providerConfig)KMS provider identity and auth coordinates. final BetaExternalKey.BuilderproviderConfig(JsonField<BetaExternalKey.ProviderConfig> providerConfig)Sets Builder.providerConfig to an arbitrary JSON value. final BetaExternalKey.BuilderproviderConfig(BetaAwsExternalKeyConfig aws)Alias for calling providerConfig with ProviderConfig.ofAws(aws).final BetaExternalKey.BuilderproviderConfig(BetaGcpExternalKeyConfig gcp)Alias for calling providerConfig with ProviderConfig.ofGcp(gcp).final BetaExternalKey.BuilderproviderConfig(BetaAzureExternalKeyConfig azure)Alias for calling providerConfig with ProviderConfig.ofAzure(azure).final BetaExternalKey.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaExternalKey.BuilderupdatedAt(OffsetDateTime updatedAt)final BetaExternalKey.BuilderupdatedAt(JsonField<OffsetDateTime> updatedAt)Sets Builder.updatedAt to an arbitrary JSON value. final BetaExternalKey.BuilderuserProfileId(String userProfileId)ID of the user profile the key is bound to, or null if the key is not bound to one. final BetaExternalKey.BuilderuserProfileId(Optional<String> userProfileId)Alias for calling Builder.userProfileId with userProfileId.orElse(null).final BetaExternalKey.BuilderuserProfileId(JsonField<String> userProfileId)Sets Builder.userProfileId to an arbitrary JSON value. final BetaExternalKey.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaExternalKey.BuilderawsProviderConfig(String kmsArn)Alias for calling providerConfig with the following: BetaAwsExternalKeyConfig.builder() .kmsArn(kmsArn) .build()final BetaExternalKey.BuildergcpProviderConfig(String keyName)Alias for calling providerConfig with the following: BetaGcpExternalKeyConfig.builder() .keyName(keyName) .build()final BetaExternalKey.BuilderputAdditionalProperty(String key, JsonValue value)final BetaExternalKey.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaExternalKey.BuilderremoveAdditionalProperty(String key)final BetaExternalKey.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaExternalKeybuild()Returns an immutable instance of BetaExternalKey. -
-
Method Detail
-
id
final BetaExternalKey.Builder id(String id)
Identifier of the external key config: a tagged ID prefixed
ekey_, or, on Claude Platform on AWS, an AWS KMS key's ARN.
-
id
final BetaExternalKey.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
attachment
final BetaExternalKey.Builder attachment(BetaExternalKey.Attachment attachment)
Whether any workspace uses this config to encrypt its data — counting live and archived workspaces (an archived workspace's data remains encrypted under the config), excluding deleted ones. Only an attached config is used by the encryption path; an
unattachedconfig is inert and can be deleted.
-
attachment
final BetaExternalKey.Builder attachment(JsonField<BetaExternalKey.Attachment> attachment)
Sets Builder.attachment to an arbitrary JSON value.
You should usually call Builder.attachment with a well-typed Attachment value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
attachment
final BetaExternalKey.Builder attachment(BetaExternalKeyAttachedAttachment attached)
Alias for calling attachment with
Attachment.ofAttached(attached).
-
attachment
final BetaExternalKey.Builder attachment(BetaExternalKeyUnattachedAttachment unattached)
Alias for calling attachment with
Attachment.ofUnattached(unattached).
-
createdAt
final BetaExternalKey.Builder createdAt(OffsetDateTime createdAt)
-
createdAt
final BetaExternalKey.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
displayName
final BetaExternalKey.Builder displayName(String displayName)
Human-friendly display name. Null if none was set.
-
displayName
final BetaExternalKey.Builder displayName(Optional<String> displayName)
Alias for calling Builder.displayName with
displayName.orElse(null).
-
displayName
final BetaExternalKey.Builder displayName(JsonField<String> displayName)
Sets Builder.displayName to an arbitrary JSON value.
You should usually call Builder.displayName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
geo
final BetaExternalKey.Builder geo(String geo)
Data residency geo. Selects the region this key is used in.
-
geo
final BetaExternalKey.Builder geo(JsonField<String> geo)
Sets Builder.geo to an arbitrary JSON value.
You should usually call Builder.geo with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
providerConfig
final BetaExternalKey.Builder providerConfig(BetaExternalKey.ProviderConfig providerConfig)
KMS provider identity and auth coordinates.
-
providerConfig
final BetaExternalKey.Builder providerConfig(JsonField<BetaExternalKey.ProviderConfig> providerConfig)
Sets Builder.providerConfig to an arbitrary JSON value.
You should usually call Builder.providerConfig with a well-typed ProviderConfig value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
providerConfig
final BetaExternalKey.Builder providerConfig(BetaAwsExternalKeyConfig aws)
Alias for calling providerConfig with
ProviderConfig.ofAws(aws).
-
providerConfig
final BetaExternalKey.Builder providerConfig(BetaGcpExternalKeyConfig gcp)
Alias for calling providerConfig with
ProviderConfig.ofGcp(gcp).
-
providerConfig
final BetaExternalKey.Builder providerConfig(BetaAzureExternalKeyConfig azure)
Alias for calling providerConfig with
ProviderConfig.ofAzure(azure).
-
type
final BetaExternalKey.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("external_key")This method is primarily for setting the field to an undocumented or not yet supported value.
-
updatedAt
final BetaExternalKey.Builder updatedAt(OffsetDateTime updatedAt)
-
updatedAt
final BetaExternalKey.Builder updatedAt(JsonField<OffsetDateTime> updatedAt)
Sets Builder.updatedAt to an arbitrary JSON value.
You should usually call Builder.updatedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
userProfileId
final BetaExternalKey.Builder userProfileId(String userProfileId)
ID of the user profile the key is bound to, or null if the key is not bound to one. A key bound to a user profile can only be attached to a Workspace that has the same user profile. A key that isn't bound can only be attached to a Workspace that has no user profile.
-
userProfileId
final BetaExternalKey.Builder userProfileId(Optional<String> userProfileId)
Alias for calling Builder.userProfileId with
userProfileId.orElse(null).
-
userProfileId
final BetaExternalKey.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 BetaExternalKey.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
awsProviderConfig
final BetaExternalKey.Builder awsProviderConfig(String kmsArn)
Alias for calling providerConfig with the following:
BetaAwsExternalKeyConfig.builder() .kmsArn(kmsArn) .build()
-
gcpProviderConfig
final BetaExternalKey.Builder gcpProviderConfig(String keyName)
Alias for calling providerConfig with the following:
BetaGcpExternalKeyConfig.builder() .keyName(keyName) .build()
-
putAdditionalProperty
final BetaExternalKey.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaExternalKey.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaExternalKey.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaExternalKey.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaExternalKey build()
Returns an immutable instance of BetaExternalKey.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .attachment() .createdAt() .displayName() .geo() .providerConfig() .updatedAt() .userProfileId()
-
-
-
-