Class BetaOrganizationRateLimit.Builder
-
- All Implemented Interfaces:
public final class BetaOrganizationRateLimit.BuilderA builder for BetaOrganizationRateLimit.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaOrganizationRateLimit.Builder id(String id)
Identifier of this rate-limit entry. It is stable within the organization and differs between organizations; the group's own identifier is
group.id. Pass it asrate_limit_idto set a workspace's overrides for this group.
-
id
final BetaOrganizationRateLimit.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.
-
group
final BetaOrganizationRateLimit.Builder group(BetaOrganizationRateLimit.Group group)
The rate-limit group this entry's limits apply to.
-
group
final BetaOrganizationRateLimit.Builder group(JsonField<BetaOrganizationRateLimit.Group> group)
Sets Builder.group to an arbitrary JSON value.
You should usually call Builder.group with a well-typed Group value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
group
final BetaOrganizationRateLimit.Builder group(BetaOrganizationRateLimitModelGroup model)
Alias for calling group with
Group.ofModel(model).
-
group
final BetaOrganizationRateLimit.Builder group(BetaOrganizationRateLimitBatchGroup batch)
Alias for calling group with
Group.ofBatch(batch).
-
group
final BetaOrganizationRateLimit.Builder group(BetaOrganizationRateLimitTokenCountGroup tokenCount)
Alias for calling group with
Group.ofTokenCount(tokenCount).
-
group
final BetaOrganizationRateLimit.Builder group(BetaOrganizationRateLimitFilesGroup files)
Alias for calling group with
Group.ofFiles(files).
-
group
final BetaOrganizationRateLimit.Builder group(BetaOrganizationRateLimitSkillsGroup skills)
Alias for calling group with
Group.ofSkills(skills).
-
group
final BetaOrganizationRateLimit.Builder group(BetaOrganizationRateLimitWebSearchGroup webSearch)
Alias for calling group with
Group.ofWebSearch(webSearch).
-
limits
final BetaOrganizationRateLimit.Builder limits(List<BetaOrganizationRateLimitValue> limits)
The limiter values that apply to this group.
-
limits
final BetaOrganizationRateLimit.Builder limits(JsonField<List<BetaOrganizationRateLimitValue>> limits)
Sets Builder.limits to an arbitrary JSON value.
You should usually call Builder.limits with a well-typed
List<BetaOrganizationRateLimitValue>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
models
final BetaOrganizationRateLimit.Builder models(List<String> models)
Model names this entry's limits apply to, including aliases.
nullwhengroup.typeis not"model_group". The list covers the models your organization has access to, so it can differ between organizations.
-
models
final BetaOrganizationRateLimit.Builder models(Optional<List<String>> models)
Alias for calling Builder.models with
models.orElse(null).
-
models
final BetaOrganizationRateLimit.Builder models(JsonField<List<String>> models)
Sets Builder.models to an arbitrary JSON value.
You should usually call Builder.models with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaOrganizationRateLimit.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("rate_limit")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaOrganizationRateLimit.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
batchGroup
final BetaOrganizationRateLimit.Builder batchGroup(String id)
Alias for calling group with the following:
BetaOrganizationRateLimitBatchGroup.builder() .id(id) .build()
-
tokenCountGroup
final BetaOrganizationRateLimit.Builder tokenCountGroup(String id)
Alias for calling group with the following:
BetaOrganizationRateLimitTokenCountGroup.builder() .id(id) .build()
-
filesGroup
final BetaOrganizationRateLimit.Builder filesGroup(String id)
Alias for calling group with the following:
BetaOrganizationRateLimitFilesGroup.builder() .id(id) .build()
-
skillsGroup
final BetaOrganizationRateLimit.Builder skillsGroup(String id)
Alias for calling group with the following:
BetaOrganizationRateLimitSkillsGroup.builder() .id(id) .build()
-
webSearchGroup
final BetaOrganizationRateLimit.Builder webSearchGroup(String id)
Alias for calling group with the following:
BetaOrganizationRateLimitWebSearchGroup.builder() .id(id) .build()
-
addLimit
final BetaOrganizationRateLimit.Builder addLimit(BetaOrganizationRateLimitValue limit)
Adds a single BetaOrganizationRateLimitValue to limits.
-
addModel
final BetaOrganizationRateLimit.Builder addModel(String model)
-
putAdditionalProperty
final BetaOrganizationRateLimit.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaOrganizationRateLimit.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaOrganizationRateLimit.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaOrganizationRateLimit.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaOrganizationRateLimit build()
Returns an immutable instance of BetaOrganizationRateLimit.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .group() .limits() .models()
-
-
-
-