Class BetaApiKeyWorkspaceScope
-
- All Implemented Interfaces:
public final class BetaApiKeyWorkspaceScope
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaApiKeyWorkspaceScope.BuilderA builder for BetaApiKeyWorkspaceScope.
-
Method Summary
Modifier and Type Method Description final StringworkspaceId()ID of the Workspace the API key belongs to, including when it is the organization's default Workspace. final JsonValue_type()Scope type. final JsonField<String>_workspaceId()Returns the raw JSON value of workspaceId. final Map<String, JsonValue>_additionalProperties()final BetaApiKeyWorkspaceScope.BuildertoBuilder()final BetaApiKeyWorkspaceScopevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaApiKeyWorkspaceScope.Builderbuilder()Returns a mutable builder for constructing an instance of BetaApiKeyWorkspaceScope. final static BetaApiKeyWorkspaceScopeof(String workspaceId)Returns an immutable instance of BetaApiKeyWorkspaceScope with the required workspaceId set to the given value. -
-
Method Detail
-
workspaceId
final String workspaceId()
ID of the Workspace the API key belongs to, including when it is the organization's default Workspace.
-
_type
final JsonValue _type()
Scope type. Always
"workspace": the API key belongs to one Workspace.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 BetaApiKeyWorkspaceScope.Builder toBuilder()
-
validate
final BetaApiKeyWorkspaceScope 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 BetaApiKeyWorkspaceScope.Builder builder()
Returns a mutable builder for constructing an instance of BetaApiKeyWorkspaceScope.
The following fields are required:
.workspaceId()
-
of
final static BetaApiKeyWorkspaceScope of(String workspaceId)
Returns an immutable instance of BetaApiKeyWorkspaceScope with the required workspaceId set to the given value.
-
-
-
-