Interface Source.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Source.Builder,Source>,SdkBuilder<Source.Builder,Source>,SdkPojo
- Enclosing class:
- Source
public static interface Source.Builder extends SdkPojo, CopyableBuilder<Source.Builder,Source>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Source.Builderarn(String arn)Contains the ARN of the dataset.default Source.Builderlocation(Consumer<Location.Builder> location)Contains the location information where the cited text is originally stored.Source.Builderlocation(Location location)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 Detail
-
arn
Source.Builder arn(String 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
Source.Builder location(Location 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
default Source.Builder location(Consumer<Location.Builder> 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:
location(Location)
-
-