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()
The pre-signed URL using which file would be downloaded from Amazon S3 by
the API caller.
|
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)
The pre-signed URL using which file would be downloaded from Amazon S3 by
the API caller.
|
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)
The pre-signed URL using which file would be downloaded from Amazon S3 by
the API caller.
|
UploadMetadata |
withUrlExpiry(java.lang.String urlExpiry)
The expiration time of the URL in ISO timestamp.
|
public java.lang.String getUrl()
The pre-signed URL using which file would be downloaded from Amazon S3 by the API caller.
Constraints:
Length: 1 - 2000
The pre-signed URL using which file would be downloaded from Amazon S3 by the API caller.
public void setUrl(java.lang.String url)
The pre-signed URL using which file would be downloaded from Amazon S3 by the API caller.
Constraints:
Length: 1 - 2000
url
- The pre-signed URL using which file would be downloaded from Amazon S3 by the API caller.
public UploadMetadata withUrl(java.lang.String url)
The pre-signed URL using which file would be downloaded from Amazon S3 by the API caller.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2000
url
- The pre-signed URL using which file would be downloaded from Amazon S3 by the API caller.
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.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.