Class BetaWorkspaceRateLimitValue.Builder
-
- All Implemented Interfaces:
public final class BetaWorkspaceRateLimitValue.BuilderA builder for BetaWorkspaceRateLimitValue.
-
-
Method Summary
-
-
Method Detail
-
orgLimit
final BetaWorkspaceRateLimitValue.Builder orgLimit(Long orgLimit)
The organization-level value for the same limiter type, for reference.
nullwhen the organization has no limit configured for this limiter type.
-
orgLimit
final BetaWorkspaceRateLimitValue.Builder orgLimit(Long orgLimit)
Alias for Builder.orgLimit.
This unboxed primitive overload exists for backwards compatibility.
-
orgLimit
final BetaWorkspaceRateLimitValue.Builder orgLimit(Optional<Long> orgLimit)
Alias for calling Builder.orgLimit with
orgLimit.orElse(null).
-
orgLimit
final BetaWorkspaceRateLimitValue.Builder orgLimit(JsonField<Long> orgLimit)
Sets Builder.orgLimit to an arbitrary JSON value.
You should usually call Builder.orgLimit with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
source
final BetaWorkspaceRateLimitValue.Builder source(BetaWorkspaceRateLimitValue.Source source)
Where
valuecomes from.organizationvalues are listed only wheninclude_inheritedistrue, and thenvalueequalsorg_limit.
-
source
final BetaWorkspaceRateLimitValue.Builder source(JsonField<BetaWorkspaceRateLimitValue.Source> source)
Sets Builder.source to an arbitrary JSON value.
You should usually call Builder.source with a well-typed Source value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
source
final BetaWorkspaceRateLimitValue.Builder source(BetaWorkspaceRateLimitWorkspaceSource workspace)
Alias for calling source with
Source.ofWorkspace(workspace).
-
source
final BetaWorkspaceRateLimitValue.Builder source(BetaWorkspaceRateLimitOrganizationSource organization)
Alias for calling source with
Source.ofOrganization(organization).
-
type
final BetaWorkspaceRateLimitValue.Builder type(String type)
The limiter type (for example,
requests_per_minuteorinput_tokens_per_minute).
-
type
final BetaWorkspaceRateLimitValue.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.
-
value
final BetaWorkspaceRateLimitValue.Builder value(Long value)
The workspace's value for this limiter type: the workspace-level override when
source.typeisworkspace, otherwise the organization's value.
-
value
final BetaWorkspaceRateLimitValue.Builder value(JsonField<Long> value)
Sets Builder.value to an arbitrary JSON value.
You should usually call Builder.value 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 BetaWorkspaceRateLimitValue.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaWorkspaceRateLimitValue.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaWorkspaceRateLimitValue.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaWorkspaceRateLimitValue.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaWorkspaceRateLimitValue.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaWorkspaceRateLimitValue build()
Returns an immutable instance of BetaWorkspaceRateLimitValue.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.orgLimit() .source() .type() .value()
-
-
-
-