Package com.microsoft.graph.models
Class LearningCourseActivity
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.LearningCourseActivity
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
- Direct Known Subclasses:
LearningAssignment
,LearningSelfInitiatedCourse
@Generated("com.microsoft.kiota")
public class LearningCourseActivity
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 LearningCourseActivity
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the completedDateTime property value.Gets the completionPercentage property value.Gets the externalcourseActivityId property value.The deserialization information for the current modelGets the learnerUserId property value.Gets the learningContentId property value.Gets the learningProviderId property value.Gets the status property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
Sets the completedDateTime property value.void
setCompletionPercentage
(Integer value) Sets the completionPercentage property value.void
Sets the externalcourseActivityId property value.void
setLearnerUserId
(String value) Sets the learnerUserId property value.void
setLearningContentId
(String value) Sets the learningContentId property value.void
setLearningProviderId
(String value) Sets the learningProviderId property value.void
setStatus
(CourseStatus value) Sets the status property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
LearningCourseActivity
public LearningCourseActivity()Instantiates a newLearningCourseActivity
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static LearningCourseActivity 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
LearningCourseActivity
-
getCompletedDateTime
Gets the completedDateTime property value. Date and time when the assignment was completed. Optional.- Returns:
- a
OffsetDateTime
-
getCompletionPercentage
Gets the completionPercentage property value. The percentage completion value of the course activity. Optional.- Returns:
- a
Integer
-
getExternalcourseActivityId
Gets the externalcourseActivityId property value. The externalcourseActivityId property- 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>>
-
getLearnerUserId
Gets the learnerUserId property value. The user ID of the learner to whom the activity is assigned. Required.- Returns:
- a
String
-
getLearningContentId
Gets the learningContentId property value. The ID of the learning content created in Viva Learning. Required.- Returns:
- a
String
-
getLearningProviderId
Gets the learningProviderId property value. The registration ID of the provider. Required.- Returns:
- a
String
-
getStatus
Gets the status property value. The status of the course activity. Possible values are: notStarted, inProgress, completed. Required.- Returns:
- a
CourseStatus
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setCompletedDateTime
Sets the completedDateTime property value. Date and time when the assignment was completed. Optional.- Parameters:
value
- Value to set for the completedDateTime property.
-
setCompletionPercentage
Sets the completionPercentage property value. The percentage completion value of the course activity. Optional.- Parameters:
value
- Value to set for the completionPercentage property.
-
setExternalcourseActivityId
Sets the externalcourseActivityId property value. The externalcourseActivityId property- Parameters:
value
- Value to set for the externalcourseActivityId property.
-
setLearnerUserId
Sets the learnerUserId property value. The user ID of the learner to whom the activity is assigned. Required.- Parameters:
value
- Value to set for the learnerUserId property.
-
setLearningContentId
Sets the learningContentId property value. The ID of the learning content created in Viva Learning. Required.- Parameters:
value
- Value to set for the learningContentId property.
-
setLearningProviderId
Sets the learningProviderId property value. The registration ID of the provider. Required.- Parameters:
value
- Value to set for the learningProviderId property.
-
setStatus
Sets the status property value. The status of the course activity. Possible values are: notStarted, inProgress, completed. Required.- Parameters:
value
- Value to set for the status property.
-