ReferenceAttachmentOptions

Inheritance: java.lang.Object

public class ReferenceAttachmentOptions

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

Constructors

ConstructorDescription
ReferenceAttachmentOptions(String sharedLink, String url, String providerName)Initializes a new instance of the ReferenceAttachmentOptions class with the specified shared link, URL, and provider name.

Methods

MethodDescription
equals(Object arg0)
getClass()
getOriginalPermissionType()Gets or sets the original permission type for the reference attachment.
getPermissionType()Gets or sets the permission type for the reference attachment.
getPreviewUrl()Gets or sets the preview URL of the reference attachment.
getProviderEndpointUrl()Gets or sets the provider endpoint URL.
getProviderName()Gets or sets the name of the provider for the reference attachment.
getSharedLink()Gets or sets the shared link of the reference attachment.
getThumbnailUrl()Gets or sets the thumbnail URL of the reference attachment.
getUrl()Gets or sets the direct URL for accessing the reference attachment.
hashCode()
isFolder()Gets or sets a value indicating whether the reference attachment is a folder.
notify()
notifyAll()
setFolder(boolean value)Gets or sets a value indicating whether the reference attachment is a folder.
setOriginalPermissionType(int value)Gets or sets the original permission type for the reference attachment.
setPermissionType(int value)Gets or sets the permission type for the reference attachment.
setPreviewUrl(String value)Gets or sets the preview URL of the reference attachment.
setProviderEndpointUrl(String value)Gets or sets the provider endpoint URL.
setProviderName(String value)Gets or sets the name of the provider for the reference attachment.
setSharedLink(String value)Gets or sets the shared link of the reference attachment.
setThumbnailUrl(String value)Gets or sets the thumbnail URL of the reference attachment.
setUrl(String value)Gets or sets the direct URL for accessing the reference attachment.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

ReferenceAttachmentOptions(String sharedLink, String url, String providerName)

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.

Parameters:

ParameterTypeDescription
sharedLinkjava.lang.StringThe shared link of the reference attachment.
urljava.lang.StringThe direct URL for accessing the reference attachment.
providerNamejava.lang.StringThe name of the provider for the reference attachment.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

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()

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()

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()

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()

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

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()

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()

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()

public native int hashCode()

Returns: int

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()

public final native void notify()

notifyAll()

public final native void notifyAll()

setFolder(boolean value)

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:

ParameterTypeDescription
valueboolean

setOriginalPermissionType(int value)

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:

ParameterTypeDescription
valueint

setPermissionType(int value)

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:

ParameterTypeDescription
valueint

setPreviewUrl(String value)

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:

ParameterTypeDescription
valuejava.lang.String

setProviderEndpointUrl(String value)

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:

ParameterTypeDescription
valuejava.lang.String

setProviderName(String value)

public final void setProviderName(String value)

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

Parameters:

ParameterTypeDescription
valuejava.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:

ParameterTypeDescription
valuejava.lang.String

setThumbnailUrl(String value)

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:

ParameterTypeDescription
valuejava.lang.String

setUrl(String value)

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:

ParameterTypeDescription
valuejava.lang.String

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int