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

Represents configuration options for adding a reference attachment to a MAPI message.
## Constructors

| Constructor | Description |
| --- | --- |
| [ReferenceAttachmentOptions(String sharedLink, String url, String providerName)](#ReferenceAttachmentOptions-java.lang.String-java.lang.String-java.lang.String-) | Initializes a new instance of the [ReferenceAttachmentOptions](../../com.aspose.email/referenceattachmentoptions) class with the specified shared link, URL, and provider name. |
## Methods

| Method | Description |
| --- | --- |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getClass()](#getClass--) |  |
| [getOriginalPermissionType()](#getOriginalPermissionType--) | Gets or sets the original permission type for the reference attachment. |
| [getPermissionType()](#getPermissionType--) | Gets or sets the permission type for the reference attachment. |
| [getPreviewUrl()](#getPreviewUrl--) | Gets or sets the preview URL of the reference attachment. |
| [getProviderEndpointUrl()](#getProviderEndpointUrl--) | Gets or sets the provider endpoint URL. |
| [getProviderName()](#getProviderName--) | Gets or sets the name of the provider for the reference attachment. |
| [getSharedLink()](#getSharedLink--) | Gets or sets the shared link of the reference attachment. |
| [getThumbnailUrl()](#getThumbnailUrl--) | Gets or sets the thumbnail URL of the reference attachment. |
| [getUrl()](#getUrl--) | Gets or sets the direct URL for accessing the reference attachment. |
| [hashCode()](#hashCode--) |  |
| [isFolder()](#isFolder--) | Gets or sets a value indicating whether the reference attachment is a folder. |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setFolder(boolean value)](#setFolder-boolean-) | Gets or sets a value indicating whether the reference attachment is a folder. |
| [setOriginalPermissionType(int value)](#setOriginalPermissionType-int-) | Gets or sets the original permission type for the reference attachment. |
| [setPermissionType(int value)](#setPermissionType-int-) | Gets or sets the permission type for the reference attachment. |
| [setPreviewUrl(String value)](#setPreviewUrl-java.lang.String-) | Gets or sets the preview URL of the reference attachment. |
| [setProviderEndpointUrl(String value)](#setProviderEndpointUrl-java.lang.String-) | Gets or sets the provider endpoint URL. |
| [setProviderName(String value)](#setProviderName-java.lang.String-) | Gets or sets the name of the provider for the reference attachment. |
| [setSharedLink(String value)](#setSharedLink-java.lang.String-) | Gets or sets the shared link of the reference attachment. |
| [setThumbnailUrl(String value)](#setThumbnailUrl-java.lang.String-) | Gets or sets the thumbnail URL of the reference attachment. |
| [setUrl(String value)](#setUrl-java.lang.String-) | Gets or sets the direct URL for accessing the reference attachment. |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### ReferenceAttachmentOptions(String sharedLink, String url, String providerName) {#ReferenceAttachmentOptions-java.lang.String-java.lang.String-java.lang.String-}
```
public ReferenceAttachmentOptions(String sharedLink, String url, String providerName)
```


Initializes a new instance of the [ReferenceAttachmentOptions](../../com.aspose.email/referenceattachmentoptions) class with the specified shared link, URL, and provider name.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sharedLink | java.lang.String | The shared link of the reference attachment. |
| url | java.lang.String | The direct URL for accessing the reference attachment. |
| providerName | java.lang.String | The name of the provider for the reference attachment. |

### 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<?>
### getOriginalPermissionType() {#getOriginalPermissionType--}
```
public final int getOriginalPermissionType()
```


Gets or sets the original permission type for the reference attachment. Used to specify the original permission level before any modifications. The default value is  **None** .

**Returns:**
int
### getPermissionType() {#getPermissionType--}
```
public final int getPermissionType()
```


Gets or sets the permission type for the reference attachment. Indicates the level of access granted. The default value is  **AnyoneCanEdit** .

**Returns:**
int
### getPreviewUrl() {#getPreviewUrl--}
```
public final String getPreviewUrl()
```


Gets or sets the preview URL of the reference attachment. This URL can be used to generate a preview of the resource, if supported by the provider. The default value is  **Empty** .

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


Gets or sets the provider endpoint URL. Typically used for specifying the base URL of the cloud provider API. The default value is  **Empty** .

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


Gets or sets the name of the provider for the reference attachment. Examples include "GoogleDrive", "OneDrive", etc.

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


Gets or sets the shared link of the reference attachment. This is the URL to the shared resource, such as a file on a cloud storage provider.

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


Gets or sets the thumbnail URL of the reference attachment. The URL points to a thumbnail image of the resource for visual representation. The default value is  **Empty** .

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


Gets or sets the direct URL for accessing the reference attachment. This may point to the specific resource within the provider's interface.

**Returns:**
java.lang.String
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### isFolder() {#isFolder--}
```
public final boolean isFolder()
```


Gets or sets a value indicating whether the reference attachment is a folder. The default value is  **false** .

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




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




### setFolder(boolean value) {#setFolder-boolean-}
```
public final void setFolder(boolean value)
```


Gets or sets a value indicating whether the reference attachment is a folder. The default value is  **false** .

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

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


Gets or sets the original permission type for the reference attachment. Used to specify the original permission level before any modifications. The default value is  **None** .

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

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


Gets or sets the permission type for the reference attachment. Indicates the level of access granted. The default value is  **AnyoneCanEdit** .

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

### setPreviewUrl(String value) {#setPreviewUrl-java.lang.String-}
```
public final void setPreviewUrl(String value)
```


Gets or sets the preview URL of the reference attachment. This URL can be used to generate a preview of the resource, if supported by the provider. The default value is  **Empty** .

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### setProviderEndpointUrl(String value) {#setProviderEndpointUrl-java.lang.String-}
```
public final void setProviderEndpointUrl(String value)
```


Gets or sets the provider endpoint URL. Typically used for specifying the base URL of the cloud provider API. The default value is  **Empty** .

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### setProviderName(String value) {#setProviderName-java.lang.String-}
```
public final void setProviderName(String value)
```


Gets or sets the name of the provider for the reference attachment. Examples include "GoogleDrive", "OneDrive", etc.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### setSharedLink(String value) {#setSharedLink-java.lang.String-}
```
public final void setSharedLink(String value)
```


Gets or sets the shared link of the reference attachment. This is the URL to the shared resource, such as a file on a cloud storage provider.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### setThumbnailUrl(String value) {#setThumbnailUrl-java.lang.String-}
```
public final void setThumbnailUrl(String value)
```


Gets or sets the thumbnail URL of the reference attachment. The URL points to a thumbnail image of the resource for visual representation. The default value is  **Empty** .

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### setUrl(String value) {#setUrl-java.lang.String-}
```
public final void setUrl(String value)
```


Gets or sets the direct URL for accessing the reference attachment. This may point to the specific resource within the provider's interface.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### 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 |  |

