Class BetaRawMessageStartEvent.Builder
-
- All Implemented Interfaces:
public final class BetaRawMessageStartEvent.BuilderA builder for BetaRawMessageStartEvent.
-
-
Method Summary
Modifier and Type Method Description final BetaRawMessageStartEvent.Buildermessage(BetaMessage message)final BetaRawMessageStartEvent.Buildermessage(JsonField<BetaMessage> message)Sets Builder.message to an arbitrary JSON value. final BetaRawMessageStartEvent.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaRawMessageStartEvent.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaRawMessageStartEvent.BuilderputAdditionalProperty(String key, JsonValue value)final BetaRawMessageStartEvent.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaRawMessageStartEvent.BuilderremoveAdditionalProperty(String key)final BetaRawMessageStartEvent.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaRawMessageStartEventbuild()Returns an immutable instance of BetaRawMessageStartEvent. -
-
Method Detail
-
message
final BetaRawMessageStartEvent.Builder message(BetaMessage message)
-
message
final BetaRawMessageStartEvent.Builder message(JsonField<BetaMessage> message)
Sets Builder.message to an arbitrary JSON value.
You should usually call Builder.message with a well-typed BetaMessage value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaRawMessageStartEvent.Builder type(JsonValue type)
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("message_start")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaRawMessageStartEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaRawMessageStartEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaRawMessageStartEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaRawMessageStartEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaRawMessageStartEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaRawMessageStartEvent build()
Returns an immutable instance of BetaRawMessageStartEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.message()
-
-
-
-