Package com.microsoft.graph.models
Class EducationUser
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.EducationUser
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class EducationUser
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EducationUser
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the accountEnabled property value.Gets the assignedLicenses property value.Gets the assignedPlans property value.Gets the assignments property value.Gets the businessPhones property value.Gets the classes property value.Gets the createdBy property value.Gets the department property value.Gets the displayName property value.Gets the externalSource property value.Gets the externalSourceDetail property value.The deserialization information for the current modelGets the givenName property value.getMail()
Gets the mail property value.Gets the mailingAddress property value.Gets the mailNickname property value.Gets the middleName property value.Gets the mobilePhone property value.Gets the officeLocation property value.Gets the onPremisesInfo property value.Gets the passwordPolicies property value.Gets the passwordProfile property value.Gets the preferredLanguage property value.Gets the primaryRole property value.Gets the provisionedPlans property value.Gets the refreshTokensValidFromDateTime property value.Gets the relatedContacts property value.Gets the residenceAddress property value.Gets the rubrics property value.Gets the schools property value.Gets the showInAddressList property value.Gets the student property value.Gets the surname property value.Gets the taughtClasses property value.Gets the teacher property value.Gets the usageLocation property value.getUser()
Gets the user property value.Gets the userPrincipalName property value.Gets the userType property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setAccountEnabled
(Boolean value) Sets the accountEnabled property value.void
setAssignedLicenses
(List<AssignedLicense> value) Sets the assignedLicenses property value.void
setAssignedPlans
(List<AssignedPlan> value) Sets the assignedPlans property value.void
setAssignments
(List<EducationAssignment> value) Sets the assignments property value.void
setBusinessPhones
(List<String> value) Sets the businessPhones property value.void
setClasses
(List<EducationClass> value) Sets the classes property value.void
setCreatedBy
(IdentitySet value) Sets the createdBy property value.void
setDepartment
(String value) Sets the department property value.void
setDisplayName
(String value) Sets the displayName property value.void
Sets the externalSource property value.void
setExternalSourceDetail
(String value) Sets the externalSourceDetail property value.void
setGivenName
(String value) Sets the givenName property value.void
Sets the mail property value.void
setMailingAddress
(PhysicalAddress value) Sets the mailingAddress property value.void
setMailNickname
(String value) Sets the mailNickname property value.void
setMiddleName
(String value) Sets the middleName property value.void
setMobilePhone
(String value) Sets the mobilePhone property value.void
setOfficeLocation
(String value) Sets the officeLocation property value.void
Sets the onPremisesInfo property value.void
setPasswordPolicies
(String value) Sets the passwordPolicies property value.void
Sets the passwordProfile property value.void
setPreferredLanguage
(String value) Sets the preferredLanguage property value.void
setPrimaryRole
(EducationUserRole value) Sets the primaryRole property value.void
setProvisionedPlans
(List<ProvisionedPlan> value) Sets the provisionedPlans property value.void
Sets the refreshTokensValidFromDateTime property value.void
setRelatedContacts
(List<RelatedContact> value) Sets the relatedContacts property value.void
Sets the residenceAddress property value.void
setRubrics
(List<EducationRubric> value) Sets the rubrics property value.void
setSchools
(List<EducationSchool> value) Sets the schools property value.void
setShowInAddressList
(Boolean value) Sets the showInAddressList property value.void
setStudent
(EducationStudent value) Sets the student property value.void
setSurname
(String value) Sets the surname property value.void
setTaughtClasses
(List<EducationClass> value) Sets the taughtClasses property value.void
setTeacher
(EducationTeacher value) Sets the teacher property value.void
setUsageLocation
(String value) Sets the usageLocation property value.void
Sets the user property value.void
setUserPrincipalName
(String value) Sets the userPrincipalName property value.void
setUserType
(String value) Sets the userType property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
EducationUser
public EducationUser()Instantiates a newEducationUser
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static EducationUser createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode
- The parse node to use to read the discriminator value and create the object- Returns:
- a
EducationUser
-
getAccountEnabled
Gets the accountEnabled property value. True if the account is enabled; otherwise, false. This property is required when a user is created. Supports $filter.- Returns:
- a
Boolean
-
getAssignedLicenses
Gets the assignedLicenses property value. The licenses that are assigned to the user. Not nullable.- Returns:
- a
List<AssignedLicense>
-
getAssignedPlans
Gets the assignedPlans property value. The plans that are assigned to the user. Read-only. Not nullable.- Returns:
- a
List<AssignedPlan>
-
getAssignments
Gets the assignments property value. Assignments belonging to the user.- Returns:
- a
List<EducationAssignment>
-
getBusinessPhones
Gets the businessPhones property value. The telephone numbers for the user. Note: Although this is a string collection, only one number can be set for this property. -
getClasses
Gets the classes property value. Classes to which the user belongs. Nullable.- Returns:
- a
List<EducationClass>
-
getCreatedBy
Gets the createdBy property value. The entity who created the user.- Returns:
- a
IdentitySet
-
getDepartment
Gets the department property value. The name for the department in which the user works. Supports $filter.- Returns:
- a
String
-
getDisplayName
Gets the displayName property value. The name displayed in the address book for the user. This is usually the combination of the user's first name, middle initial, and last name. This property is required when a user is created and it cannot be cleared during updates. Supports $filter and $orderby.- Returns:
- a
String
-
getExternalSource
Gets the externalSource property value. Where this user was created from. Possible values are: sis, manual.- Returns:
- a
EducationExternalSource
-
getExternalSourceDetail
Gets the externalSourceDetail property value. The name of the external source this resource was generated from.- Returns:
- a
String
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializers
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getGivenName
Gets the givenName property value. The given name (first name) of the user. Supports $filter.- Returns:
- a
String
-
getMail
Gets the mail property value. The SMTP address for the user, for example, [email protected]. Read-Only. Supports $filter.- Returns:
- a
String
-
getMailingAddress
Gets the mailingAddress property value. The mail address of the user.- Returns:
- a
PhysicalAddress
-
getMailNickname
Gets the mailNickname property value. The mail alias for the user. This property must be specified when a user is created. Supports $filter.- Returns:
- a
String
-
getMiddleName
Gets the middleName property value. The middle name of the user.- Returns:
- a
String
-
getMobilePhone
Gets the mobilePhone property value. The primary cellular telephone number for the user.- Returns:
- a
String
-
getOfficeLocation
Gets the officeLocation property value. The office location for the user.- Returns:
- a
String
-
getOnPremisesInfo
Gets the onPremisesInfo property value. Additional information used to associate the Microsoft Entra user with its Active Directory counterpart.- Returns:
- a
EducationOnPremisesInfo
-
getPasswordPolicies
Gets the passwordPolicies property value. Specifies password policies for the user. This value is an enumeration with one possible value being DisableStrongPassword, which allows weaker passwords than the default policy to be specified. DisablePasswordExpiration can also be specified. The two can be specified together; for example: DisablePasswordExpiration, DisableStrongPassword.- Returns:
- a
String
-
getPasswordProfile
Gets the passwordProfile property value. Specifies the password profile for the user. The profile contains the user's password. This property is required when a user is created. The password in the profile must satisfy minimum requirements as specified by the passwordPolicies property. By default, a strong password is required.- Returns:
- a
PasswordProfile
-
getPreferredLanguage
Gets the preferredLanguage property value. The preferred language for the user that should follow the ISO 639-1 code, for example, en-US.- Returns:
- a
String
-
getPrimaryRole
Gets the primaryRole property value. The primaryRole property- Returns:
- a
EducationUserRole
-
getProvisionedPlans
Gets the provisionedPlans property value. The plans that are provisioned for the user. Read-only. Not nullable.- Returns:
- a
List<ProvisionedPlan>
-
getRefreshTokensValidFromDateTime
Gets the refreshTokensValidFromDateTime property value. Any refresh tokens or sessions tokens (session cookies) issued before this time are invalid, and applications get an error when using an invalid refresh or sessions token to acquire a delegated access token (to access APIs such as Microsoft Graph). If this happens, the application needs to acquire a new refresh token by requesting the authorized endpoint. Returned only on $select. Read-only.- Returns:
- a
OffsetDateTime
-
getRelatedContacts
Gets the relatedContacts property value. Related records associated with the user. Read-only.- Returns:
- a
List<RelatedContact>
-
getResidenceAddress
Gets the residenceAddress property value. The address where the user lives.- Returns:
- a
PhysicalAddress
-
getRubrics
Gets the rubrics property value. When set, the grading rubric attached to the assignment.- Returns:
- a
List<EducationRubric>
-
getSchools
Gets the schools property value. Schools to which the user belongs. Nullable.- Returns:
- a
List<EducationSchool>
-
getShowInAddressList
Gets the showInAddressList property value. True if the Outlook Global Address List should contain this user; otherwise, false. If not set, this will be treated as true. For users invited through the invitation manager, this property will be set to false.- Returns:
- a
Boolean
-
getStudent
Gets the student property value. If the primary role is student, this block will contain student specific data.- Returns:
- a
EducationStudent
-
getSurname
Gets the surname property value. The user's surname (family name or last name). Supports $filter.- Returns:
- a
String
-
getTaughtClasses
Gets the taughtClasses property value. Classes for which the user is a teacher.- Returns:
- a
List<EducationClass>
-
getTeacher
Gets the teacher property value. If the primary role is teacher, this block will contain teacher specific data.- Returns:
- a
EducationTeacher
-
getUsageLocation
Gets the usageLocation property value. A two-letter country code (ISO standard 3166). Required for users who will be assigned licenses due to a legal requirement to check for availability of services in countries or regions. Examples include: US, JP, and GB. Not nullable. Supports $filter.- Returns:
- a
String
-
getUser
Gets the user property value. The directory user that corresponds to this user.- Returns:
- a
User
-
getUserPrincipalName
Gets the userPrincipalName property value. The user principal name (UPN) of the user. The UPN is an internet-style login name for the user based on the internet standard RFC 822. By convention, this should map to the user's email name. The general format is alias@domain, where domain must be present in the tenant's collection of verified domains. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of the organization. Supports $filter and $orderby.- Returns:
- a
String
-
getUserType
Gets the userType property value. A string value that can be used to classify user types in your directory, such as Member and Guest. Supports $filter.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setAccountEnabled
Sets the accountEnabled property value. True if the account is enabled; otherwise, false. This property is required when a user is created. Supports $filter.- Parameters:
value
- Value to set for the accountEnabled property.
-
setAssignedLicenses
Sets the assignedLicenses property value. The licenses that are assigned to the user. Not nullable.- Parameters:
value
- Value to set for the assignedLicenses property.
-
setAssignedPlans
Sets the assignedPlans property value. The plans that are assigned to the user. Read-only. Not nullable.- Parameters:
value
- Value to set for the assignedPlans property.
-
setAssignments
Sets the assignments property value. Assignments belonging to the user.- Parameters:
value
- Value to set for the assignments property.
-
setBusinessPhones
Sets the businessPhones property value. The telephone numbers for the user. Note: Although this is a string collection, only one number can be set for this property.- Parameters:
value
- Value to set for the businessPhones property.
-
setClasses
Sets the classes property value. Classes to which the user belongs. Nullable.- Parameters:
value
- Value to set for the classes property.
-
setCreatedBy
Sets the createdBy property value. The entity who created the user.- Parameters:
value
- Value to set for the createdBy property.
-
setDepartment
Sets the department property value. The name for the department in which the user works. Supports $filter.- Parameters:
value
- Value to set for the department property.
-
setDisplayName
Sets the displayName property value. The name displayed in the address book for the user. This is usually the combination of the user's first name, middle initial, and last name. This property is required when a user is created and it cannot be cleared during updates. Supports $filter and $orderby.- Parameters:
value
- Value to set for the displayName property.
-
setExternalSource
Sets the externalSource property value. Where this user was created from. Possible values are: sis, manual.- Parameters:
value
- Value to set for the externalSource property.
-
setExternalSourceDetail
Sets the externalSourceDetail property value. The name of the external source this resource was generated from.- Parameters:
value
- Value to set for the externalSourceDetail property.
-
setGivenName
Sets the givenName property value. The given name (first name) of the user. Supports $filter.- Parameters:
value
- Value to set for the givenName property.
-
setMail
Sets the mail property value. The SMTP address for the user, for example, [email protected]. Read-Only. Supports $filter.- Parameters:
value
- Value to set for the mail property.
-
setMailingAddress
Sets the mailingAddress property value. The mail address of the user.- Parameters:
value
- Value to set for the mailingAddress property.
-
setMailNickname
Sets the mailNickname property value. The mail alias for the user. This property must be specified when a user is created. Supports $filter.- Parameters:
value
- Value to set for the mailNickname property.
-
setMiddleName
Sets the middleName property value. The middle name of the user.- Parameters:
value
- Value to set for the middleName property.
-
setMobilePhone
Sets the mobilePhone property value. The primary cellular telephone number for the user.- Parameters:
value
- Value to set for the mobilePhone property.
-
setOfficeLocation
Sets the officeLocation property value. The office location for the user.- Parameters:
value
- Value to set for the officeLocation property.
-
setOnPremisesInfo
Sets the onPremisesInfo property value. Additional information used to associate the Microsoft Entra user with its Active Directory counterpart.- Parameters:
value
- Value to set for the onPremisesInfo property.
-
setPasswordPolicies
Sets the passwordPolicies property value. Specifies password policies for the user. This value is an enumeration with one possible value being DisableStrongPassword, which allows weaker passwords than the default policy to be specified. DisablePasswordExpiration can also be specified. The two can be specified together; for example: DisablePasswordExpiration, DisableStrongPassword.- Parameters:
value
- Value to set for the passwordPolicies property.
-
setPasswordProfile
Sets the passwordProfile property value. Specifies the password profile for the user. The profile contains the user's password. This property is required when a user is created. The password in the profile must satisfy minimum requirements as specified by the passwordPolicies property. By default, a strong password is required.- Parameters:
value
- Value to set for the passwordProfile property.
-
setPreferredLanguage
Sets the preferredLanguage property value. The preferred language for the user that should follow the ISO 639-1 code, for example, en-US.- Parameters:
value
- Value to set for the preferredLanguage property.
-
setPrimaryRole
Sets the primaryRole property value. The primaryRole property- Parameters:
value
- Value to set for the primaryRole property.
-
setProvisionedPlans
Sets the provisionedPlans property value. The plans that are provisioned for the user. Read-only. Not nullable.- Parameters:
value
- Value to set for the provisionedPlans property.
-
setRefreshTokensValidFromDateTime
Sets the refreshTokensValidFromDateTime property value. Any refresh tokens or sessions tokens (session cookies) issued before this time are invalid, and applications get an error when using an invalid refresh or sessions token to acquire a delegated access token (to access APIs such as Microsoft Graph). If this happens, the application needs to acquire a new refresh token by requesting the authorized endpoint. Returned only on $select. Read-only.- Parameters:
value
- Value to set for the refreshTokensValidFromDateTime property.
-
setRelatedContacts
Sets the relatedContacts property value. Related records associated with the user. Read-only.- Parameters:
value
- Value to set for the relatedContacts property.
-
setResidenceAddress
Sets the residenceAddress property value. The address where the user lives.- Parameters:
value
- Value to set for the residenceAddress property.
-
setRubrics
Sets the rubrics property value. When set, the grading rubric attached to the assignment.- Parameters:
value
- Value to set for the rubrics property.
-
setSchools
Sets the schools property value. Schools to which the user belongs. Nullable.- Parameters:
value
- Value to set for the schools property.
-
setShowInAddressList
Sets the showInAddressList property value. True if the Outlook Global Address List should contain this user; otherwise, false. If not set, this will be treated as true. For users invited through the invitation manager, this property will be set to false.- Parameters:
value
- Value to set for the showInAddressList property.
-
setStudent
Sets the student property value. If the primary role is student, this block will contain student specific data.- Parameters:
value
- Value to set for the student property.
-
setSurname
Sets the surname property value. The user's surname (family name or last name). Supports $filter.- Parameters:
value
- Value to set for the surname property.
-
setTaughtClasses
Sets the taughtClasses property value. Classes for which the user is a teacher.- Parameters:
value
- Value to set for the taughtClasses property.
-
setTeacher
Sets the teacher property value. If the primary role is teacher, this block will contain teacher specific data.- Parameters:
value
- Value to set for the teacher property.
-
setUsageLocation
Sets the usageLocation property value. A two-letter country code (ISO standard 3166). Required for users who will be assigned licenses due to a legal requirement to check for availability of services in countries or regions. Examples include: US, JP, and GB. Not nullable. Supports $filter.- Parameters:
value
- Value to set for the usageLocation property.
-
setUser
Sets the user property value. The directory user that corresponds to this user.- Parameters:
value
- Value to set for the user property.
-
setUserPrincipalName
Sets the userPrincipalName property value. The user principal name (UPN) of the user. The UPN is an internet-style login name for the user based on the internet standard RFC 822. By convention, this should map to the user's email name. The general format is alias@domain, where domain must be present in the tenant's collection of verified domains. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of the organization. Supports $filter and $orderby.- Parameters:
value
- Value to set for the userPrincipalName property.
-
setUserType
Sets the userType property value. A string value that can be used to classify user types in your directory, such as Member and Guest. Supports $filter.- Parameters:
value
- Value to set for the userType property.
-