@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UploadMetadata extends Object implements Serializable, Cloneable, StructuredPojo
Fields to be used while uploading the attachment.
Constructor and Description |
---|
UploadMetadata() |
Modifier and Type | Method and Description |
---|---|
UploadMetadata |
addHeadersToIncludeEntry(String key,
String value)
Add a single HeadersToInclude entry
|
UploadMetadata |
clearHeadersToIncludeEntries()
Removes all the entries added into HeadersToInclude.
|
UploadMetadata |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getHeadersToInclude()
The headers to be provided while uploading the file to the URL.
|
String |
getUrl()
The pre-signed URL using which file would be downloaded from Amazon S3 by the API caller.
|
String |
getUrlExpiry()
The expiration time of the URL in ISO timestamp.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHeadersToInclude(Map<String,String> headersToInclude)
The headers to be provided while uploading the file to the URL.
|
void |
setUrl(String url)
The pre-signed URL using which file would be downloaded from Amazon S3 by the API caller.
|
void |
setUrlExpiry(String urlExpiry)
The expiration time of the URL in ISO timestamp.
|
String |
toString()
Returns a string representation of this object.
|
UploadMetadata |
withHeadersToInclude(Map<String,String> headersToInclude)
The headers to be provided while uploading the file to the URL.
|
UploadMetadata |
withUrl(String url)
The pre-signed URL using which file would be downloaded from Amazon S3 by the API caller.
|
UploadMetadata |
withUrlExpiry(String urlExpiry)
The expiration time of the URL in ISO timestamp.
|
public void setUrl(String url)
The pre-signed URL using which file would be downloaded from Amazon S3 by the API caller.
url
- The pre-signed URL using which file would be downloaded from Amazon S3 by the API caller.public String getUrl()
The pre-signed URL using which file would be downloaded from Amazon S3 by the API caller.
public UploadMetadata withUrl(String url)
The pre-signed URL using which file would be downloaded from Amazon S3 by the API caller.
url
- The pre-signed URL using which file would be downloaded from Amazon S3 by the API caller.public void setUrlExpiry(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 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.
public UploadMetadata withUrlExpiry(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 Map<String,String> getHeadersToInclude()
The headers to be provided while uploading the file to the URL.
public void setHeadersToInclude(Map<String,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(Map<String,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 addHeadersToIncludeEntry(String key, String value)
public UploadMetadata clearHeadersToIncludeEntries()
public String toString()
toString
in class Object
Object.toString()
public UploadMetadata clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.