Class BatchListPageResponse.Builder
-
- All Implemented Interfaces:
public final class BatchListPageResponse.BuilderA builder for BatchListPageResponse.
-
-
Method Summary
-
-
Method Detail
-
data
final BatchListPageResponse.Builder data(List<MessageBatch> data)
-
data
final BatchListPageResponse.Builder data(JsonField<List<MessageBatch>> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed
List<MessageBatch>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addData
final BatchListPageResponse.Builder addData(MessageBatch data)
Adds a single MessageBatch to Builder.data.
-
firstId
final BatchListPageResponse.Builder firstId(String firstId)
First ID in the
datalist. Can be used as thebefore_idfor the previous page.
-
firstId
final BatchListPageResponse.Builder firstId(Optional<String> firstId)
Alias for calling Builder.firstId with
firstId.orElse(null).
-
firstId
final BatchListPageResponse.Builder firstId(JsonField<String> firstId)
Sets Builder.firstId to an arbitrary JSON value.
You should usually call Builder.firstId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
hasMore
final BatchListPageResponse.Builder hasMore(Boolean hasMore)
Indicates if there are more results in the requested page direction.
-
hasMore
final BatchListPageResponse.Builder hasMore(JsonField<Boolean> hasMore)
Sets Builder.hasMore to an arbitrary JSON value.
You should usually call Builder.hasMore with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
lastId
final BatchListPageResponse.Builder lastId(String lastId)
Last ID in the
datalist. Can be used as theafter_idfor the next page.
-
lastId
final BatchListPageResponse.Builder lastId(Optional<String> lastId)
Alias for calling Builder.lastId with
lastId.orElse(null).
-
lastId
final BatchListPageResponse.Builder lastId(JsonField<String> lastId)
Sets Builder.lastId to an arbitrary JSON value.
You should usually call Builder.lastId 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 BatchListPageResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BatchListPageResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BatchListPageResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BatchListPageResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BatchListPageResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BatchListPageResponse build()
Returns an immutable instance of BatchListPageResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.data() .firstId() .hasMore() .lastId()
-
-
-
-