public final class Material 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 |
|---|
Material() |
| Modifier and Type | Method and Description |
|---|---|
Material |
clone() |
SharedDriveFile |
getDriveFile()
Google Drive file material.
|
Form |
getForm()
Google Forms material.
|
Link |
getLink()
Link material.
|
YouTubeVideo |
getYoutubeVideo()
YouTube video material.
|
Material |
set(String fieldName,
Object value) |
Material |
setDriveFile(SharedDriveFile driveFile)
Google Drive file material.
|
Material |
setForm(Form form)
Google Forms material.
|
Material |
setLink(Link link)
Link material.
|
Material |
setYoutubeVideo(YouTubeVideo youtubeVideo)
YouTube video material.
|
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 SharedDriveFile getDriveFile()
null for nonepublic Material setDriveFile(SharedDriveFile driveFile)
driveFile - driveFile or null for nonepublic Form getForm()
null for nonepublic Material setForm(Form form)
form - form or null for nonepublic Link getLink()
null for nonepublic Material setLink(Link link)
link - link or null for nonepublic YouTubeVideo getYoutubeVideo()
null for nonepublic Material setYoutubeVideo(YouTubeVideo youtubeVideo)
youtubeVideo - youtubeVideo or null for nonepublic Material set(String fieldName, Object value)
set in class GenericJsonpublic Material clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.