Attachment 类
定义
Represents a document attachment in the Azure Cosmos DB database service.
Each document may contain zero or more attachemnts. Attachments can be of any MIME type - text, image, binary data. These are stored externally in Azure Blob storage. Attachments are automatically deleted when the parent document is deleted.
public class Attachment extends Resource
- 继承
继承成员
JsonSerializable.get(String propertyName)
JsonSerializable.getBoolean(String propertyName)
JsonSerializable.getCollection(String propertyName)
JsonSerializable.getDouble(String propertyName)
Resource.getETag()
JsonSerializable.getHashMap()
Resource.getId()
JsonSerializable.getInt(String propertyName)
JsonSerializable.getLogger()
JsonSerializable.getLong(String propertyName)
JsonSerializable.getMapper()
JsonSerializable.getObject(String propertyName)
JsonSerializable.getObjectByPath(Collection<String> propertyNames)
Resource.getResourceId()
Resource.getSelfLink()
JsonSerializable.getString(String propertyName)
Resource.getTimestamp()
JsonSerializable.has(String propertyName)
JsonSerializable.JsonSerializable()
JsonSerializable.JsonSerializable(String jsonString, ObjectMapper objectMapper)
JsonSerializable.JsonSerializable(String jsonString)
JsonSerializable.JsonSerializable(JSONObject jsonObject)
JsonSerializable.remove(String propertyName)
Resource.Resource()
Resource.Resource(String jsonString, ObjectMapper objectMapper)
Resource.Resource(String jsonString)
Resource.Resource(JSONObject jsonObject)
Resource.setId(String id)
Resource.setResourceId(String resourceId)
JsonSerializable.toJson()
JsonSerializable.toJson(SerializationFormattingPolicy formattingPolicy)
JsonSerializable.toString()
JsonSerializable.toString(int indentFactor)
构造函数
Attachment() |
Initialize an attachment object. |
Attachment(JSONObject jsonObject) |
Initialize an attachment object from json object.
|
Attachment(String source) |
Initialize an attachment object from json string.
|
方法
getContentType() |
Gets the MIME content type of the attachment.
|
getMediaLink() |
Gets the media link associated with the attachment content.
|
setContentType(String contentType) |
Sets the MIME content type of the attachment.
|
setMediaLink(String mediaLink) |
Sets the media link associated with the attachment content.
|