public final class Attachment extends GenericJson
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 Google Classroom API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Attachment() |
| Modifier and Type | Method and Description |
|---|---|
Attachment |
clone() |
DriveFile |
getDriveFile()
Google Drive file attachment.
|
Form |
getForm()
Google Forms attachment.
|
Link |
getLink()
Link attachment.
|
YouTubeVideo |
getYouTubeVideo()
Youtube video attachment.
|
Attachment |
set(String fieldName,
Object value) |
Attachment |
setDriveFile(DriveFile driveFile)
Google Drive file attachment.
|
Attachment |
setForm(Form form)
Google Forms attachment.
|
Attachment |
setLink(Link link)
Link attachment.
|
Attachment |
setYouTubeVideo(YouTubeVideo youTubeVideo)
Youtube video attachment.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic DriveFile getDriveFile()
null for nonepublic Attachment setDriveFile(DriveFile driveFile)
driveFile - driveFile or null for nonepublic Form getForm()
null for nonepublic Attachment setForm(Form form)
form - form or null for nonepublic Link getLink()
null for nonepublic Attachment setLink(Link link)
link - link or null for nonepublic YouTubeVideo getYouTubeVideo()
null for nonepublic Attachment setYouTubeVideo(YouTubeVideo youTubeVideo)
youTubeVideo - youTubeVideo or null for nonepublic Attachment set(String fieldName, Object value)
set in class GenericJsonpublic Attachment clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.