public final class Announcement
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 |
|---|
Announcement() |
| Modifier and Type | Method and Description |
|---|---|
Announcement |
clone() |
java.lang.String |
getAlternateLink()
Absolute link to this announcement in the Classroom web UI.
|
java.lang.String |
getAssigneeMode()
Assignee mode of the announcement.
|
java.lang.String |
getCourseId()
Identifier of the course.
|
java.lang.String |
getCreationTime()
Timestamp when this announcement was created.
|
java.lang.String |
getCreatorUserId()
Identifier for the user that created the announcement.
|
java.lang.String |
getId()
Classroom-assigned identifier of this announcement, unique per course.
|
IndividualStudentsOptions |
getIndividualStudentsOptions()
Identifiers of students with access to the announcement.
|
java.util.List<Material> |
getMaterials()
Additional materials.
|
java.lang.String |
getScheduledTime()
Optional timestamp when this announcement is scheduled to be published.
|
java.lang.String |
getState()
Status of this announcement.
|
java.lang.String |
getText()
Description of this announcement.
|
java.lang.String |
getUpdateTime()
Timestamp of the most recent change to this announcement.
|
Announcement |
set(java.lang.String fieldName,
java.lang.Object value) |
Announcement |
setAlternateLink(java.lang.String alternateLink)
Absolute link to this announcement in the Classroom web UI.
|
Announcement |
setAssigneeMode(java.lang.String assigneeMode)
Assignee mode of the announcement.
|
Announcement |
setCourseId(java.lang.String courseId)
Identifier of the course.
|
Announcement |
setCreationTime(java.lang.String creationTime)
Timestamp when this announcement was created.
|
Announcement |
setCreatorUserId(java.lang.String creatorUserId)
Identifier for the user that created the announcement.
|
Announcement |
setId(java.lang.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(java.util.List<Material> materials)
Additional materials.
|
Announcement |
setScheduledTime(java.lang.String scheduledTime)
Optional timestamp when this announcement is scheduled to be published.
|
Announcement |
setState(java.lang.String state)
Status of this announcement.
|
Announcement |
setText(java.lang.String text)
Description of this announcement.
|
Announcement |
setUpdateTime(java.lang.String updateTime)
Timestamp of the most recent change to this announcement.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String getAlternateLink()
null for nonepublic Announcement setAlternateLink(java.lang.String alternateLink)
alternateLink - alternateLink or null for nonepublic java.lang.String getAssigneeMode()
null for nonepublic Announcement setAssigneeMode(java.lang.String assigneeMode)
assigneeMode - assigneeMode or null for nonepublic java.lang.String getCourseId()
null for nonepublic Announcement setCourseId(java.lang.String courseId)
courseId - courseId or null for nonepublic java.lang.String getCreationTime()
null for nonepublic Announcement setCreationTime(java.lang.String creationTime)
creationTime - creationTime or null for nonepublic java.lang.String getCreatorUserId()
null for nonepublic Announcement setCreatorUserId(java.lang.String creatorUserId)
creatorUserId - creatorUserId or null for nonepublic java.lang.String getId()
null for nonepublic Announcement setId(java.lang.String id)
id - id or null for nonepublic IndividualStudentsOptions getIndividualStudentsOptions()
null for nonepublic Announcement setIndividualStudentsOptions(IndividualStudentsOptions individualStudentsOptions)
individualStudentsOptions - individualStudentsOptions or null for nonepublic java.util.List<Material> getMaterials()
null for nonepublic Announcement setMaterials(java.util.List<Material> materials)
materials - materials or null for nonepublic java.lang.String getScheduledTime()
null for nonepublic Announcement setScheduledTime(java.lang.String scheduledTime)
scheduledTime - scheduledTime or null for nonepublic java.lang.String getState()
null for nonepublic Announcement setState(java.lang.String state)
state - state or null for nonepublic java.lang.String getText()
null for nonepublic Announcement setText(java.lang.String text)
text - text or null for nonepublic java.lang.String getUpdateTime()
null for nonepublic Announcement setUpdateTime(java.lang.String updateTime)
updateTime - updateTime or null for nonepublic Announcement set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Announcement clone()
clone in class com.google.api.client.json.GenericJson