public class AttachmentRequest extends ApiServiceRequest
| Constructor and Description |
|---|
AttachmentRequest() |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getContent() |
java.lang.String |
getContentType() |
java.lang.String |
getFileName() |
java.lang.Long |
getProjectId() |
AttachmentType |
getType() |
java.lang.Long |
getTypeId() |
void |
setContent(java.io.InputStream content)
Sets the content.
|
void |
setContentType(java.lang.String contentType)
Sets the content type.
|
void |
setFileName(java.lang.String fileName)
Sets the file name.
|
void |
setProjectId(java.lang.Long projectId)
Sets the project identifier.
|
void |
setType(AttachmentType type)
Sets the type.
|
void |
setTypeId(java.lang.Long typeId)
Sets the type identifier.
|
java.lang.String |
toString() |
AttachmentRequest |
withContent(java.io.InputStream content)
Sets the content.
|
AttachmentRequest |
withContentType(java.lang.String contentType)
Sets the content type.
|
AttachmentRequest |
withFileName(java.lang.String fileName)
Sets the file name.
|
AttachmentRequest |
withProjectId(java.lang.Long projectId)
Sets the project identifier.
|
AttachmentRequest |
withType(AttachmentType type)
Sets the type.
|
AttachmentRequest |
withTypeId(java.lang.Long typeId)
Sets the type identifier.
|
copyPrivateRequestParameters, getCredentials, getRequestClientOptions, setCredentials, withCredentialspublic java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
fileName - the given file name to upload.public AttachmentRequest withFileName(java.lang.String fileName)
fileName - the given file name to upload.public java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
contentType - the given content type value.public AttachmentRequest withContentType(java.lang.String contentType)
contentType - the given content type value to set.public java.lang.Long getProjectId()
public void setProjectId(java.lang.Long projectId)
projectId - the given project identifier.public AttachmentRequest withProjectId(java.lang.Long projectId)
projectId - the given project identifier.public java.lang.Long getTypeId()
public void setTypeId(java.lang.Long typeId)
typeId - the given type identifier to set.public AttachmentRequest withTypeId(java.lang.Long typeId)
typeId - the given type identifier to set.public AttachmentType getType()
public void setType(AttachmentType type)
type - the given type to set.public AttachmentRequest withType(AttachmentType type)
type - the given type to set.public java.io.InputStream getContent()
public void setContent(java.io.InputStream content)
content - the given content to attachment.public AttachmentRequest withContent(java.io.InputStream content)
content - the given content to attachment.public java.lang.String toString()
toString in class ApiServiceRequest