Package com.anthropic.models.messages
Class MessageParam.Builder
-
- All Implemented Interfaces:
public final class MessageParam.BuilderA builder for MessageParam.
-
-
Method Summary
-
-
Method Detail
-
content
final MessageParam.Builder content(MessageParam.Content content)
-
content
final MessageParam.Builder content(JsonField<MessageParam.Content> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed Content value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final MessageParam.Builder content(String string)
Alias for calling content with
Content.ofString(string).
-
contentOfBlockParams
final MessageParam.Builder contentOfBlockParams(List<ContentBlockParam> blockParams)
Alias for calling content with
Content.ofBlockParams(blockParams).
-
role
final MessageParam.Builder role(MessageParam.Role role)
-
role
final MessageParam.Builder role(JsonField<MessageParam.Role> role)
Sets Builder.role to an arbitrary JSON value.
You should usually call Builder.role with a well-typed Role value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final MessageParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final MessageParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final MessageParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final MessageParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final MessageParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final MessageParam build()
Returns an immutable instance of MessageParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content() .role()
-
-
-
-