Interface RetrieveAndGenerateConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RetrieveAndGenerateConfiguration.Builder,RetrieveAndGenerateConfiguration>,SdkBuilder<RetrieveAndGenerateConfiguration.Builder,RetrieveAndGenerateConfiguration>,SdkPojo
- Enclosing class:
- RetrieveAndGenerateConfiguration
public static interface RetrieveAndGenerateConfiguration.Builder extends SdkPojo, CopyableBuilder<RetrieveAndGenerateConfiguration.Builder,RetrieveAndGenerateConfiguration>
-
-
Method Summary
-
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 Detail
-
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.Builderavoiding the need to create one manually viaExternalSourcesRetrieveAndGenerateConfiguration.builder().When the
Consumercompletes,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:
externalSourcesConfiguration(ExternalSourcesRetrieveAndGenerateConfiguration)
-
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.Builderavoiding the need to create one manually viaKnowledgeBaseRetrieveAndGenerateConfiguration.builder().When the
Consumercompletes,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:
knowledgeBaseConfiguration(KnowledgeBaseRetrieveAndGenerateConfiguration)
-
type
RetrieveAndGenerateConfiguration.Builder type(String 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:
RetrieveAndGenerateType,RetrieveAndGenerateType
-
type
RetrieveAndGenerateConfiguration.Builder type(RetrieveAndGenerateType 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:
RetrieveAndGenerateType,RetrieveAndGenerateType
-
-