Class ExternalKey.Builder
-
- All Implemented Interfaces:
public final class ExternalKey.BuilderA builder for ExternalKey.
-
-
Method Summary
Modifier and Type Method Description final ExternalKey.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 ExternalKey.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final ExternalKey.Builderattachment(ExternalKey.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 ExternalKey.Builderattachment(JsonField<ExternalKey.Attachment> attachment)Sets Builder.attachment to an arbitrary JSON value. final ExternalKey.Builderattachment(ExternalKeyAttachedAttachment attached)Alias for calling attachment with Attachment.ofAttached(attached).final ExternalKey.Builderattachment(ExternalKeyUnattachedAttachment unattached)Alias for calling attachment with Attachment.ofUnattached(unattached).final ExternalKey.BuildercreatedAt(OffsetDateTime createdAt)final ExternalKey.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final ExternalKey.BuilderdisplayName(String displayName)Human-friendly display name. final ExternalKey.BuilderdisplayName(Optional<String> displayName)Alias for calling Builder.displayName with displayName.orElse(null).final ExternalKey.BuilderdisplayName(JsonField<String> displayName)Sets Builder.displayName to an arbitrary JSON value. final ExternalKey.Buildergeo(String geo)Data residency geo. final ExternalKey.Buildergeo(JsonField<String> geo)Sets Builder.geo to an arbitrary JSON value. final ExternalKey.BuilderproviderConfig(ExternalKey.ProviderConfig providerConfig)KMS provider identity and auth coordinates. final ExternalKey.BuilderproviderConfig(JsonField<ExternalKey.ProviderConfig> providerConfig)Sets Builder.providerConfig to an arbitrary JSON value. final ExternalKey.BuilderproviderConfig(AwsExternalKeyConfig aws)Alias for calling providerConfig with ProviderConfig.ofAws(aws).final ExternalKey.BuilderproviderConfig(GcpExternalKeyConfig gcp)Alias for calling providerConfig with ProviderConfig.ofGcp(gcp).final ExternalKey.BuilderproviderConfig(AzureExternalKeyConfig azure)Alias for calling providerConfig with ProviderConfig.ofAzure(azure).final ExternalKey.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final ExternalKey.BuilderupdatedAt(OffsetDateTime updatedAt)final ExternalKey.BuilderupdatedAt(JsonField<OffsetDateTime> updatedAt)Sets Builder.updatedAt to an arbitrary JSON value. final ExternalKey.BuilderuserProfileId(String userProfileId)ID of the user profile the key is bound to, or null if the key is not bound to one. final ExternalKey.BuilderuserProfileId(Optional<String> userProfileId)Alias for calling Builder.userProfileId with userProfileId.orElse(null).final ExternalKey.BuilderuserProfileId(JsonField<String> userProfileId)Sets Builder.userProfileId to an arbitrary JSON value. final ExternalKey.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ExternalKey.BuilderawsProviderConfig(String kmsArn)Alias for calling providerConfig with the following: AwsExternalKeyConfig.builder() .kmsArn(kmsArn) .build()final ExternalKey.BuildergcpProviderConfig(String keyName)Alias for calling providerConfig with the following: GcpExternalKeyConfig.builder() .keyName(keyName) .build()final ExternalKey.BuilderputAdditionalProperty(String key, JsonValue value)final ExternalKey.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ExternalKey.BuilderremoveAdditionalProperty(String key)final ExternalKey.BuilderremoveAllAdditionalProperties(Set<String> keys)final ExternalKeybuild()Returns an immutable instance of ExternalKey. -
-
Method Detail
-
id
final ExternalKey.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 ExternalKey.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 ExternalKey.Builder attachment(ExternalKey.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 ExternalKey.Builder attachment(JsonField<ExternalKey.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 ExternalKey.Builder attachment(ExternalKeyAttachedAttachment attached)
Alias for calling attachment with
Attachment.ofAttached(attached).
-
attachment
final ExternalKey.Builder attachment(ExternalKeyUnattachedAttachment unattached)
Alias for calling attachment with
Attachment.ofUnattached(unattached).
-
createdAt
final ExternalKey.Builder createdAt(OffsetDateTime createdAt)
-
createdAt
final ExternalKey.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 ExternalKey.Builder displayName(String displayName)
Human-friendly display name. Null if none was set.
-
displayName
final ExternalKey.Builder displayName(Optional<String> displayName)
Alias for calling Builder.displayName with
displayName.orElse(null).
-
displayName
final ExternalKey.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 ExternalKey.Builder geo(String geo)
Data residency geo. Selects the region this key is used in.
-
geo
final ExternalKey.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 ExternalKey.Builder providerConfig(ExternalKey.ProviderConfig providerConfig)
KMS provider identity and auth coordinates.
-
providerConfig
final ExternalKey.Builder providerConfig(JsonField<ExternalKey.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 ExternalKey.Builder providerConfig(AwsExternalKeyConfig aws)
Alias for calling providerConfig with
ProviderConfig.ofAws(aws).
-
providerConfig
final ExternalKey.Builder providerConfig(GcpExternalKeyConfig gcp)
Alias for calling providerConfig with
ProviderConfig.ofGcp(gcp).
-
providerConfig
final ExternalKey.Builder providerConfig(AzureExternalKeyConfig azure)
Alias for calling providerConfig with
ProviderConfig.ofAzure(azure).
-
type
final ExternalKey.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 ExternalKey.Builder updatedAt(OffsetDateTime updatedAt)
-
updatedAt
final ExternalKey.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 ExternalKey.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 ExternalKey.Builder userProfileId(Optional<String> userProfileId)
Alias for calling Builder.userProfileId with
userProfileId.orElse(null).
-
userProfileId
final ExternalKey.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 ExternalKey.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
awsProviderConfig
final ExternalKey.Builder awsProviderConfig(String kmsArn)
Alias for calling providerConfig with the following:
AwsExternalKeyConfig.builder() .kmsArn(kmsArn) .build()
-
gcpProviderConfig
final ExternalKey.Builder gcpProviderConfig(String keyName)
Alias for calling providerConfig with the following:
GcpExternalKeyConfig.builder() .keyName(keyName) .build()
-
putAdditionalProperty
final ExternalKey.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ExternalKey.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ExternalKey.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ExternalKey.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ExternalKey build()
Returns an immutable instance of ExternalKey.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .attachment() .createdAt() .displayName() .geo() .providerConfig() .updatedAt() .userProfileId()
-
-
-
-