Class DreamListPageResponse.Builder
-
- All Implemented Interfaces:
public final class DreamListPageResponse.BuilderA builder for DreamListPageResponse.
-
-
Method Summary
-
-
Method Detail
-
data
final DreamListPageResponse.Builder data(List<BetaDream> data)
The dreams on this page, newest first.
-
data
final DreamListPageResponse.Builder data(JsonField<List<BetaDream>> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed
List<BetaDream>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
nextPage
final DreamListPageResponse.Builder nextPage(String nextPage)
The cursor for the next page, or
nullif this is the last page.Pass it as
pageto get the next page.
-
nextPage
final DreamListPageResponse.Builder nextPage(Optional<String> nextPage)
Alias for calling Builder.nextPage with
nextPage.orElse(null).
-
nextPage
final DreamListPageResponse.Builder nextPage(JsonField<String> nextPage)
Sets Builder.nextPage to an arbitrary JSON value.
You should usually call Builder.nextPage with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final DreamListPageResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addData
final DreamListPageResponse.Builder addData(BetaDream data)
Adds a single BetaDream to Builder.data.
-
putAdditionalProperty
final DreamListPageResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final DreamListPageResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final DreamListPageResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final DreamListPageResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final DreamListPageResponse build()
Returns an immutable instance of DreamListPageResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.data() .nextPage()
-
-
-
-