@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()
This is the pre-signed URL that can be used for uploading the file to Amazon S3 when used in response to StartAttachmentUpload.
|
String |
getUrlExpiry()
The expiration time of the URL in ISO timestamp.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setHeadersToInclude(Map<String,String> headersToInclude)
The headers to be provided while uploading the file to the URL.
|
void |
setUrl(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(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)
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(String urlExpiry)
The expiration time of the URL in ISO timestamp.
|
public void setUrl(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.
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 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.
public UploadMetadata withUrl(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.
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 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)
marshall
in interface StructuredPojo
Copyright © 2024. All rights reserved.