Class MessageTemplateAttachment

    • Method Detail

      • attachmentId

        public final String attachmentId()

        The identifier of the attachment file.

        Returns:
        The identifier of the attachment file.
      • contentDispositionAsString

        public final String contentDispositionAsString()

        The presentation information for the attachment file.

        If the service returns an enum value that is not available in the current SDK version, contentDisposition will return ContentDisposition.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from contentDispositionAsString().

        Returns:
        The presentation information for the attachment file.
        See Also:
        ContentDisposition
      • name

        public final String name()

        The name of the attachment file being uploaded. The name should include the file extension.

        Returns:
        The name of the attachment file being uploaded. The name should include the file extension.
      • uploadedTime

        public final Instant uploadedTime()

        The timestamp when the attachment file was uploaded.

        Returns:
        The timestamp when the attachment file was uploaded.
      • url

        public final String url()

        A pre-signed Amazon S3 URL that can be used to download the attachment file.

        Returns:
        A pre-signed Amazon S3 URL that can be used to download the attachment file.
      • urlExpiry

        public final Instant urlExpiry()

        The expiration time of the pre-signed Amazon S3 URL.

        Returns:
        The expiration time of the pre-signed Amazon S3 URL.
      • 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)