Class BetaManagedAgentsSessionUsageEvent.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionUsageEvent.BuilderA builder for BetaManagedAgentsSessionUsageEvent.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsSessionUsageEvent.Builder id(String id)
Unique identifier for this event.
-
id
final BetaManagedAgentsSessionUsageEvent.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.
-
processedAt
final BetaManagedAgentsSessionUsageEvent.Builder processedAt(OffsetDateTime processedAt)
Timestamp when the snapshot was taken.
-
processedAt
final BetaManagedAgentsSessionUsageEvent.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.
-
type
final BetaManagedAgentsSessionUsageEvent.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("session.usage")This method is primarily for setting the field to an undocumented or not yet supported value.
-
usage
final BetaManagedAgentsSessionUsageEvent.Builder usage(BetaManagedAgentsSessionUsageSnapshot usage)
The session's cumulative usage at the snapshot time.
-
usage
final BetaManagedAgentsSessionUsageEvent.Builder usage(JsonField<BetaManagedAgentsSessionUsageSnapshot> usage)
Sets Builder.usage to an arbitrary JSON value.
You should usually call Builder.usage with a well-typed BetaManagedAgentsSessionUsageSnapshot value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
budget
final BetaManagedAgentsSessionUsageEvent.Builder budget(BetaManagedAgentsBudgetLimit budget)
The session's configured budget at the snapshot time, or null when the session has no budget.
-
budget
final BetaManagedAgentsSessionUsageEvent.Builder budget(Optional<BetaManagedAgentsBudgetLimit> budget)
Alias for calling Builder.budget with
budget.orElse(null).
-
budget
final BetaManagedAgentsSessionUsageEvent.Builder budget(JsonField<BetaManagedAgentsBudgetLimit> budget)
Sets Builder.budget to an arbitrary JSON value.
You should usually call Builder.budget with a well-typed BetaManagedAgentsBudgetLimit value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsSessionUsageEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
limitBudget
final BetaManagedAgentsSessionUsageEvent.Builder limitBudget(BetaMonetaryAmount maxListCost)
Alias for calling budget with the following:
BetaManagedAgentsBudgetLimit.builder() .maxListCost(maxListCost) .build()
-
putAdditionalProperty
final BetaManagedAgentsSessionUsageEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsSessionUsageEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsSessionUsageEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsSessionUsageEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsSessionUsageEvent build()
Returns an immutable instance of BetaManagedAgentsSessionUsageEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .processedAt() .usage()
-
-
-
-