Class SpendLimitWorkspaceScope
-
- All Implemented Interfaces:
public final class SpendLimitWorkspaceScopeScope selecting one workspace of a Claude Console organization.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSpendLimitWorkspaceScope.BuilderA builder for SpendLimitWorkspaceScope.
-
Method Summary
Modifier and Type Method Description final StringworkspaceId()Tagged ID of the workspace the spend limit applies to. final JsonValue_type()Scope type. final JsonField<String>_workspaceId()Returns the raw JSON value of workspaceId. final Map<String, JsonValue>_additionalProperties()final SpendLimitWorkspaceScope.BuildertoBuilder()final SpendLimitWorkspaceScopevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static SpendLimitWorkspaceScope.Builderbuilder()Returns a mutable builder for constructing an instance of SpendLimitWorkspaceScope. final static SpendLimitWorkspaceScopeof(String workspaceId)Returns an immutable instance of SpendLimitWorkspaceScope with the required workspaceId set to the given value. -
-
Method Detail
-
workspaceId
final String workspaceId()
Tagged ID of the workspace the spend limit applies to.
-
_type
final JsonValue _type()
Scope type. Always
workspacefor this scope.Expected to always return the following:
JsonValue.from("workspace")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_workspaceId
final JsonField<String> _workspaceId()
Returns the raw JSON value of workspaceId.
Unlike workspaceId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SpendLimitWorkspaceScope.Builder toBuilder()
-
validate
final SpendLimitWorkspaceScope 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 SpendLimitWorkspaceScope.Builder builder()
Returns a mutable builder for constructing an instance of SpendLimitWorkspaceScope.
The following fields are required:
.workspaceId()
-
of
final static SpendLimitWorkspaceScope of(String workspaceId)
Returns an immutable instance of SpendLimitWorkspaceScope with the required workspaceId set to the given value.
-
-
-
-