Interface Source.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Source.Builder,,Source> SdkBuilder<Source.Builder,,Source> SdkPojo
- Enclosing class:
Source
@Mutable
@NotThreadSafe
public static interface Source.Builder
extends SdkPojo, CopyableBuilder<Source.Builder,Source>
-
Method Summary
Modifier and TypeMethodDescriptionContains the ARN of the dataset.default Source.Builderlocation(Consumer<Location.Builder> location) Contains the location information where the cited text is originally stored.Contains the location information where the cited text is originally stored.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
arn
Contains the ARN of the dataset. If the source is Kendra, it's the ARN of the Kendra index.
- Parameters:
arn- Contains the ARN of the dataset. If the source is Kendra, it's the ARN of the Kendra index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
Contains the location information where the cited text is originally stored. For example, if the data source is Kendra, and the text synchronized is from an S3 bucket, then the location refers to an S3 object.
- Parameters:
location- Contains the location information where the cited text is originally stored. For example, if the data source is Kendra, and the text synchronized is from an S3 bucket, then the location refers to an S3 object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
Contains the location information where the cited text is originally stored. For example, if the data source is Kendra, and the text synchronized is from an S3 bucket, then the location refers to an S3 object.
This is a convenience method that creates an instance of theLocation.Builderavoiding the need to create one manually viaLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolocation(Location).- Parameters:
location- a consumer that will call methods onLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-