Package com.anthropic.models.beta.dreams
Class DreamListPageResponse
-
- All Implemented Interfaces:
public final class DreamListPageResponseA page of dreams, newest first.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classDreamListPageResponse.BuilderA builder for DreamListPageResponse.
-
Method Summary
Modifier and Type Method Description final List<BetaDream>data()The dreams on this page, newest first. final Optional<String>nextPage()The cursor for the next page, or nullif this is the last page.final JsonField<List<BetaDream>>_data()Returns the raw JSON value of data. final JsonField<String>_nextPage()Returns the raw JSON value of nextPage. final Map<String, JsonValue>_additionalProperties()final DreamListPageResponse.BuildertoBuilder()final DreamListPageResponsevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static DreamListPageResponse.Builderbuilder()Returns a mutable builder for constructing an instance of DreamListPageResponse. -
-
Method Detail
-
nextPage
final Optional<String> nextPage()
The cursor for the next page, or
nullif this is the last page.Pass it as
pageto get the next page.
-
_data
final JsonField<List<BetaDream>> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_nextPage
final JsonField<String> _nextPage()
Returns the raw JSON value of nextPage.
Unlike nextPage, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final DreamListPageResponse.Builder toBuilder()
-
validate
final DreamListPageResponse 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 DreamListPageResponse.Builder builder()
Returns a mutable builder for constructing an instance of DreamListPageResponse.
The following fields are required:
.data() .nextPage()
-
-
-
-