public class ReferenceAttachmentOptions extends Object
Represents configuration options for adding a reference attachment to a MAPI message.
| Constructor and Description |
|---|
ReferenceAttachmentOptions(String sharedLink,
String url,
String providerName)
Initializes a new instance of the
ReferenceAttachmentOptions class with the specified shared
link, URL, and provider name. |
| Modifier and Type | Method and Description |
|---|---|
int |
getOriginalPermissionType()
Gets or sets the original permission type for the reference attachment.
|
int |
getPermissionType()
Gets or sets the permission type for the reference attachment.
|
String |
getPreviewUrl()
Gets or sets the preview URL of the reference attachment.
|
String |
getProviderEndpointUrl()
Gets or sets the provider endpoint URL.
|
String |
getProviderName()
Gets or sets the name of the provider for the reference attachment.
|
String |
getSharedLink()
Gets or sets the shared link of the reference attachment.
|
String |
getThumbnailUrl()
Gets or sets the thumbnail URL of the reference attachment.
|
String |
getUrl()
Gets or sets the direct URL for accessing the reference attachment.
|
boolean |
isFolder()
Gets or sets a value indicating whether the reference attachment is a folder.
|
void |
setFolder(boolean value)
Gets or sets a value indicating whether the reference attachment is a folder.
|
void |
setOriginalPermissionType(int value)
Gets or sets the original permission type for the reference attachment.
|
void |
setPermissionType(int value)
Gets or sets the permission type for the reference attachment.
|
void |
setPreviewUrl(String value)
Gets or sets the preview URL of the reference attachment.
|
void |
setProviderEndpointUrl(String value)
Gets or sets the provider endpoint URL.
|
void |
setProviderName(String value)
Gets or sets the name of the provider for the reference attachment.
|
void |
setSharedLink(String value)
Gets or sets the shared link of the reference attachment.
|
void |
setThumbnailUrl(String value)
Gets or sets the thumbnail URL of the reference attachment.
|
void |
setUrl(String value)
Gets or sets the direct URL for accessing the reference attachment.
|
public ReferenceAttachmentOptions(String sharedLink, String url, String providerName)
Initializes a new instance of the ReferenceAttachmentOptions class with the specified shared
link, URL, and provider name.
sharedLink - The shared link of the reference attachment.url - The direct URL for accessing the reference attachment.providerName - The name of the provider for the reference attachment.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.
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.
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.
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.
public final String getProviderName()
Gets or sets the name of the provider for the reference attachment. Examples include "GoogleDrive", "OneDrive", etc.
public final void setProviderName(String value)
Gets or sets the name of the provider for the reference attachment. Examples include "GoogleDrive", "OneDrive", etc.
public final int getPermissionType()
Gets or sets the permission type for the reference attachment.
Indicates the level of access granted.
The default value is <b>AnyoneCanEdit</b>.
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 <b>AnyoneCanEdit</b>.
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 <b>None</b>.
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 <b>None</b>.
public final boolean isFolder()
Gets or sets a value indicating whether the reference attachment is a folder.
The default value is <b>false</b>.
public final void setFolder(boolean value)
Gets or sets a value indicating whether the reference attachment is a folder.
The default value is <b>false</b>.
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 <b>Empty</b>.
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 <b>Empty</b>.
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 <b>Empty</b>.
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 <b>Empty</b>.
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 <b>Empty</b>.
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 <b>Empty</b>.
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.