Class MemoryUpdateParams.Body.Builder
-
- All Implemented Interfaces:
public final class MemoryUpdateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
content
final MemoryUpdateParams.Body.Builder content(String content)
New UTF-8 text content for the memory. Maximum 100 kB (102,400 bytes). Omit to leave the content unchanged (e.g., for a rename-only update).
-
content
final MemoryUpdateParams.Body.Builder content(Optional<String> content)
Alias for calling Builder.content with
content.orElse(null).
-
content
final MemoryUpdateParams.Body.Builder content(JsonField<String> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
path
final MemoryUpdateParams.Body.Builder path(String path)
The new path of the memory, which renames it. Omit it to keep the current path.
The memory keeps its
id. A path starts with/and has 1 to 20 segments. A segment can't be empty and can't be.or... A path can't contain control characters, format characters, or the line and paragraph separators U+2028 and U+2029. It must be in Unicode Normalization Form C and at most 1,024 bytes long. Paths are case-sensitive.
-
path
final MemoryUpdateParams.Body.Builder path(Optional<String> path)
Alias for calling Builder.path with
path.orElse(null).
-
path
final MemoryUpdateParams.Body.Builder path(JsonField<String> path)
Sets Builder.path to an arbitrary JSON value.
You should usually call Builder.path with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
precondition
final MemoryUpdateParams.Body.Builder precondition(BetaManagedAgentsPrecondition precondition)
The condition that the memory must meet for the update to apply. Omit it to update unconditionally.
If the condition fails, the request fails with HTTP status 409.
-
precondition
final MemoryUpdateParams.Body.Builder precondition(JsonField<BetaManagedAgentsPrecondition> precondition)
Sets Builder.precondition to an arbitrary JSON value.
You should usually call Builder.precondition with a well-typed BetaManagedAgentsPrecondition value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final MemoryUpdateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final MemoryUpdateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final MemoryUpdateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final MemoryUpdateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final MemoryUpdateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final MemoryUpdateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-