Package odata.msgraph.client.entity
Class LearningAssignment
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.LearningCourseActivity
-
- odata.msgraph.client.entity.LearningAssignment
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class LearningAssignment extends LearningCourseActivity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLearningAssignment.Builder
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimeassignedDateTimeprotected StringassignerUserIdprotected AssignmentTypeassignmentTypeprotected DateTimeTimeZonedueDateTimeprotected ItemBodynotes-
Fields inherited from class odata.msgraph.client.entity.LearningCourseActivity
completedDateTime, completionPercentage, externalcourseActivityId, learnerUserId, learningContentId, learningProviderId, status
-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLearningAssignment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LearningAssignment.BuilderbuilderLearningAssignment()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<OffsetDateTime>getAssignedDateTime()Optional<String>getAssignerUserId()Optional<AssignmentType>getAssignmentType()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<DateTimeTimeZone>getDueDateTime()Optional<ItemBody>getNotes()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()LearningAssignmentpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)LearningAssignmentput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()LearningAssignmentwithAssignedDateTime(OffsetDateTime assignedDateTime)LearningAssignmentwithAssignerUserId(String assignerUserId)LearningAssignmentwithAssignmentType(AssignmentType assignmentType)LearningAssignmentwithDueDateTime(DateTimeTimeZone dueDateTime)LearningAssignmentwithNotes(ItemBody notes)LearningAssignmentwithUnmappedField(String name, Object value)-
Methods inherited from class odata.msgraph.client.entity.LearningCourseActivity
builderLearningCourseActivity, getCompletedDateTime, getCompletionPercentage, getExternalcourseActivityId, getLearnerUserId, getLearningContentId, getLearningProviderId, getStatus, withCompletedDateTime, withCompletionPercentage, withExternalcourseActivityId, withLearnerUserId, withLearningContentId, withLearningProviderId, withStatus
-
-
-
-
Field Detail
-
assignedDateTime
protected OffsetDateTime assignedDateTime
-
assignerUserId
protected String assignerUserId
-
assignmentType
protected AssignmentType assignmentType
-
dueDateTime
protected DateTimeTimeZone dueDateTime
-
notes
protected ItemBody notes
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classLearningCourseActivity
-
builderLearningAssignment
public static LearningAssignment.Builder builderLearningAssignment()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classLearningCourseActivity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classLearningCourseActivity
-
getAssignedDateTime
public Optional<OffsetDateTime> getAssignedDateTime()
-
withAssignedDateTime
public LearningAssignment withAssignedDateTime(OffsetDateTime assignedDateTime)
-
withAssignerUserId
public LearningAssignment withAssignerUserId(String assignerUserId)
-
getAssignmentType
public Optional<AssignmentType> getAssignmentType()
-
withAssignmentType
public LearningAssignment withAssignmentType(AssignmentType assignmentType)
-
getDueDateTime
public Optional<DateTimeTimeZone> getDueDateTime()
-
withDueDateTime
public LearningAssignment withDueDateTime(DateTimeTimeZone dueDateTime)
-
withNotes
public LearningAssignment withNotes(ItemBody notes)
-
withUnmappedField
public LearningAssignment withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classLearningCourseActivity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classLearningCourseActivity
-
patch
public LearningAssignment patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classLearningCourseActivity- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public LearningAssignment put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classLearningCourseActivity- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classLearningCourseActivity
-
-