Interface ListModelsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListModelsResponse.Builder,
,ListModelsResponse> SageMakerResponse.Builder
,SdkBuilder<ListModelsResponse.Builder,
,ListModelsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListModelsResponse
public static interface ListModelsResponse.Builder
extends SageMakerResponse.Builder, SdkPojo, CopyableBuilder<ListModelsResponse.Builder,ListModelsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionmodels
(Collection<ModelSummary> models) An array ofModelSummary
objects, each of which lists a model.models
(Consumer<ModelSummary.Builder>... models) An array ofModelSummary
objects, each of which lists a model.models
(ModelSummary... models) An array ofModelSummary
objects, each of which lists a model.If the response is truncated, SageMaker returns this token.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
models
An array of
ModelSummary
objects, each of which lists a model.- Parameters:
models
- An array ofModelSummary
objects, each of which lists a model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
models
An array of
ModelSummary
objects, each of which lists a model.- Parameters:
models
- An array ofModelSummary
objects, each of which lists a model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
models
An array of
This is a convenience method that creates an instance of theModelSummary
objects, each of which lists a model.ModelSummary.Builder
avoiding the need to create one manually viaModelSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomodels(List<ModelSummary>)
.- Parameters:
models
- a consumer that will call methods onModelSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If the response is truncated, SageMaker returns this token. To retrieve the next set of models, use it in the subsequent request.
- Parameters:
nextToken
- If the response is truncated, SageMaker returns this token. To retrieve the next set of models, use it in the subsequent request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-