Class ImageSource

    • Method Detail

      • bytes

        public final SdkBytes 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:
        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.
      • s3Location

        public final S3Location s3Location()

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

        Returns:
        The path to the Amazon S3 bucket where the image is stored.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromBytes

        public static ImageSource fromBytes​(SdkBytes bytes)
        Create an instance of this class with bytes() initialized to the given value.

        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.
      • fromS3Location

        public static ImageSource fromS3Location​(S3Location s3Location)
        Create an instance of this class with s3Location() initialized to the given value.

        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.
      • fromS3Location

        public static ImageSource fromS3Location​(Consumer<S3Location.Builder> s3Location)
        Create an instance of this class with s3Location() initialized to the given value.

        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.