Class ResponseCreateParams.ContextManagement.Builder
-
- All Implemented Interfaces:
public final class ResponseCreateParams.ContextManagement.BuilderA builder for ContextManagement.
-
-
Method Summary
-
-
Method Detail
-
type
final ResponseCreateParams.ContextManagement.Builder type(String type)
The context management entry type. Currently only 'compaction' is supported.
-
type
final ResponseCreateParams.ContextManagement.Builder type(JsonField<String> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
compactThreshold
final ResponseCreateParams.ContextManagement.Builder compactThreshold(Long compactThreshold)
Token threshold at which compaction should be triggered for this entry.
-
compactThreshold
final ResponseCreateParams.ContextManagement.Builder compactThreshold(Long compactThreshold)
Alias for Builder.compactThreshold.
This unboxed primitive overload exists for backwards compatibility.
-
compactThreshold
final ResponseCreateParams.ContextManagement.Builder compactThreshold(Optional<Long> compactThreshold)
Alias for calling Builder.compactThreshold with
compactThreshold.orElse(null).
-
compactThreshold
final ResponseCreateParams.ContextManagement.Builder compactThreshold(JsonField<Long> compactThreshold)
Sets Builder.compactThreshold to an arbitrary JSON value.
You should usually call Builder.compactThreshold with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseCreateParams.ContextManagement.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseCreateParams.ContextManagement.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseCreateParams.ContextManagement.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseCreateParams.ContextManagement.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseCreateParams.ContextManagement.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseCreateParams.ContextManagement build()
Returns an immutable instance of ContextManagement.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.type()
-
-
-
-