Class Metadata.Builder
-
- All Implemented Interfaces:
public final class Metadata.BuilderA builder for Metadata.
-
-
Method Summary
Modifier and Type Method Description final Metadata.BuilderuserId(String userId)An external identifier for the user who is associated with the request. final Metadata.BuilderuserId(Optional<String> userId)An external identifier for the user who is associated with the request. final Metadata.BuilderuserId(JsonField<String> userId)An external identifier for the user who is associated with the request. final Metadata.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final Metadata.BuilderputAdditionalProperty(String key, JsonValue value)final Metadata.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final Metadata.BuilderremoveAdditionalProperty(String key)final Metadata.BuilderremoveAllAdditionalProperties(Set<String> keys)final Metadatabuild()-
-
Method Detail
-
userId
final Metadata.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 Metadata.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 Metadata.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 Metadata.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Metadata.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Metadata.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Metadata.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Metadata.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-