Class Attachment
- java.lang.Object
-
- software.amazon.spapi.models.messaging.v1.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 Summary
Constructors Constructor Description Attachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Attachment
fileName(java.lang.String fileName)
java.lang.String
getFileName()
The name of the file, including the extension.java.lang.String
getUploadDestinationId()
The identifier for the upload destination.int
hashCode()
void
setFileName(java.lang.String fileName)
void
setUploadDestinationId(java.lang.String uploadDestinationId)
java.lang.String
toString()
Attachment
uploadDestinationId(java.lang.String uploadDestinationId)
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-