com.microsoft.graph.models.EducationClass Maven / Gradle / Ivy
// Template Source: BaseEntity.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.models;
import com.microsoft.graph.serializer.ISerializer;
import com.microsoft.graph.serializer.IJsonBackedObject;
import com.microsoft.graph.serializer.AdditionalDataManager;
import java.util.EnumSet;
import com.microsoft.graph.http.BaseCollectionPage;
import com.microsoft.graph.models.EducationCourse;
import com.microsoft.graph.models.IdentitySet;
import com.microsoft.graph.models.EducationExternalSource;
import com.microsoft.graph.models.EducationTerm;
import com.microsoft.graph.models.EducationAssignmentDefaults;
import com.microsoft.graph.models.EducationAssignmentSettings;
import com.microsoft.graph.models.Group;
import com.microsoft.graph.models.Entity;
import com.microsoft.graph.requests.EducationCategoryCollectionPage;
import com.microsoft.graph.requests.EducationAssignmentCollectionPage;
import com.microsoft.graph.requests.EducationSchoolCollectionPage;
import com.google.gson.JsonObject;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import javax.annotation.Nullable;
import javax.annotation.Nonnull;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the Education Class.
*/
public class EducationClass extends Entity implements IJsonBackedObject {
/**
* The Class Code.
* Class code used by the school to identify the class.
*/
@SerializedName(value = "classCode", alternate = {"ClassCode"})
@Expose
@Nullable
public String classCode;
/**
* The Course.
*
*/
@SerializedName(value = "course", alternate = {"Course"})
@Expose
@Nullable
public EducationCourse course;
/**
* The Created By.
* Entity who created the class
*/
@SerializedName(value = "createdBy", alternate = {"CreatedBy"})
@Expose
@Nullable
public IdentitySet createdBy;
/**
* The Description.
* Description of the class.
*/
@SerializedName(value = "description", alternate = {"Description"})
@Expose
@Nullable
public String description;
/**
* The Display Name.
* Name of the class.
*/
@SerializedName(value = "displayName", alternate = {"DisplayName"})
@Expose
@Nullable
public String displayName;
/**
* The External Id.
* ID of the class from the syncing system.
*/
@SerializedName(value = "externalId", alternate = {"ExternalId"})
@Expose
@Nullable
public String externalId;
/**
* The External Name.
* Name of the class in the syncing system.
*/
@SerializedName(value = "externalName", alternate = {"ExternalName"})
@Expose
@Nullable
public String externalName;
/**
* The External Source.
* How this class was created. Possible values are: sis, manual.
*/
@SerializedName(value = "externalSource", alternate = {"ExternalSource"})
@Expose
@Nullable
public EducationExternalSource externalSource;
/**
* The External Source Detail.
* The name of the external source this resources was generated from.
*/
@SerializedName(value = "externalSourceDetail", alternate = {"ExternalSourceDetail"})
@Expose
@Nullable
public String externalSourceDetail;
/**
* The Grade.
* Grade level of the class.
*/
@SerializedName(value = "grade", alternate = {"Grade"})
@Expose
@Nullable
public String grade;
/**
* The Mail Nickname.
* Mail name for sending email to all members, if this is enabled.
*/
@SerializedName(value = "mailNickname", alternate = {"MailNickname"})
@Expose
@Nullable
public String mailNickname;
/**
* The Term.
* Term for this class.
*/
@SerializedName(value = "term", alternate = {"Term"})
@Expose
@Nullable
public EducationTerm term;
/**
* The Assignment Categories.
* All categories associated with this class. Nullable.
*/
@SerializedName(value = "assignmentCategories", alternate = {"AssignmentCategories"})
@Expose
@Nullable
public com.microsoft.graph.requests.EducationCategoryCollectionPage assignmentCategories;
/**
* The Assignment Defaults.
* Specifies class-level defaults respected by new assignments created in the class.
*/
@SerializedName(value = "assignmentDefaults", alternate = {"AssignmentDefaults"})
@Expose
@Nullable
public EducationAssignmentDefaults assignmentDefaults;
/**
* The Assignments.
* All assignments associated with this class. Nullable.
*/
@SerializedName(value = "assignments", alternate = {"Assignments"})
@Expose
@Nullable
public com.microsoft.graph.requests.EducationAssignmentCollectionPage assignments;
/**
* The Assignment Settings.
* Specifies class-level assignments settings.
*/
@SerializedName(value = "assignmentSettings", alternate = {"AssignmentSettings"})
@Expose
@Nullable
public EducationAssignmentSettings assignmentSettings;
/**
* The Group.
* The underlying Microsoft 365 group object.
*/
@SerializedName(value = "group", alternate = {"Group"})
@Expose
@Nullable
public Group group;
/**
* The Members.
* All users in the class. Nullable.
*/
@Nullable
public com.microsoft.graph.requests.EducationUserCollectionPage members;
/**
* The Schools.
* All schools that this class is associated with. Nullable.
*/
@Nullable
public com.microsoft.graph.requests.EducationSchoolCollectionPage schools;
/**
* The Teachers.
* All teachers in the class. Nullable.
*/
@Nullable
public com.microsoft.graph.requests.EducationUserCollectionPage teachers;
/**
* Sets the raw JSON object
*
* @param serializer the serializer
* @param json the JSON object to set this object to
*/
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
if (json.has("assignmentCategories")) {
assignmentCategories = serializer.deserializeObject(json.get("assignmentCategories"), com.microsoft.graph.requests.EducationCategoryCollectionPage.class);
}
if (json.has("assignments")) {
assignments = serializer.deserializeObject(json.get("assignments"), com.microsoft.graph.requests.EducationAssignmentCollectionPage.class);
}
if (json.has("members")) {
members = serializer.deserializeObject(json.get("members"), com.microsoft.graph.requests.EducationUserCollectionPage.class);
}
if (json.has("schools")) {
schools = serializer.deserializeObject(json.get("schools"), com.microsoft.graph.requests.EducationSchoolCollectionPage.class);
}
if (json.has("teachers")) {
teachers = serializer.deserializeObject(json.get("teachers"), com.microsoft.graph.requests.EducationUserCollectionPage.class);
}
}
}