Class UserMessageParam.Builder
-
- All Implemented Interfaces:
public final class UserMessageParam.BuilderA builder for UserMessageParam.
-
-
Method Summary
-
-
Method Detail
-
content
final UserMessageParam.Builder content(MessageContentParam content)
-
content
final UserMessageParam.Builder content(JsonField<MessageContentParam> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed MessageContentParam value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final UserMessageParam.Builder content(String string)
Alias for calling content with
MessageContentParam.ofString(string).
-
role
final UserMessageParam.Builder role(JsonValue role)
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("user")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final UserMessageParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
contentOfContentBlockParams
final UserMessageParam.Builder contentOfContentBlockParams(List<ContentBlockParam> contentBlockParams)
Alias for calling content with
MessageContentParam.ofContentBlockParams(contentBlockParams).
-
putAdditionalProperty
final UserMessageParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final UserMessageParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final UserMessageParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final UserMessageParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final UserMessageParam build()
Returns an immutable instance of UserMessageParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content()
-
-
-
-