Class ApiKeyWorkspaceScope
-
- All Implemented Interfaces:
public final class ApiKeyWorkspaceScope
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classApiKeyWorkspaceScope.BuilderA builder for ApiKeyWorkspaceScope.
-
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 ApiKeyWorkspaceScope.BuildertoBuilder()final ApiKeyWorkspaceScopevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ApiKeyWorkspaceScope.Builderbuilder()Returns a mutable builder for constructing an instance of ApiKeyWorkspaceScope. final static ApiKeyWorkspaceScopeof(String workspaceId)Returns an immutable instance of ApiKeyWorkspaceScope 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 ApiKeyWorkspaceScope.Builder toBuilder()
-
validate
final ApiKeyWorkspaceScope 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 ApiKeyWorkspaceScope.Builder builder()
Returns a mutable builder for constructing an instance of ApiKeyWorkspaceScope.
The following fields are required:
.workspaceId()
-
of
final static ApiKeyWorkspaceScope of(String workspaceId)
Returns an immutable instance of ApiKeyWorkspaceScope with the required workspaceId set to the given value.
-
-
-
-