public final class Announcement 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 |
|---|
Announcement() |
| Modifier and Type | Method and Description |
|---|---|
Announcement |
clone() |
String |
getAlternateLink()
Absolute link to this announcement in the Classroom web UI.
|
String |
getAssigneeMode()
Assignee mode of the announcement.
|
String |
getCourseId()
Identifier of the course.
|
String |
getCreationTime()
Timestamp when this announcement was created.
|
String |
getCreatorUserId()
Identifier for the user that created the announcement.
|
String |
getId()
Classroom-assigned identifier of this announcement, unique per course.
|
IndividualStudentsOptions |
getIndividualStudentsOptions()
Identifiers of students with access to the announcement.
|
List<Material> |
getMaterials()
Additional materials.
|
String |
getScheduledTime()
Optional timestamp when this announcement is scheduled to be published.
|
String |
getState()
Status of this announcement.
|
String |
getText()
Description of this announcement.
|
String |
getUpdateTime()
Timestamp of the most recent change to this announcement.
|
Announcement |
set(String fieldName,
Object value) |
Announcement |
setAlternateLink(String alternateLink)
Absolute link to this announcement in the Classroom web UI.
|
Announcement |
setAssigneeMode(String assigneeMode)
Assignee mode of the announcement.
|
Announcement |
setCourseId(String courseId)
Identifier of the course.
|
Announcement |
setCreationTime(String creationTime)
Timestamp when this announcement was created.
|
Announcement |
setCreatorUserId(String creatorUserId)
Identifier for the user that created the announcement.
|
Announcement |
setId(String id)
Classroom-assigned identifier of this announcement, unique per course.
|
Announcement |
setIndividualStudentsOptions(IndividualStudentsOptions individualStudentsOptions)
Identifiers of students with access to the announcement.
|
Announcement |
setMaterials(List<Material> materials)
Additional materials.
|
Announcement |
setScheduledTime(String scheduledTime)
Optional timestamp when this announcement is scheduled to be published.
|
Announcement |
setState(String state)
Status of this announcement.
|
Announcement |
setText(String text)
Description of this announcement.
|
Announcement |
setUpdateTime(String updateTime)
Timestamp of the most recent change to this announcement.
|
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 String getAlternateLink()
null for nonepublic Announcement setAlternateLink(String alternateLink)
alternateLink - alternateLink or null for nonepublic String getAssigneeMode()
null for nonepublic Announcement setAssigneeMode(String assigneeMode)
assigneeMode - assigneeMode or null for nonepublic String getCourseId()
null for nonepublic Announcement setCourseId(String courseId)
courseId - courseId or null for nonepublic String getCreationTime()
null for nonepublic Announcement setCreationTime(String creationTime)
creationTime - creationTime or null for nonepublic String getCreatorUserId()
null for nonepublic Announcement setCreatorUserId(String creatorUserId)
creatorUserId - creatorUserId or null for nonepublic String getId()
null for nonepublic Announcement setId(String id)
id - id or null for nonepublic IndividualStudentsOptions getIndividualStudentsOptions()
null for nonepublic Announcement setIndividualStudentsOptions(IndividualStudentsOptions individualStudentsOptions)
individualStudentsOptions - individualStudentsOptions or null for nonepublic List<Material> getMaterials()
null for nonepublic Announcement setMaterials(List<Material> materials)
materials - materials or null for nonepublic String getScheduledTime()
null for nonepublic Announcement setScheduledTime(String scheduledTime)
scheduledTime - scheduledTime or null for nonepublic String getState()
null for nonepublic Announcement setState(String state)
state - state or null for nonepublic String getText()
null for nonepublic Announcement setText(String text)
text - text or null for nonepublic String getUpdateTime()
null for nonepublic Announcement setUpdateTime(String updateTime)
updateTime - updateTime or null for nonepublic Announcement set(String fieldName, Object value)
set in class GenericJsonpublic Announcement clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.