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.Builder
location
(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
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 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.Builder
avoiding the need to create one manually viaLocation.builder()
.When the
Consumer
completes,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:
-