public final class Material
extends com.google.api.client.json.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
com.google.api.client.util.GenericData.Flags| 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(java.lang.String fieldName,
java.lang.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, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic 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(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Material clone()
clone in class com.google.api.client.json.GenericJson