public class AttachmentBase extends Object
Constructor and Description |
---|
AttachmentBase() |
AttachmentBase(String base64Data,
String contentId,
ContentType contentType,
Map<String,String> headers)
Initializes a new instance of the AttachmentBase
|
Modifier and Type | Method and Description |
---|---|
AttachmentBase |
base64Data(String base64Data)
Set base64Data and return this.
|
AttachmentBase |
contentId(String contentId)
Set contentId and return this.
|
AttachmentBase |
contentType(ContentType contentType)
Set contentType and return this.
|
boolean |
equals(Object o) |
String |
getBase64Data()
Attachment file content as Base64 string.
|
String |
getContentId()
Attachment content id
|
ContentType |
getContentType()
Content type
|
Map<String,String> |
getHeaders()
Attachment headers.
|
int |
hashCode() |
AttachmentBase |
headers(Map<String,String> headers)
Set headers and return this.
|
AttachmentBase |
putHeadersItem(String key,
String headersItem)
Add an item to headers and return this.
|
void |
setBase64Data(String base64Data)
Set base64Data.
|
void |
setContentId(String contentId)
Set contentId.
|
void |
setContentType(ContentType contentType)
Set contentType.
|
void |
setHeaders(Map<String,String> headers)
Set headers.
|
String |
toString() |
public AttachmentBase()
public AttachmentBase(String base64Data, String contentId, ContentType contentType, Map<String,String> headers)
base64Data
- Attachment file content as Base64 string.contentId
- Attachment content idcontentType
- Content typeheaders
- Attachment headers.public AttachmentBase base64Data(String base64Data)
base64Data
- Attachment file content as Base64 string.public String getBase64Data()
public void setBase64Data(String base64Data)
base64Data
- Attachment file content as Base64 string.public AttachmentBase contentId(String contentId)
contentId
- Attachment content idpublic String getContentId()
public void setContentId(String contentId)
contentId
- Attachment content idpublic AttachmentBase contentType(ContentType contentType)
contentType
- Content typepublic ContentType getContentType()
public void setContentType(ContentType contentType)
contentType
- Content typepublic AttachmentBase headers(Map<String,String> headers)
headers
- Attachment headers.public AttachmentBase putHeadersItem(String key, String headersItem)
key
- An item keyheadersItem
- An item valuepublic void setHeaders(Map<String,String> headers)
headers
- Attachment headers.Copyright © 2020. All rights reserved.