Interface ExternalSourcesRetrieveAndGenerateConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ExternalSourcesRetrieveAndGenerateConfiguration.Builder,ExternalSourcesRetrieveAndGenerateConfiguration>,SdkBuilder<ExternalSourcesRetrieveAndGenerateConfiguration.Builder,ExternalSourcesRetrieveAndGenerateConfiguration>,SdkPojo
- Enclosing class:
- ExternalSourcesRetrieveAndGenerateConfiguration
@Mutable @NotThreadSafe public static interface ExternalSourcesRetrieveAndGenerateConfiguration.Builder extends SdkPojo, CopyableBuilder<ExternalSourcesRetrieveAndGenerateConfiguration.Builder,ExternalSourcesRetrieveAndGenerateConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ExternalSourcesRetrieveAndGenerateConfiguration.BuildergenerationConfiguration(Consumer<ExternalSourcesGenerationConfiguration.Builder> generationConfiguration)The prompt used with the external source wrapper object with theretrieveAndGeneratefunction.ExternalSourcesRetrieveAndGenerateConfiguration.BuildergenerationConfiguration(ExternalSourcesGenerationConfiguration generationConfiguration)The prompt used with the external source wrapper object with theretrieveAndGeneratefunction.ExternalSourcesRetrieveAndGenerateConfiguration.BuildermodelArn(String modelArn)The model Amazon Resource Name (ARN) for the external source wrapper object in theretrieveAndGeneratefunction.ExternalSourcesRetrieveAndGenerateConfiguration.Buildersources(Collection<ExternalSource> sources)The document for the external source wrapper object in theretrieveAndGeneratefunction.ExternalSourcesRetrieveAndGenerateConfiguration.Buildersources(Consumer<ExternalSource.Builder>... sources)The document for the external source wrapper object in theretrieveAndGeneratefunction.ExternalSourcesRetrieveAndGenerateConfiguration.Buildersources(ExternalSource... sources)The document for the external source wrapper object in theretrieveAndGeneratefunction.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
generationConfiguration
ExternalSourcesRetrieveAndGenerateConfiguration.Builder generationConfiguration(ExternalSourcesGenerationConfiguration generationConfiguration)
The prompt used with the external source wrapper object with the
retrieveAndGeneratefunction.- Parameters:
generationConfiguration- The prompt used with the external source wrapper object with theretrieveAndGeneratefunction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
generationConfiguration
default ExternalSourcesRetrieveAndGenerateConfiguration.Builder generationConfiguration(Consumer<ExternalSourcesGenerationConfiguration.Builder> generationConfiguration)
The prompt used with the external source wrapper object with the
This is a convenience method that creates an instance of theretrieveAndGeneratefunction.ExternalSourcesGenerationConfiguration.Builderavoiding the need to create one manually viaExternalSourcesGenerationConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togenerationConfiguration(ExternalSourcesGenerationConfiguration).- Parameters:
generationConfiguration- a consumer that will call methods onExternalSourcesGenerationConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
generationConfiguration(ExternalSourcesGenerationConfiguration)
-
modelArn
ExternalSourcesRetrieveAndGenerateConfiguration.Builder modelArn(String modelArn)
The model Amazon Resource Name (ARN) for the external source wrapper object in the
retrieveAndGeneratefunction.- Parameters:
modelArn- The model Amazon Resource Name (ARN) for the external source wrapper object in theretrieveAndGeneratefunction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sources
ExternalSourcesRetrieveAndGenerateConfiguration.Builder sources(Collection<ExternalSource> sources)
The document for the external source wrapper object in the
retrieveAndGeneratefunction.- Parameters:
sources- The document for the external source wrapper object in theretrieveAndGeneratefunction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sources
ExternalSourcesRetrieveAndGenerateConfiguration.Builder sources(ExternalSource... sources)
The document for the external source wrapper object in the
retrieveAndGeneratefunction.- Parameters:
sources- The document for the external source wrapper object in theretrieveAndGeneratefunction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sources
ExternalSourcesRetrieveAndGenerateConfiguration.Builder sources(Consumer<ExternalSource.Builder>... sources)
The document for the external source wrapper object in the
This is a convenience method that creates an instance of theretrieveAndGeneratefunction.ExternalSource.Builderavoiding the need to create one manually viaExternalSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#sources(List.) - Parameters:
sources- a consumer that will call methods onExternalSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#sources(java.util.Collection)
-
-