Interface ListContextsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListContextsResponse.Builder,ListContextsResponse>
,SageMakerResponse.Builder
,SdkBuilder<ListContextsResponse.Builder,ListContextsResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- ListContextsResponse
public static interface ListContextsResponse.Builder extends SageMakerResponse.Builder, SdkPojo, CopyableBuilder<ListContextsResponse.Builder,ListContextsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListContextsResponse.Builder
contextSummaries(Collection<ContextSummary> contextSummaries)
A list of contexts and their properties.ListContextsResponse.Builder
contextSummaries(Consumer<ContextSummary.Builder>... contextSummaries)
A list of contexts and their properties.ListContextsResponse.Builder
contextSummaries(ContextSummary... contextSummaries)
A list of contexts and their properties.ListContextsResponse.Builder
nextToken(String nextToken)
A token for getting the next set of contexts, if there are any.-
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 Detail
-
contextSummaries
ListContextsResponse.Builder contextSummaries(Collection<ContextSummary> contextSummaries)
A list of contexts and their properties.
- Parameters:
contextSummaries
- A list of contexts and their properties.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contextSummaries
ListContextsResponse.Builder contextSummaries(ContextSummary... contextSummaries)
A list of contexts and their properties.
- Parameters:
contextSummaries
- A list of contexts and their properties.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contextSummaries
ListContextsResponse.Builder contextSummaries(Consumer<ContextSummary.Builder>... contextSummaries)
A list of contexts and their properties.
This is a convenience method that creates an instance of theContextSummary.Builder
avoiding the need to create one manually viaContextSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#contextSummaries(List
.) - Parameters:
contextSummaries
- a consumer that will call methods onContextSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#contextSummaries(java.util.Collection
)
-
nextToken
ListContextsResponse.Builder nextToken(String nextToken)
A token for getting the next set of contexts, if there are any.
- Parameters:
nextToken
- A token for getting the next set of contexts, if there are any.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-