Package com.braintrustdata.api.models
Class PromptListPage
-
- All Implemented Interfaces:
public final class PromptListPage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPromptListPage.BuilderA builder for PromptListPage.
public final classPromptListPage.AutoPager
-
Method Summary
Modifier and Type Method Description final List<Prompt>objects()Delegates to PromptListPageResponse, but gracefully handles missing data. final BooleanhasNextPage()final Optional<PromptListParams>getNextPageParams()final Optional<PromptListPage>getNextPage()final PromptListPage.AutoPagerautoPager()final PromptListParamsparams()The parameters that were used to request this page. final PromptListPageResponseresponse()The response that this page was parsed from. final PromptListPage.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static PromptListPage.Builderbuilder()Returns a mutable builder for constructing an instance of PromptListPage. -
-
Method Detail
-
objects
final List<Prompt> objects()
Delegates to PromptListPageResponse, but gracefully handles missing data.
-
hasNextPage
final Boolean hasNextPage()
-
getNextPageParams
final Optional<PromptListParams> getNextPageParams()
-
getNextPage
final Optional<PromptListPage> getNextPage()
-
autoPager
final PromptListPage.AutoPager autoPager()
-
params
final PromptListParams params()
The parameters that were used to request this page.
-
response
final PromptListPageResponse response()
The response that this page was parsed from.
-
toBuilder
final PromptListPage.Builder toBuilder()
-
builder
final static PromptListPage.Builder builder()
Returns a mutable builder for constructing an instance of PromptListPage.
The following fields are required:
.service() .params() .response()
-
-
-
-