Class BetaWorkspaceRateLimitValue
-
- All Implemented Interfaces:
public final class BetaWorkspaceRateLimitValue
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaWorkspaceRateLimitValue.BuilderA builder for BetaWorkspaceRateLimitValue.
public final classBetaWorkspaceRateLimitValue.SourceWhere
valuecomes from.organizationvalues are listed only wheninclude_inheritedistrue, and thenvalueequalsorg_limit.
-
Method Summary
Modifier and Type Method Description final Optional<Long>orgLimit()The organization-level value for the same limiter type, for reference. final BetaWorkspaceRateLimitValue.Sourcesource()Where valuecomes from.final Stringtype()The limiter type (for example, requests_per_minuteorinput_tokens_per_minute).final Longvalue()The workspace's value for this limiter type: the workspace-level override when source.typeisworkspace, otherwise the organization's value.final JsonField<Long>_orgLimit()Returns the raw JSON value of orgLimit. final JsonField<BetaWorkspaceRateLimitValue.Source>_source()Returns the raw JSON value of source. final JsonField<String>_type()Returns the raw JSON value of type. final JsonField<Long>_value()Returns the raw JSON value of value. final Map<String, JsonValue>_additionalProperties()final BetaWorkspaceRateLimitValue.BuildertoBuilder()final BetaWorkspaceRateLimitValuevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaWorkspaceRateLimitValue.Builderbuilder()Returns a mutable builder for constructing an instance of BetaWorkspaceRateLimitValue. -
-
Method Detail
-
orgLimit
final Optional<Long> orgLimit()
The organization-level value for the same limiter type, for reference.
nullwhen the organization has no limit configured for this limiter type.
-
source
final BetaWorkspaceRateLimitValue.Source source()
Where
valuecomes from.organizationvalues are listed only wheninclude_inheritedistrue, and thenvalueequalsorg_limit.
-
type
final String type()
The limiter type (for example,
requests_per_minuteorinput_tokens_per_minute).
-
value
final Long value()
The workspace's value for this limiter type: the workspace-level override when
source.typeisworkspace, otherwise the organization's value.
-
_orgLimit
final JsonField<Long> _orgLimit()
Returns the raw JSON value of orgLimit.
Unlike orgLimit, this method doesn't throw if the JSON field has an unexpected type.
-
_source
final JsonField<BetaWorkspaceRateLimitValue.Source> _source()
Returns the raw JSON value of source.
Unlike source, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<String> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_value
final JsonField<Long> _value()
Returns the raw JSON value of value.
Unlike value, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaWorkspaceRateLimitValue.Builder toBuilder()
-
validate
final BetaWorkspaceRateLimitValue validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaWorkspaceRateLimitValue.Builder builder()
Returns a mutable builder for constructing an instance of BetaWorkspaceRateLimitValue.
The following fields are required:
.orgLimit() .source() .type() .value()
-
-
-
-