
**Inheritance:**
java.lang.Object
```
public class DeletionOptions
```

Defines parameters for item deletion
## Constructors

| Constructor | Description |
| --- | --- |
| [DeletionOptions()](#DeletionOptions--) | Initializes a new instance of the [DeletionOptions](../../com.aspose.email/deletionoptions) class. |
| [DeletionOptions(int type)](#DeletionOptions-int-) | Initializes a new instance of the [DeletionOptions](../../com.aspose.email/deletionoptions) class. |
## Methods

| Method | Description |
| --- | --- |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getClass()](#getClass--) |  |
| [getDefault()](#getDefault--) | Gets instance of the [DeletionOptions](../../com.aspose.email/deletionoptions) object with settings uses by default |
| [getDeletePermanently()](#getDeletePermanently--) | Gets instance of the [DeletionOptions](../../com.aspose.email/deletionoptions) object with settings for permanent deletion |
| [getMoveToDeletedItems()](#getMoveToDeletedItems--) | Gets instance of the [DeletionOptions](../../com.aspose.email/deletionoptions) object with settings for moving to deleted items |
| [getType()](#getType--) | Type of deletion |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setType(int value)](#setType-int-) | Type of deletion |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### DeletionOptions() {#DeletionOptions--}
```
public DeletionOptions()
```


Initializes a new instance of the [DeletionOptions](../../com.aspose.email/deletionoptions) class.

### DeletionOptions(int type) {#DeletionOptions-int-}
```
public DeletionOptions(int type)
```


Initializes a new instance of the [DeletionOptions](../../com.aspose.email/deletionoptions) class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| type | int | Type of deletion |

### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getDefault() {#getDefault--}
```
public static DeletionOptions getDefault()
```


Gets instance of the [DeletionOptions](../../com.aspose.email/deletionoptions) object with settings uses by default

**Returns:**
[DeletionOptions](../../com.aspose.email/deletionoptions)
### getDeletePermanently() {#getDeletePermanently--}
```
public static DeletionOptions getDeletePermanently()
```


Gets instance of the [DeletionOptions](../../com.aspose.email/deletionoptions) object with settings for permanent deletion

**Returns:**
[DeletionOptions](../../com.aspose.email/deletionoptions)
### getMoveToDeletedItems() {#getMoveToDeletedItems--}
```
public static DeletionOptions getMoveToDeletedItems()
```


Gets instance of the [DeletionOptions](../../com.aspose.email/deletionoptions) object with settings for moving to deleted items

**Returns:**
[DeletionOptions](../../com.aspose.email/deletionoptions)
### getType() {#getType--}
```
public final int getType()
```


Type of deletion

**Returns:**
int
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### setType(int value) {#setType-int-}
```
public final void setType(int value)
```


Type of deletion

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final native void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

