Class RoleCreateResponse
-
- All Implemented Interfaces:
public final class RoleCreateResponseRole assignment linking a user to a role.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRoleCreateResponse.BuilderA builder for RoleCreateResponse.
-
Method Summary
Modifier and Type Method Description final JsonValue_object_()Always user.role.final Rolerole()Details about a role that can be assigned through the public Roles API. final OrganizationUseruser()Represents an individual userwithin an organization.final JsonField<Role>_role()Returns the raw JSON value of role. final JsonField<OrganizationUser>_user()Returns the raw JSON value of user. final Map<String, JsonValue>_additionalProperties()final RoleCreateResponse.BuildertoBuilder()final RoleCreateResponsevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RoleCreateResponse.Builderbuilder()Returns a mutable builder for constructing an instance of RoleCreateResponse. -
-
Method Detail
-
_object_
final JsonValue _object_()
Always
user.role.Expected to always return the following:
JsonValue.from("user.role")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
user
final OrganizationUser user()
Represents an individual
userwithin an organization.
-
_role
final JsonField<Role> _role()
Returns the raw JSON value of role.
Unlike role, this method doesn't throw if the JSON field has an unexpected type.
-
_user
final JsonField<OrganizationUser> _user()
Returns the raw JSON value of user.
Unlike user, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RoleCreateResponse.Builder toBuilder()
-
validate
final RoleCreateResponse 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 RoleCreateResponse.Builder builder()
Returns a mutable builder for constructing an instance of RoleCreateResponse.
The following fields are required:
.role() .user()
-
-
-
-