Interface ListCustomModelsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,BedrockResponse.Builder,Buildable,CopyableBuilder<ListCustomModelsResponse.Builder,ListCustomModelsResponse>,SdkBuilder<ListCustomModelsResponse.Builder,ListCustomModelsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListCustomModelsResponse
@Mutable @NotThreadSafe public static interface ListCustomModelsResponse.Builder extends BedrockResponse.Builder, SdkPojo, CopyableBuilder<ListCustomModelsResponse.Builder,ListCustomModelsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListCustomModelsResponse.BuildermodelSummaries(Collection<CustomModelSummary> modelSummaries)Model summaries.ListCustomModelsResponse.BuildermodelSummaries(Consumer<CustomModelSummary.Builder>... modelSummaries)Model summaries.ListCustomModelsResponse.BuildermodelSummaries(CustomModelSummary... modelSummaries)Model summaries.ListCustomModelsResponse.BuildernextToken(String nextToken)If the total number of results is greater than themaxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.-
Methods inherited from interface software.amazon.awssdk.services.bedrock.model.BedrockResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
nextToken
ListCustomModelsResponse.Builder nextToken(String nextToken)
If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.- Parameters:
nextToken- If the total number of results is greater than themaxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelSummaries
ListCustomModelsResponse.Builder modelSummaries(Collection<CustomModelSummary> modelSummaries)
Model summaries.
- Parameters:
modelSummaries- Model summaries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelSummaries
ListCustomModelsResponse.Builder modelSummaries(CustomModelSummary... modelSummaries)
Model summaries.
- Parameters:
modelSummaries- Model summaries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelSummaries
ListCustomModelsResponse.Builder modelSummaries(Consumer<CustomModelSummary.Builder>... modelSummaries)
Model summaries.
This is a convenience method that creates an instance of theCustomModelSummary.Builderavoiding the need to create one manually viaCustomModelSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#modelSummaries(List.) - Parameters:
modelSummaries- a consumer that will call methods onCustomModelSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#modelSummaries(java.util.Collection)
-
-