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