Interface ListDataSourcesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,BedrockAgentResponse.Builder
,Buildable
,CopyableBuilder<ListDataSourcesResponse.Builder,
,ListDataSourcesResponse> SdkBuilder<ListDataSourcesResponse.Builder,
,ListDataSourcesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListDataSourcesResponse
public static interface ListDataSourcesResponse.Builder
extends BedrockAgentResponse.Builder, SdkPojo, CopyableBuilder<ListDataSourcesResponse.Builder,ListDataSourcesResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondataSourceSummaries
(Collection<DataSourceSummary> dataSourceSummaries) A list of objects, each of which contains information about a data source.dataSourceSummaries
(Consumer<DataSourceSummary.Builder>... dataSourceSummaries) A list of objects, each of which contains information about a data source.dataSourceSummaries
(DataSourceSummary... dataSourceSummaries) A list of objects, each of which contains information about a data source.If the total number of results is greater than themaxResults
value provided in the request, use this token when making another request in thenextToken
field to return the next batch of results.Methods inherited from interface software.amazon.awssdk.services.bedrockagent.model.BedrockAgentResponse.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, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
dataSourceSummaries
ListDataSourcesResponse.Builder dataSourceSummaries(Collection<DataSourceSummary> dataSourceSummaries) A list of objects, each of which contains information about a data source.
- Parameters:
dataSourceSummaries
- A list of objects, each of which contains information about a data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSourceSummaries
A list of objects, each of which contains information about a data source.
- Parameters:
dataSourceSummaries
- A list of objects, each of which contains information about a data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSourceSummaries
ListDataSourcesResponse.Builder dataSourceSummaries(Consumer<DataSourceSummary.Builder>... dataSourceSummaries) A list of objects, each of which contains information about a data source.
This is a convenience method that creates an instance of theDataSourceSummary.Builder
avoiding the need to create one manually viaDataSourceSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todataSourceSummaries(List<DataSourceSummary>)
.- Parameters:
dataSourceSummaries
- a consumer that will call methods onDataSourceSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If the total number of results is greater than the
maxResults
value provided in the request, use this token when making another request in thenextToken
field to return the next batch of results.- Parameters:
nextToken
- If the total number of results is greater than themaxResults
value provided in the request, use this token when making another request in thenextToken
field to return the next batch of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-