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
  • Constructor Details

    • LearningCourseActivity

      public LearningCourseActivity()
      Instantiates a new LearningCourseActivity 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

      @Nullable public OffsetDateTime getCompletedDateTime()
      Gets the completedDateTime property value. Date and time when the assignment was completed. Optional.
      Returns:
      a OffsetDateTime
    • getCompletionPercentage

      @Nullable public Integer getCompletionPercentage()
      Gets the completionPercentage property value. The percentage completion value of the course activity. Optional.
      Returns:
      a Integer
    • getExternalcourseActivityId

      @Nullable public String 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 interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getLearnerUserId

      @Nullable public String getLearnerUserId()
      Gets the learnerUserId property value. The user ID of the learner to whom the activity is assigned. Required.
      Returns:
      a String
    • getLearningContentId

      @Nullable public String getLearningContentId()
      Gets the learningContentId property value. The ID of the learning content created in Viva Learning. Required.
      Returns:
      a String
    • getLearningProviderId

      @Nullable public String getLearningProviderId()
      Gets the learningProviderId property value. The registration ID of the provider. Required.
      Returns:
      a String
    • getStatus

      @Nullable public CourseStatus 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
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setCompletedDateTime

      public void setCompletedDateTime(@Nullable OffsetDateTime value)
      Sets the completedDateTime property value. Date and time when the assignment was completed. Optional.
      Parameters:
      value - Value to set for the completedDateTime property.
    • setCompletionPercentage

      public void setCompletionPercentage(@Nullable Integer value)
      Sets the completionPercentage property value. The percentage completion value of the course activity. Optional.
      Parameters:
      value - Value to set for the completionPercentage property.
    • setExternalcourseActivityId

      public void setExternalcourseActivityId(@Nullable String value)
      Sets the externalcourseActivityId property value. The externalcourseActivityId property
      Parameters:
      value - Value to set for the externalcourseActivityId property.
    • setLearnerUserId

      public void setLearnerUserId(@Nullable String value)
      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

      public void setLearningContentId(@Nullable String value)
      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

      public void setLearningProviderId(@Nullable String value)
      Sets the learningProviderId property value. The registration ID of the provider. Required.
      Parameters:
      value - Value to set for the learningProviderId property.
    • setStatus

      public void setStatus(@Nullable CourseStatus value)
      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.