Class Attachment


  • public class Attachment
    extends java.lang.Object
    Represents a file that was uploaded to a destination that was created by the Uploads API [`createUploadDestinationForResource`](https://developer-docs.amazon.com/sp-api/docs/uploads-api-reference#post-uploads2020-11-01uploaddestinationsresource) operation.
    • Constructor Detail

      • Attachment

        public Attachment()
    • Method Detail

      • uploadDestinationId

        public Attachment uploadDestinationId​(java.lang.String uploadDestinationId)
      • getUploadDestinationId

        public java.lang.String getUploadDestinationId()
        The identifier for the upload destination. To retrieve this value, call the Uploads API [`createUploadDestinationForResource`](https://developer-docs.amazon.com/sp-api/docs/uploads-api-reference#post-uploads2020-11-01uploaddestinationsresource) operation.
        Returns:
        uploadDestinationId
      • setUploadDestinationId

        public void setUploadDestinationId​(java.lang.String uploadDestinationId)
      • fileName

        public Attachment fileName​(java.lang.String fileName)
      • getFileName

        public java.lang.String getFileName()
        The name of the file, including the extension. This is the file name that will appear in the message. This does not need to match the file name of the file that you uploaded.
        Returns:
        fileName
      • setFileName

        public void setFileName​(java.lang.String fileName)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object