Class ProjectRateLimit.Builder
-
- All Implemented Interfaces:
public final class ProjectRateLimit.BuilderA builder for ProjectRateLimit.
-
-
Method Summary
-
-
Method Detail
-
id
final ProjectRateLimit.Builder id(String id)
The identifier, which can be referenced in API endpoints.
-
id
final ProjectRateLimit.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.
-
maxRequestsPer1Minute
final ProjectRateLimit.Builder maxRequestsPer1Minute(Long maxRequestsPer1Minute)
The maximum requests per minute.
-
maxRequestsPer1Minute
final ProjectRateLimit.Builder maxRequestsPer1Minute(JsonField<Long> maxRequestsPer1Minute)
Sets Builder.maxRequestsPer1Minute to an arbitrary JSON value.
You should usually call Builder.maxRequestsPer1Minute with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxTokensPer1Minute
final ProjectRateLimit.Builder maxTokensPer1Minute(Long maxTokensPer1Minute)
The maximum tokens per minute.
-
maxTokensPer1Minute
final ProjectRateLimit.Builder maxTokensPer1Minute(JsonField<Long> maxTokensPer1Minute)
Sets Builder.maxTokensPer1Minute to an arbitrary JSON value.
You should usually call Builder.maxTokensPer1Minute with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final ProjectRateLimit.Builder model(String model)
The model this rate limit applies to.
-
model
final ProjectRateLimit.Builder model(JsonField<String> model)
Sets Builder.model to an arbitrary JSON value.
You should usually call Builder.model with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
object_
final ProjectRateLimit.Builder object_(JsonValue object_)
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("project.rate_limit")This method is primarily for setting the field to an undocumented or not yet supported value.
-
batch1DayMaxInputTokens
final ProjectRateLimit.Builder batch1DayMaxInputTokens(Long batch1DayMaxInputTokens)
The maximum batch input tokens per day. Only present for relevant models.
-
batch1DayMaxInputTokens
final ProjectRateLimit.Builder batch1DayMaxInputTokens(JsonField<Long> batch1DayMaxInputTokens)
Sets Builder.batch1DayMaxInputTokens to an arbitrary JSON value.
You should usually call Builder.batch1DayMaxInputTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxAudioMegabytesPer1Minute
final ProjectRateLimit.Builder maxAudioMegabytesPer1Minute(Long maxAudioMegabytesPer1Minute)
The maximum audio megabytes per minute. Only present for relevant models.
-
maxAudioMegabytesPer1Minute
final ProjectRateLimit.Builder maxAudioMegabytesPer1Minute(JsonField<Long> maxAudioMegabytesPer1Minute)
Sets Builder.maxAudioMegabytesPer1Minute to an arbitrary JSON value.
You should usually call Builder.maxAudioMegabytesPer1Minute with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxImagesPer1Minute
final ProjectRateLimit.Builder maxImagesPer1Minute(Long maxImagesPer1Minute)
The maximum images per minute. Only present for relevant models.
-
maxImagesPer1Minute
final ProjectRateLimit.Builder maxImagesPer1Minute(JsonField<Long> maxImagesPer1Minute)
Sets Builder.maxImagesPer1Minute to an arbitrary JSON value.
You should usually call Builder.maxImagesPer1Minute with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxRequestsPer1Day
final ProjectRateLimit.Builder maxRequestsPer1Day(Long maxRequestsPer1Day)
The maximum requests per day. Only present for relevant models.
-
maxRequestsPer1Day
final ProjectRateLimit.Builder maxRequestsPer1Day(JsonField<Long> maxRequestsPer1Day)
Sets Builder.maxRequestsPer1Day to an arbitrary JSON value.
You should usually call Builder.maxRequestsPer1Day 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 ProjectRateLimit.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ProjectRateLimit.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ProjectRateLimit.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ProjectRateLimit.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ProjectRateLimit.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ProjectRateLimit build()
Returns an immutable instance of ProjectRateLimit.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .maxRequestsPer1Minute() .maxTokensPer1Minute() .model()
-
-
-
-