Interface Source.Builder

    • 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 the Location.Builder avoiding the need to create one manually via Location.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to location(Location).

        Parameters:
        location - a consumer that will call methods on Location.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        location(Location)