Class BetaMessageParam.Builder
-
- All Implemented Interfaces:
public final class BetaMessageParam.BuilderA builder for BetaMessageParam.
-
-
Method Summary
-
-
Method Detail
-
content
final BetaMessageParam.Builder content(BetaMessageParam.Content content)
-
content
final BetaMessageParam.Builder content(JsonField<BetaMessageParam.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 BetaMessageParam.Builder content(String string)
Alias for calling content with
Content.ofString(string).
-
contentOfBetaContentBlockParams
final BetaMessageParam.Builder contentOfBetaContentBlockParams(List<BetaContentBlockParam> betaContentBlockParams)
Alias for calling content with
Content.ofBetaContentBlockParams(betaContentBlockParams).
-
role
final BetaMessageParam.Builder role(BetaMessageParam.Role role)
-
role
final BetaMessageParam.Builder role(JsonField<BetaMessageParam.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 BetaMessageParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaMessageParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaMessageParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaMessageParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaMessageParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaMessageParam build()
Returns an immutable instance of BetaMessageParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content() .role()
-
-
-
-