Class RoleRetrieveResponse
-
- All Implemented Interfaces:
public final class RoleRetrieveResponseDetailed information about a role assignment entry returned when listing assignments.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRoleRetrieveResponse.BuilderA builder for RoleRetrieveResponse.
public final classRoleRetrieveResponse.AssignmentSourcepublic final classRoleRetrieveResponse.CreatedByUserObjUser details for the actor that created the role, when available.
public final classRoleRetrieveResponse.MetadataArbitrary metadata stored on the role.
-
Method Summary
Modifier and Type Method Description final Stringid()Identifier for the role. final Optional<List<RoleRetrieveResponse.AssignmentSource>>assignmentSources()Principals from which the role assignment is inherited, when available. final Optional<Long>createdAt()When the role was created. final Optional<String>createdBy()Identifier of the actor who created the role. final Optional<RoleRetrieveResponse.CreatedByUserObj>createdByUserObj()User details for the actor that created the role, when available. final Optional<String>description()Description of the role. final Optional<RoleRetrieveResponse.Metadata>metadata()Arbitrary metadata stored on the role. final Stringname()Name of the role. final List<String>permissions()Permissions associated with the role. final BooleanpredefinedRole()Whether the role is predefined by OpenAI. final StringresourceType()Resource type the role applies to. final Optional<Long>updatedAt()When the role was last updated. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<List<RoleRetrieveResponse.AssignmentSource>>_assignmentSources()Returns the raw JSON value of assignmentSources. final JsonField<Long>_createdAt()Returns the raw JSON value of createdAt. final JsonField<String>_createdBy()Returns the raw JSON value of createdBy. final JsonField<RoleRetrieveResponse.CreatedByUserObj>_createdByUserObj()Returns the raw JSON value of createdByUserObj. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<RoleRetrieveResponse.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<List<String>>_permissions()Returns the raw JSON value of permissions. final JsonField<Boolean>_predefinedRole()Returns the raw JSON value of predefinedRole. final JsonField<String>_resourceType()Returns the raw JSON value of resourceType. final JsonField<Long>_updatedAt()Returns the raw JSON value of updatedAt. final Map<String, JsonValue>_additionalProperties()final RoleRetrieveResponse.BuildertoBuilder()final RoleRetrieveResponsevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RoleRetrieveResponse.Builderbuilder()Returns a mutable builder for constructing an instance of RoleRetrieveResponse. -
-
Method Detail
-
assignmentSources
final Optional<List<RoleRetrieveResponse.AssignmentSource>> assignmentSources()
Principals from which the role assignment is inherited, when available.
-
createdByUserObj
final Optional<RoleRetrieveResponse.CreatedByUserObj> createdByUserObj()
User details for the actor that created the role, when available.
-
description
final Optional<String> description()
Description of the role.
-
metadata
final Optional<RoleRetrieveResponse.Metadata> metadata()
Arbitrary metadata stored on the role.
-
permissions
final List<String> permissions()
Permissions associated with the role.
-
predefinedRole
final Boolean predefinedRole()
Whether the role is predefined by OpenAI.
-
resourceType
final String resourceType()
Resource type the role applies to.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_assignmentSources
final JsonField<List<RoleRetrieveResponse.AssignmentSource>> _assignmentSources()
Returns the raw JSON value of assignmentSources.
Unlike assignmentSources, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<Long> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_createdBy
final JsonField<String> _createdBy()
Returns the raw JSON value of createdBy.
Unlike createdBy, this method doesn't throw if the JSON field has an unexpected type.
-
_createdByUserObj
final JsonField<RoleRetrieveResponse.CreatedByUserObj> _createdByUserObj()
Returns the raw JSON value of createdByUserObj.
Unlike createdByUserObj, this method doesn't throw if the JSON field has an unexpected type.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<RoleRetrieveResponse.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_permissions
final JsonField<List<String>> _permissions()
Returns the raw JSON value of permissions.
Unlike permissions, this method doesn't throw if the JSON field has an unexpected type.
-
_predefinedRole
final JsonField<Boolean> _predefinedRole()
Returns the raw JSON value of predefinedRole.
Unlike predefinedRole, this method doesn't throw if the JSON field has an unexpected type.
-
_resourceType
final JsonField<String> _resourceType()
Returns the raw JSON value of resourceType.
Unlike resourceType, this method doesn't throw if the JSON field has an unexpected type.
-
_updatedAt
final JsonField<Long> _updatedAt()
Returns the raw JSON value of updatedAt.
Unlike updatedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RoleRetrieveResponse.Builder toBuilder()
-
validate
final RoleRetrieveResponse 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 RoleRetrieveResponse.Builder builder()
Returns a mutable builder for constructing an instance of RoleRetrieveResponse.
The following fields are required:
.id() .assignmentSources() .createdAt() .createdBy() .createdByUserObj() .description() .metadata() .name() .permissions() .predefinedRole() .resourceType() .updatedAt()
-
-
-
-