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 ofModelSummaryobjects, each of which lists a model.models(Consumer<ModelSummary.Builder>... models) An array ofModelSummaryobjects, each of which lists a model.models(ModelSummary... models) An array ofModelSummaryobjects, 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
copyMethods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
models
An array of
ModelSummaryobjects, each of which lists a model.- Parameters:
models- An array ofModelSummaryobjects, 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
ModelSummaryobjects, each of which lists a model.- Parameters:
models- An array ofModelSummaryobjects, 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 theModelSummaryobjects, each of which lists a model.ModelSummary.Builderavoiding the need to create one manually viaModelSummary.builder().When the
Consumercompletes,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.
-