Class BetaMetadata.Builder
-
- All Implemented Interfaces:
public final class BetaMetadata.BuilderA builder for BetaMetadata.
-
-
Method Summary
Modifier and Type Method Description final BetaMetadata.BuilderuserId(String userId)An external identifier for the user who is associated with the request. final BetaMetadata.BuilderuserId(Optional<String> userId)An external identifier for the user who is associated with the request. final BetaMetadata.BuilderuserId(JsonField<String> userId)An external identifier for the user who is associated with the request. final BetaMetadata.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaMetadata.BuilderputAdditionalProperty(String key, JsonValue value)final BetaMetadata.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaMetadata.BuilderremoveAdditionalProperty(String key)final BetaMetadata.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaMetadatabuild()-
-
Method Detail
-
userId
final BetaMetadata.Builder userId(String userId)
An external identifier for the user who is associated with the request.
This should be a uuid, hash value, or other opaque identifier. Anthropic may use this id to help detect abuse. Do not include any identifying information such as name, email address, or phone number.
-
userId
final BetaMetadata.Builder userId(Optional<String> userId)
An external identifier for the user who is associated with the request.
This should be a uuid, hash value, or other opaque identifier. Anthropic may use this id to help detect abuse. Do not include any identifying information such as name, email address, or phone number.
-
userId
final BetaMetadata.Builder userId(JsonField<String> userId)
An external identifier for the user who is associated with the request.
This should be a uuid, hash value, or other opaque identifier. Anthropic may use this id to help detect abuse. Do not include any identifying information such as name, email address, or phone number.
-
additionalProperties
final BetaMetadata.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaMetadata.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaMetadata.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaMetadata.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaMetadata.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaMetadata build()
-
-
-
-