public class StartAttachmentUploadRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Provides a pre-signed Amazon S3 URL in response for uploading the file directly to S3.
ConnectionToken is used for invoking this API instead of
ParticipantToken.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
| Constructor and Description |
|---|
StartAttachmentUploadRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttachmentName()
A case-sensitive name of the attachment being uploaded.
|
java.lang.Long |
getAttachmentSizeInBytes()
The size of the attachment in bytes.
|
java.lang.String |
getClientToken()
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
|
java.lang.String |
getConnectionToken()
The authentication token associated with the participant's connection.
|
java.lang.String |
getContentType()
Describes the MIME file type of the attachment.
|
int |
hashCode() |
void |
setAttachmentName(java.lang.String attachmentName)
A case-sensitive name of the attachment being uploaded.
|
void |
setAttachmentSizeInBytes(java.lang.Long attachmentSizeInBytes)
The size of the attachment in bytes.
|
void |
setClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
|
void |
setConnectionToken(java.lang.String connectionToken)
The authentication token associated with the participant's connection.
|
void |
setContentType(java.lang.String contentType)
Describes the MIME file type of the attachment.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StartAttachmentUploadRequest |
withAttachmentName(java.lang.String attachmentName)
A case-sensitive name of the attachment being uploaded.
|
StartAttachmentUploadRequest |
withAttachmentSizeInBytes(java.lang.Long attachmentSizeInBytes)
The size of the attachment in bytes.
|
StartAttachmentUploadRequest |
withClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
|
StartAttachmentUploadRequest |
withConnectionToken(java.lang.String connectionToken)
The authentication token associated with the participant's connection.
|
StartAttachmentUploadRequest |
withContentType(java.lang.String contentType)
Describes the MIME file type of the attachment.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getContentType()
Describes the MIME file type of the attachment. For a list of supported file types, see Feature specifications in the Amazon Connect Administrator Guide.
Constraints:
Length: 1 - 255
Describes the MIME file type of the attachment. For a list of supported file types, see Feature specifications in the Amazon Connect Administrator Guide.
public void setContentType(java.lang.String contentType)
Describes the MIME file type of the attachment. For a list of supported file types, see Feature specifications in the Amazon Connect Administrator Guide.
Constraints:
Length: 1 - 255
contentType - Describes the MIME file type of the attachment. For a list of supported file types, see Feature specifications in the Amazon Connect Administrator Guide.
public StartAttachmentUploadRequest withContentType(java.lang.String contentType)
Describes the MIME file type of the attachment. For a list of supported file types, see Feature specifications in the Amazon Connect Administrator Guide.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
contentType - Describes the MIME file type of the attachment. For a list of supported file types, see Feature specifications in the Amazon Connect Administrator Guide.
public java.lang.Long getAttachmentSizeInBytes()
The size of the attachment in bytes.
Constraints:
Range: 1 -
The size of the attachment in bytes.
public void setAttachmentSizeInBytes(java.lang.Long attachmentSizeInBytes)
The size of the attachment in bytes.
Constraints:
Range: 1 -
attachmentSizeInBytes - The size of the attachment in bytes.
public StartAttachmentUploadRequest withAttachmentSizeInBytes(java.lang.Long attachmentSizeInBytes)
The size of the attachment in bytes.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 -
attachmentSizeInBytes - The size of the attachment in bytes.
public java.lang.String getAttachmentName()
A case-sensitive name of the attachment being uploaded.
Constraints:
Length: 1 - 256
A case-sensitive name of the attachment being uploaded.
public void setAttachmentName(java.lang.String attachmentName)
A case-sensitive name of the attachment being uploaded.
Constraints:
Length: 1 - 256
attachmentName - A case-sensitive name of the attachment being uploaded.
public StartAttachmentUploadRequest withAttachmentName(java.lang.String attachmentName)
A case-sensitive name of the attachment being uploaded.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
attachmentName - A case-sensitive name of the attachment being uploaded.
public java.lang.String getClientToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
Constraints:
Length: 1 - 500
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
public void setClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
Constraints:
Length: 1 - 500
clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
public StartAttachmentUploadRequest withClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 500
clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
public java.lang.String getConnectionToken()
The authentication token associated with the participant's connection.
Constraints:
Length: 1 - 1000
The authentication token associated with the participant's connection.
public void setConnectionToken(java.lang.String connectionToken)
The authentication token associated with the participant's connection.
Constraints:
Length: 1 - 1000
connectionToken - The authentication token associated with the participant's connection.
public StartAttachmentUploadRequest withConnectionToken(java.lang.String connectionToken)
The authentication token associated with the participant's connection.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1000
connectionToken - The authentication token associated with the participant's connection.
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