Class RoleListPageResponse
-
- All Implemented Interfaces:
public final class RoleListPageResponsePaginated list of roles available on an organization or project.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRoleListPageResponse.BuilderA builder for RoleListPageResponse.
-
Method Summary
Modifier and Type Method Description final List<Role>data()Roles returned in the current page. final BooleanhasMore()Whether more roles are available when paginating. final Optional<String>next()Cursor to fetch the next page of results, or nullwhen there are no additional roles.final JsonValue_object_()Always list.final JsonField<List<Role>>_data()Returns the raw JSON value of data. final JsonField<Boolean>_hasMore()Returns the raw JSON value of hasMore. final JsonField<String>_next()Returns the raw JSON value of next. final Map<String, JsonValue>_additionalProperties()final RoleListPageResponse.BuildertoBuilder()final RoleListPageResponsevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RoleListPageResponse.Builderbuilder()Returns a mutable builder for constructing an instance of RoleListPageResponse. -
-
Method Detail
-
next
final Optional<String> next()
Cursor to fetch the next page of results, or
nullwhen there are no additional roles.
-
_object_
final JsonValue _object_()
Always
list.Expected to always return the following:
JsonValue.from("list")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_data
final JsonField<List<Role>> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_hasMore
final JsonField<Boolean> _hasMore()
Returns the raw JSON value of hasMore.
Unlike hasMore, this method doesn't throw if the JSON field has an unexpected type.
-
_next
final JsonField<String> _next()
Returns the raw JSON value of next.
Unlike next, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RoleListPageResponse.Builder toBuilder()
-
validate
final RoleListPageResponse 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 RoleListPageResponse.Builder builder()
Returns a mutable builder for constructing an instance of RoleListPageResponse.
The following fields are required:
.data() .hasMore() .next()
-
-
-
-