Interface RetrieveAndGenerateConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RetrieveAndGenerateConfiguration.Builder,
,RetrieveAndGenerateConfiguration> SdkBuilder<RetrieveAndGenerateConfiguration.Builder,
,RetrieveAndGenerateConfiguration> SdkPojo
- Enclosing class:
RetrieveAndGenerateConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionexternalSourcesConfiguration
(Consumer<ExternalSourcesRetrieveAndGenerateConfiguration.Builder> externalSourcesConfiguration) The configuration used with the external source wrapper object in the retrieveAndGenerate function.externalSourcesConfiguration
(ExternalSourcesRetrieveAndGenerateConfiguration externalSourcesConfiguration) The configuration used with the external source wrapper object in the retrieveAndGenerate function.knowledgeBaseConfiguration
(Consumer<KnowledgeBaseRetrieveAndGenerateConfiguration.Builder> knowledgeBaseConfiguration) Contains details about the resource being queried.knowledgeBaseConfiguration
(KnowledgeBaseRetrieveAndGenerateConfiguration knowledgeBaseConfiguration) Contains details about the resource being queried.The type of resource that is queried by the request.type
(RetrieveAndGenerateType type) The type of resource that is queried by the request.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
-
Method Details
-
externalSourcesConfiguration
RetrieveAndGenerateConfiguration.Builder externalSourcesConfiguration(ExternalSourcesRetrieveAndGenerateConfiguration externalSourcesConfiguration) The configuration used with the external source wrapper object in the retrieveAndGenerate function.
- Parameters:
externalSourcesConfiguration
- The configuration used with the external source wrapper object in the retrieveAndGenerate function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
externalSourcesConfiguration
default RetrieveAndGenerateConfiguration.Builder externalSourcesConfiguration(Consumer<ExternalSourcesRetrieveAndGenerateConfiguration.Builder> externalSourcesConfiguration) The configuration used with the external source wrapper object in the retrieveAndGenerate function.
This is a convenience method that creates an instance of theExternalSourcesRetrieveAndGenerateConfiguration.Builder
avoiding the need to create one manually viaExternalSourcesRetrieveAndGenerateConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toexternalSourcesConfiguration(ExternalSourcesRetrieveAndGenerateConfiguration)
.- Parameters:
externalSourcesConfiguration
- a consumer that will call methods onExternalSourcesRetrieveAndGenerateConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
knowledgeBaseConfiguration
RetrieveAndGenerateConfiguration.Builder knowledgeBaseConfiguration(KnowledgeBaseRetrieveAndGenerateConfiguration knowledgeBaseConfiguration) Contains details about the resource being queried.
- Parameters:
knowledgeBaseConfiguration
- Contains details about the resource being queried.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseConfiguration
default RetrieveAndGenerateConfiguration.Builder knowledgeBaseConfiguration(Consumer<KnowledgeBaseRetrieveAndGenerateConfiguration.Builder> knowledgeBaseConfiguration) Contains details about the resource being queried.
This is a convenience method that creates an instance of theKnowledgeBaseRetrieveAndGenerateConfiguration.Builder
avoiding the need to create one manually viaKnowledgeBaseRetrieveAndGenerateConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toknowledgeBaseConfiguration(KnowledgeBaseRetrieveAndGenerateConfiguration)
.- Parameters:
knowledgeBaseConfiguration
- a consumer that will call methods onKnowledgeBaseRetrieveAndGenerateConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of resource that is queried by the request.
- Parameters:
type
- The type of resource that is queried by the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of resource that is queried by the request.
- Parameters:
type
- The type of resource that is queried by the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-