Package com.openai.models.models
Class ModelListPage
-
- All Implemented Interfaces:
public final class ModelListPage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ModelListPage.Builder
A builder for ModelListPage.
public final class
ModelListPage.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 Optional<ModelListPage>
getNextPage()
final ModelListPage.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 ModelListPage.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ModelListPage.Builder
builder()
Returns a mutable builder for constructing an instance of ModelListPage. -
-
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 Optional<ModelListPage> getNextPage()
-
autoPager
final ModelListPage.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 ModelListPage.Builder toBuilder()
-
builder
final static ModelListPage.Builder builder()
Returns a mutable builder for constructing an instance of ModelListPage.
The following fields are required:
.service() .params() .response()
-
-
-
-