Interface ImageSource.Builder

  • Method Details

    • bytes

      The raw image bytes for the image. If you use an Amazon Web Services SDK, you don't need to encode the image bytes in base64.

      Parameters:
      bytes - The raw image bytes for the image. If you use an Amazon Web Services SDK, you don't need to encode the image bytes in base64.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • s3Location

      ImageSource.Builder s3Location(S3Location s3Location)

      The path to the Amazon S3 bucket where the image is stored.

      Parameters:
      s3Location - The path to the Amazon S3 bucket where the image is stored.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • s3Location

      default ImageSource.Builder s3Location(Consumer<S3Location.Builder> s3Location)

      The path to the Amazon S3 bucket where the image is stored.

      This is a convenience method that creates an instance of the S3Location.Builder avoiding the need to create one manually via S3Location.builder().

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

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