Class BetaManagedAgentsSystemMessageEvent.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSystemMessageEvent.BuilderA builder for BetaManagedAgentsSystemMessageEvent.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsSystemMessageEvent.Builder id(String id)
Unique identifier for this event.
-
id
final BetaManagedAgentsSystemMessageEvent.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final BetaManagedAgentsSystemMessageEvent.Builder content(List<BetaManagedAgentsSystemContentBlock> content)
System content blocks. Text-only.
-
content
final BetaManagedAgentsSystemMessageEvent.Builder content(JsonField<List<BetaManagedAgentsSystemContentBlock>> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed
List<BetaManagedAgentsSystemContentBlock>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addContent
final BetaManagedAgentsSystemMessageEvent.Builder addContent(BetaManagedAgentsSystemContentBlock content)
Adds a single BetaManagedAgentsSystemContentBlock to Builder.content.
-
addTextContent
final BetaManagedAgentsSystemMessageEvent.Builder addTextContent(String text)
Alias for calling addContent with the following:
BetaManagedAgentsSystemContentBlock.builder() .type(BetaManagedAgentsSystemContentBlock.Type.TEXT) .text(text) .build()
-
type
final BetaManagedAgentsSystemMessageEvent.Builder type(BetaManagedAgentsSystemMessageEvent.Type type)
-
type
final BetaManagedAgentsSystemMessageEvent.Builder type(JsonField<BetaManagedAgentsSystemMessageEvent.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
processedAt
final BetaManagedAgentsSystemMessageEvent.Builder processedAt(OffsetDateTime processedAt)
A timestamp in RFC 3339 format
-
processedAt
final BetaManagedAgentsSystemMessageEvent.Builder processedAt(Optional<OffsetDateTime> processedAt)
Alias for calling Builder.processedAt with
processedAt.orElse(null).
-
processedAt
final BetaManagedAgentsSystemMessageEvent.Builder processedAt(JsonField<OffsetDateTime> processedAt)
Sets Builder.processedAt to an arbitrary JSON value.
You should usually call Builder.processedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsSystemMessageEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsSystemMessageEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsSystemMessageEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsSystemMessageEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsSystemMessageEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsSystemMessageEvent build()
Returns an immutable instance of BetaManagedAgentsSystemMessageEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .content() .type()
-
-
-
-