Class BetaWorkspaceRateLimit.Builder
-
- All Implemented Interfaces:
public final class BetaWorkspaceRateLimit.BuilderA builder for BetaWorkspaceRateLimit.
-
-
Method Summary
-
-
Method Detail
-
group
final BetaWorkspaceRateLimit.Builder group(BetaWorkspaceRateLimit.Group group)
The rate-limit group this entry's limits apply to.
-
group
final BetaWorkspaceRateLimit.Builder group(JsonField<BetaWorkspaceRateLimit.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 BetaWorkspaceRateLimit.Builder group(BetaOrganizationRateLimitModelGroup model)
Alias for calling group with
Group.ofModel(model).
-
group
final BetaWorkspaceRateLimit.Builder group(BetaOrganizationRateLimitBatchGroup batch)
Alias for calling group with
Group.ofBatch(batch).
-
group
final BetaWorkspaceRateLimit.Builder group(BetaOrganizationRateLimitTokenCountGroup tokenCount)
Alias for calling group with
Group.ofTokenCount(tokenCount).
-
group
final BetaWorkspaceRateLimit.Builder group(BetaOrganizationRateLimitFilesGroup files)
Alias for calling group with
Group.ofFiles(files).
-
group
final BetaWorkspaceRateLimit.Builder group(BetaOrganizationRateLimitSkillsGroup skills)
Alias for calling group with
Group.ofSkills(skills).
-
group
final BetaWorkspaceRateLimit.Builder group(BetaOrganizationRateLimitWebSearchGroup webSearch)
Alias for calling group with
Group.ofWebSearch(webSearch).
-
limits
final BetaWorkspaceRateLimit.Builder limits(List<BetaWorkspaceRateLimitValue> limits)
The workspace's limiter values for this group. By default only the limiter types with a workspace-level override are listed. With
include_inheritedset totrue, the limiter types the workspace inherits from the organization are listed too, each marked bysource.
-
limits
final BetaWorkspaceRateLimit.Builder limits(JsonField<List<BetaWorkspaceRateLimitValue>> limits)
Sets Builder.limits to an arbitrary JSON value.
You should usually call Builder.limits with a well-typed
List<BetaWorkspaceRateLimitValue>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
models
final BetaWorkspaceRateLimit.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 this workspace has access to, so it can differ between workspaces.
-
models
final BetaWorkspaceRateLimit.Builder models(Optional<List<String>> models)
Alias for calling Builder.models with
models.orElse(null).
-
models
final BetaWorkspaceRateLimit.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.
-
rateLimitId
final BetaWorkspaceRateLimit.Builder rateLimitId(String rateLimitId)
The
idof the organization's RateLimit entry this entry applies to.
-
rateLimitId
final BetaWorkspaceRateLimit.Builder rateLimitId(JsonField<String> rateLimitId)
Sets Builder.rateLimitId to an arbitrary JSON value.
You should usually call Builder.rateLimitId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaWorkspaceRateLimit.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("workspace_rate_limit")This method is primarily for setting the field to an undocumented or not yet supported value.
-
workspaceId
final BetaWorkspaceRateLimit.Builder workspaceId(String workspaceId)
ID of the Workspace this entry applies to.
-
workspaceId
final BetaWorkspaceRateLimit.Builder workspaceId(JsonField<String> workspaceId)
Sets Builder.workspaceId to an arbitrary JSON value.
You should usually call Builder.workspaceId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaWorkspaceRateLimit.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
batchGroup
final BetaWorkspaceRateLimit.Builder batchGroup(String id)
Alias for calling group with the following:
BetaOrganizationRateLimitBatchGroup.builder() .id(id) .build()
-
tokenCountGroup
final BetaWorkspaceRateLimit.Builder tokenCountGroup(String id)
Alias for calling group with the following:
BetaOrganizationRateLimitTokenCountGroup.builder() .id(id) .build()
-
filesGroup
final BetaWorkspaceRateLimit.Builder filesGroup(String id)
Alias for calling group with the following:
BetaOrganizationRateLimitFilesGroup.builder() .id(id) .build()
-
skillsGroup
final BetaWorkspaceRateLimit.Builder skillsGroup(String id)
Alias for calling group with the following:
BetaOrganizationRateLimitSkillsGroup.builder() .id(id) .build()
-
webSearchGroup
final BetaWorkspaceRateLimit.Builder webSearchGroup(String id)
Alias for calling group with the following:
BetaOrganizationRateLimitWebSearchGroup.builder() .id(id) .build()
-
addLimit
final BetaWorkspaceRateLimit.Builder addLimit(BetaWorkspaceRateLimitValue limit)
Adds a single BetaWorkspaceRateLimitValue to limits.
-
addModel
final BetaWorkspaceRateLimit.Builder addModel(String model)
-
putAdditionalProperty
final BetaWorkspaceRateLimit.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaWorkspaceRateLimit.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaWorkspaceRateLimit.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaWorkspaceRateLimit.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaWorkspaceRateLimit build()
Returns an immutable instance of BetaWorkspaceRateLimit.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.group() .limits() .models() .rateLimitId() .workspaceId()
-
-
-
-