public class UploadItem
extends java.lang.Object
| Constructor and Description |
|---|
UploadItem()
Initializes a new instance of the UploadItem class.
|
UploadItem(byte[] buffer)
Initializes a new instance of the UploadItem class.
|
UploadItem(byte[] buffer,
FolderId parentFolderId)
Initializes a new instance of the UploadItem class.
|
UploadItem(java.io.InputStream inputStream)
Initializes a new instance of the UploadItem class.
|
UploadItem(java.io.InputStream inputStream,
FolderId parentFolderId)
Initializes a new instance of the UploadItem class.
|
UploadItem(java.lang.String filePath)
Initializes a new instance of the UploadItem class.
|
UploadItem(java.lang.String filePath,
FolderId parentFolderId)
Initializes a new instance of the UploadItem class.
|
| Modifier and Type | Method and Description |
|---|---|
CreateAction |
getCreateAction()
Gets the action for uploading an item into a mailbox.
|
java.lang.String |
getData()
Gets the data of a single item to upload into a mailbox.
|
ItemId |
getItemId()
Gets the unique identifier and change key of an item to create or update in the Exchange store.
|
FolderId |
getParentFolderId()
Gets the identifier of the parent folder where a new item is created or that contains the item to update.
|
boolean |
isAssociated()
Gets whether the uploaded item is a folder associated item.
|
void |
setAsAssociated(boolean isAssociated)
Sets whether the uploaded item is a folder associated item.
|
void |
setCreateAction(CreateAction createAction)
Sets the action for uploading an item into a mailbox.
|
void |
setData(java.lang.String data)
Sets the data of a single item to upload into a mailbox.
|
void |
setItemId(ItemId itemId)
Sets the unique identifier and change key of an item to create or update in the Exchange store.
|
void |
setParentFolderId(FolderId parentFolderId)
Sets the identifier of the parent folder where a new item is created or that contains the item to update.
|
public UploadItem()
public UploadItem(java.lang.String filePath)
throws java.io.IOException
filePath - the file pathjava.io.IOException - Signals that an I/O exception has occurred.public UploadItem(java.lang.String filePath,
FolderId parentFolderId)
throws java.io.IOException
filePath - the file pathparentFolderId - the parent folder idjava.io.IOException - Signals that an I/O exception has occurred.public UploadItem(java.io.InputStream inputStream)
throws java.io.IOException
inputStream - the input streamjava.io.IOException - Signals that an I/O exception has occurred.public UploadItem(java.io.InputStream inputStream,
FolderId parentFolderId)
throws java.io.IOException
inputStream - the input streamparentFolderId - the parent folder idjava.io.IOException - Signals that an I/O exception has occurred.public UploadItem(byte[] buffer)
buffer - the bufferpublic UploadItem(byte[] buffer,
FolderId parentFolderId)
buffer - the bufferparentFolderId - the parent folder idpublic ItemId getItemId()
public void setItemId(ItemId itemId)
itemId - the new item idpublic FolderId getParentFolderId()
public void setParentFolderId(FolderId parentFolderId)
parentFolderId - the new parent folder idpublic java.lang.String getData()
public void setData(java.lang.String data)
data - the new datapublic CreateAction getCreateAction()
public void setCreateAction(CreateAction createAction)
createAction - the new creates the actionpublic boolean isAssociated()
public void setAsAssociated(boolean isAssociated)
isAssociated - the new as associated