Package com.openai.models.models
Class ModelListPageAsync
-
- All Implemented Interfaces:
public final class ModelListPageAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ModelListPageAsync.Builder
A builder for ModelListPageAsync.
public final class
ModelListPageAsync.AutoPager
-
Method Summary
Modifier and Type Method Description final List<Model>
data()
Delegates to ModelListPageResponse, but gracefully handles missing data. final JsonValue
object_()
final Boolean
hasNextPage()
final Optional<ModelListParams>
getNextPageParams()
final CompletableFuture<Optional<ModelListPageAsync>>
getNextPage()
final ModelListPageAsync.AutoPager
autoPager()
final ModelListParams
params()
The parameters that were used to request this page. final ModelListPageResponse
response()
The response that this page was parsed from. final ModelListPageAsync.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ModelListPageAsync.Builder
builder()
Returns a mutable builder for constructing an instance of ModelListPageAsync. -
-
Method Detail
-
data
final List<Model> data()
Delegates to ModelListPageResponse, but gracefully handles missing data.
-
hasNextPage
final Boolean hasNextPage()
-
getNextPageParams
final Optional<ModelListParams> getNextPageParams()
-
getNextPage
final CompletableFuture<Optional<ModelListPageAsync>> getNextPage()
-
autoPager
final ModelListPageAsync.AutoPager autoPager()
-
params
final ModelListParams params()
The parameters that were used to request this page.
-
response
final ModelListPageResponse response()
The response that this page was parsed from.
-
toBuilder
final ModelListPageAsync.Builder toBuilder()
-
builder
final static ModelListPageAsync.Builder builder()
Returns a mutable builder for constructing an instance of ModelListPageAsync.
The following fields are required:
.service() .params() .response()
-
-
-
-