Class ImageSource

    • Method Detail

      • publicUrl

        public final String publicUrl()

        The public URL that points to the source image.

        Returns:
        The public URL that points to the source image.
      • s3Uri

        public final String s3Uri()

        The Amazon S3 URI that points to the source image.

        Returns:
        The Amazon S3 URI that points to the source image.
      • 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)
      • fromPublicUrl

        public static ImageSource fromPublicUrl​(String publicUrl)
        Create an instance of this class with publicUrl() initialized to the given value.

        The public URL that points to the source image.

        Parameters:
        publicUrl - The public URL that points to the source image.
      • fromS3Uri

        public static ImageSource fromS3Uri​(String s3Uri)
        Create an instance of this class with s3Uri() initialized to the given value.

        The Amazon S3 URI that points to the source image.

        Parameters:
        s3Uri - The Amazon S3 URI that points to the source image.