target.apidocs.com.google.api.services.calendar.model.EventAttachment.html Maven / Gradle / Ivy
The newest version!
EventAttachment (Calendar API v3-rev20241101-2.0.0)
com.google.api.services.calendar.model
Class EventAttachment
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.calendar.model.EventAttachment
-
public final class EventAttachment
extends com.google.api.client.json.GenericJson
Model definition for EventAttachment.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Calendar API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
EventAttachment()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
EventAttachment
clone()
String
getFileId()
ID of the attached file.
String
getFileUrl()
URL link to the attachment.
String
getIconLink()
URL link to the attachment's icon.
String
getMimeType()
Internet media type (MIME type) of the attachment.
String
getTitle()
Attachment title.
EventAttachment
set(String fieldName,
Object value)
EventAttachment
setFileId(String fileId)
ID of the attached file.
EventAttachment
setFileUrl(String fileUrl)
URL link to the attachment.
EventAttachment
setIconLink(String iconLink)
URL link to the attachment's icon.
EventAttachment
setMimeType(String mimeType)
Internet media type (MIME type) of the attachment.
EventAttachment
setTitle(String title)
Attachment title.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getFileId
public String getFileId()
ID of the attached file. Read-only. For Google Drive files, this is the ID of the corresponding
Files resource entry in the Drive API.
- Returns:
- value or
null
for none
-
setFileId
public EventAttachment setFileId(String fileId)
ID of the attached file. Read-only. For Google Drive files, this is the ID of the corresponding
Files resource entry in the Drive API.
- Parameters:
fileId
- fileId or null
for none
-
getFileUrl
public String getFileUrl()
URL link to the attachment. For adding Google Drive file attachments use the same format as in
alternateLink property of the Files resource in the Drive API. Required when adding an
attachment.
- Returns:
- value or
null
for none
-
setFileUrl
public EventAttachment setFileUrl(String fileUrl)
URL link to the attachment. For adding Google Drive file attachments use the same format as in
alternateLink property of the Files resource in the Drive API. Required when adding an
attachment.
- Parameters:
fileUrl
- fileUrl or null
for none
-
getIconLink
public String getIconLink()
URL link to the attachment's icon. This field can only be modified for custom third-party
attachments.
- Returns:
- value or
null
for none
-
setIconLink
public EventAttachment setIconLink(String iconLink)
URL link to the attachment's icon. This field can only be modified for custom third-party
attachments.
- Parameters:
iconLink
- iconLink or null
for none
-
getMimeType
public String getMimeType()
Internet media type (MIME type) of the attachment.
- Returns:
- value or
null
for none
-
setMimeType
public EventAttachment setMimeType(String mimeType)
Internet media type (MIME type) of the attachment.
- Parameters:
mimeType
- mimeType or null
for none
-
getTitle
public String getTitle()
Attachment title.
- Returns:
- value or
null
for none
-
setTitle
public EventAttachment setTitle(String title)
Attachment title.
- Parameters:
title
- title or null
for none
-
set
public EventAttachment set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public EventAttachment clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy