Package com.braintrustdata.api.models
Class PromptListPageAsync
-
- All Implemented Interfaces:
public final class PromptListPageAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPromptListPageAsync.BuilderA builder for PromptListPageAsync.
public final classPromptListPageAsync.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 CompletableFuture<Optional<PromptListPageAsync>>getNextPage()final PromptListPageAsync.AutoPagerautoPager()final PromptListParamsparams()The parameters that were used to request this page. final PromptListPageResponseresponse()The response that this page was parsed from. final PromptListPageAsync.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static PromptListPageAsync.Builderbuilder()Returns a mutable builder for constructing an instance of PromptListPageAsync. -
-
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 CompletableFuture<Optional<PromptListPageAsync>> getNextPage()
-
autoPager
final PromptListPageAsync.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 PromptListPageAsync.Builder toBuilder()
-
builder
final static PromptListPageAsync.Builder builder()
Returns a mutable builder for constructing an instance of PromptListPageAsync.
The following fields are required:
.service() .params() .response()
-
-
-
-