Class ServiceUploadDocument
- java.lang.Object
-
- software.amazon.spapi.models.services.v1.ServiceUploadDocument
-
public class ServiceUploadDocument extends java.lang.Object
Input for to be uploaded document.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServiceUploadDocument.ContentTypeEnum
The content type of the to-be-uploaded file
-
Constructor Summary
Constructors Constructor Description ServiceUploadDocument()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceUploadDocument
contentLength(java.math.BigDecimal contentLength)
ServiceUploadDocument
contentMD5(java.lang.String contentMD5)
ServiceUploadDocument
contentType(ServiceUploadDocument.ContentTypeEnum contentType)
boolean
equals(java.lang.Object o)
java.math.BigDecimal
getContentLength()
The content length of the to-be-uploaded file minimum: 1 maximum: 5242880java.lang.String
getContentMD5()
An MD5 hash of the content to be submitted to the upload destination.ServiceUploadDocument.ContentTypeEnum
getContentType()
The content type of the to-be-uploaded fileint
hashCode()
void
setContentLength(java.math.BigDecimal contentLength)
void
setContentMD5(java.lang.String contentMD5)
void
setContentType(ServiceUploadDocument.ContentTypeEnum contentType)
java.lang.String
toString()
-
-
-
Method Detail
-
contentType
public ServiceUploadDocument contentType(ServiceUploadDocument.ContentTypeEnum contentType)
-
getContentType
public ServiceUploadDocument.ContentTypeEnum getContentType()
The content type of the to-be-uploaded file- Returns:
- contentType
-
setContentType
public void setContentType(ServiceUploadDocument.ContentTypeEnum contentType)
-
contentLength
public ServiceUploadDocument contentLength(java.math.BigDecimal contentLength)
-
getContentLength
public java.math.BigDecimal getContentLength()
The content length of the to-be-uploaded file minimum: 1 maximum: 5242880- Returns:
- contentLength
-
setContentLength
public void setContentLength(java.math.BigDecimal contentLength)
-
contentMD5
public ServiceUploadDocument contentMD5(java.lang.String contentMD5)
-
getContentMD5
public java.lang.String getContentMD5()
An MD5 hash of the content to be submitted to the upload destination. This value is used to determine if the data has been corrupted or tampered with during transit.- Returns:
- contentMD5
-
setContentMD5
public void setContentMD5(java.lang.String contentMD5)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-