Class WorkspaceRateLimitValue
-
- All Implemented Interfaces:
public final class WorkspaceRateLimitValue
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWorkspaceRateLimitValue.BuilderA builder for WorkspaceRateLimitValue.
public final classWorkspaceRateLimitValue.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 WorkspaceRateLimitValue.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<WorkspaceRateLimitValue.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 WorkspaceRateLimitValue.BuildertoBuilder()final WorkspaceRateLimitValuevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static WorkspaceRateLimitValue.Builderbuilder()Returns a mutable builder for constructing an instance of WorkspaceRateLimitValue. -
-
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 WorkspaceRateLimitValue.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<WorkspaceRateLimitValue.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 WorkspaceRateLimitValue.Builder toBuilder()
-
validate
final WorkspaceRateLimitValue 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 WorkspaceRateLimitValue.Builder builder()
Returns a mutable builder for constructing an instance of WorkspaceRateLimitValue.
The following fields are required:
.orgLimit() .source() .type() .value()
-
-
-
-