@asposecloud/aspose-email-cloud
Version:
Aspose.Email Cloud Node.js SDK
71 lines (70 loc) • 1.84 kB
TypeScript
import * as model from "./index";
/**
* Represents an embedded resource in a message.
*/
export declare class LinkedResource extends model.AttachmentBase {
/**
* Attribute type map
*/
static attributeTypeMap: Array<{
name: string;
baseName: string;
type: string;
}>;
/**
* Returns attribute type map
*/
static getAttributeTypeMap(): {
name: string;
baseName: string;
type: string;
}[];
/**
* URI that the resource must match.
*/
contentLink: string;
/**
* Represents an embedded resource in a message.
* @param base64Data Attachment file content as Base64 string.
* @param contentId Attachment content id
* @param contentType Content type
* @param headers Attachment headers.
* @param contentLink URI that the resource must match.
*/
constructor(base64Data?: string, contentId?: string, contentType?: model.ContentType, headers?: {
[key: string]: string;
}, contentLink?: string);
}
/**
* LinkedResource model builder
*/
export declare class LinkedResourceBuilder {
private readonly model;
constructor(model: LinkedResource);
/**
* Build model.
*/
build(): LinkedResource;
/**
* Attachment file content as Base64 string.
*/
base64Data(base64Data: string): LinkedResourceBuilder;
/**
* Attachment content id
*/
contentId(contentId: string): LinkedResourceBuilder;
/**
* Content type
*/
contentType(contentType: model.ContentType): LinkedResourceBuilder;
/**
* Attachment headers.
*/
headers(headers: {
[key: string]: string;
}): LinkedResourceBuilder;
/**
* URI that the resource must match.
*/
contentLink(contentLink: string): LinkedResourceBuilder;
}