Class WorkspaceMember
-
- All Implemented Interfaces:
public final class WorkspaceMember
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWorkspaceMember.BuilderA builder for WorkspaceMember.
-
Method Summary
Modifier and Type Method Description final StringuserId()ID of the User. final StringworkspaceId()ID of the Workspace. final WorkspaceRoleworkspaceRole()Role of the Workspace Member. final JsonValue_type()Object type. final JsonField<String>_userId()Returns the raw JSON value of userId. final JsonField<String>_workspaceId()Returns the raw JSON value of workspaceId. final JsonField<WorkspaceRole>_workspaceRole()Returns the raw JSON value of workspaceRole. final Map<String, JsonValue>_additionalProperties()final WorkspaceMember.BuildertoBuilder()final WorkspaceMembervalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static WorkspaceMember.Builderbuilder()Returns a mutable builder for constructing an instance of WorkspaceMember. -
-
Method Detail
-
workspaceId
final String workspaceId()
ID of the Workspace.
-
workspaceRole
final WorkspaceRole workspaceRole()
Role of the Workspace Member.
-
_type
final JsonValue _type()
Object type.
For Workspace Members, this is always
"workspace_member".Expected to always return the following:
JsonValue.from("workspace_member")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_userId
final JsonField<String> _userId()
Returns the raw JSON value of userId.
Unlike userId, this method doesn't throw if the JSON field has an unexpected type.
-
_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.
-
_workspaceRole
final JsonField<WorkspaceRole> _workspaceRole()
Returns the raw JSON value of workspaceRole.
Unlike workspaceRole, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final WorkspaceMember.Builder toBuilder()
-
validate
final WorkspaceMember 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 WorkspaceMember.Builder builder()
Returns a mutable builder for constructing an instance of WorkspaceMember.
The following fields are required:
.userId() .workspaceId() .workspaceRole()
-
-
-
-