public class UploadMetadata
extends java.lang.Object
implements java.io.Serializable
Fields to be used while uploading the attachment.
| Constructor and Description |
|---|
UploadMetadata() |
| Modifier and Type | Method and Description |
|---|---|
UploadMetadata |
addHeadersToIncludeEntry(java.lang.String key,
java.lang.String value)
The headers to be provided while uploading the file to the URL.
|
UploadMetadata |
clearHeadersToIncludeEntries()
Removes all the entries added into HeadersToInclude.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.String> |
getHeadersToInclude()
The headers to be provided while uploading the file to the URL.
|
java.lang.String |
getUrl()
This is the pre-signed URL that can be used for uploading the file to
Amazon S3 when used in response to StartAttachmentUpload.
|
java.lang.String |
getUrlExpiry()
The expiration time of the URL in ISO timestamp.
|
int |
hashCode() |
void |
setHeadersToInclude(java.util.Map<java.lang.String,java.lang.String> headersToInclude)
The headers to be provided while uploading the file to the URL.
|
void |
setUrl(java.lang.String url)
This is the pre-signed URL that can be used for uploading the file to
Amazon S3 when used in response to StartAttachmentUpload.
|
void |
setUrlExpiry(java.lang.String urlExpiry)
The expiration time of the URL in ISO timestamp.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UploadMetadata |
withHeadersToInclude(java.util.Map<java.lang.String,java.lang.String> headersToInclude)
The headers to be provided while uploading the file to the URL.
|
UploadMetadata |
withUrl(java.lang.String url)
This is the pre-signed URL that can be used for uploading the file to
Amazon S3 when used in response to StartAttachmentUpload.
|
UploadMetadata |
withUrlExpiry(java.lang.String urlExpiry)
The expiration time of the URL in ISO timestamp.
|
public java.lang.String getUrl()
This is the pre-signed URL that can be used for uploading the file to Amazon S3 when used in response to StartAttachmentUpload.
Constraints:
Length: 1 - 2000
This is the pre-signed URL that can be used for uploading the file to Amazon S3 when used in response to StartAttachmentUpload.
public void setUrl(java.lang.String url)
This is the pre-signed URL that can be used for uploading the file to Amazon S3 when used in response to StartAttachmentUpload.
Constraints:
Length: 1 - 2000
url - This is the pre-signed URL that can be used for uploading the file to Amazon S3 when used in response to StartAttachmentUpload.
public UploadMetadata withUrl(java.lang.String url)
This is the pre-signed URL that can be used for uploading the file to Amazon S3 when used in response to StartAttachmentUpload.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2000
url - This is the pre-signed URL that can be used for uploading the file to Amazon S3 when used in response to StartAttachmentUpload.
public java.lang.String getUrlExpiry()
The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
public void setUrlExpiry(java.lang.String urlExpiry)
The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
urlExpiry - The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
public UploadMetadata withUrlExpiry(java.lang.String urlExpiry)
The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
Returns a reference to this object so that method calls can be chained together.
urlExpiry - The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
public java.util.Map<java.lang.String,java.lang.String> getHeadersToInclude()
The headers to be provided while uploading the file to the URL.
The headers to be provided while uploading the file to the URL.
public void setHeadersToInclude(java.util.Map<java.lang.String,java.lang.String> headersToInclude)
The headers to be provided while uploading the file to the URL.
headersToInclude - The headers to be provided while uploading the file to the URL.
public UploadMetadata withHeadersToInclude(java.util.Map<java.lang.String,java.lang.String> headersToInclude)
The headers to be provided while uploading the file to the URL.
Returns a reference to this object so that method calls can be chained together.
headersToInclude - The headers to be provided while uploading the file to the URL.
public UploadMetadata addHeadersToIncludeEntry(java.lang.String key, java.lang.String value)
The headers to be provided while uploading the file to the URL.
The method adds a new key-value pair into HeadersToInclude parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into HeadersToInclude.value - The corresponding value of the entry to be added into
HeadersToInclude.public UploadMetadata clearHeadersToIncludeEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object