Package com.microsoft.graph.models
Class LearningContent
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.LearningContent
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class LearningContent
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 LearningContent
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the additionalTags property value.Gets the contentWebUrl property value.Gets the contributors property value.Gets the createdDateTime property value.Gets the description property value.com.microsoft.kiota.PeriodAndDuration
Gets the duration property value.Gets the externalId property value.The deserialization information for the current modelGets the format property value.Gets the isActive property value.Gets the isPremium property value.Gets the isSearchable property value.Gets the languageTag property value.Gets the lastModifiedDateTime property value.getLevel()
Gets the level property value.Gets the numberOfPages property value.Gets the skillTags property value.Gets the sourceName property value.Gets the thumbnailWebUrl property value.getTitle()
Gets the title property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setAdditionalTags
(List<String> value) Sets the additionalTags property value.void
setContentWebUrl
(String value) Sets the contentWebUrl property value.void
setContributors
(List<String> value) Sets the contributors property value.void
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
setDescription
(String value) Sets the description property value.void
setDuration
(com.microsoft.kiota.PeriodAndDuration value) Sets the duration property value.void
setExternalId
(String value) Sets the externalId property value.void
Sets the format property value.void
setIsActive
(Boolean value) Sets the isActive property value.void
setIsPremium
(Boolean value) Sets the isPremium property value.void
setIsSearchable
(Boolean value) Sets the isSearchable property value.void
setLanguageTag
(String value) Sets the languageTag property value.void
Sets the lastModifiedDateTime property value.void
Sets the level property value.void
setNumberOfPages
(Integer value) Sets the numberOfPages property value.void
setSkillTags
(List<String> value) Sets the skillTags property value.void
setSourceName
(String value) Sets the sourceName property value.void
setThumbnailWebUrl
(String value) Sets the thumbnailWebUrl property value.void
Sets the title property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
LearningContent
public LearningContent()Instantiates a newLearningContent
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static LearningContent 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
LearningContent
-
getAdditionalTags
Gets the additionalTags property value. Keywords, topics, and other tags associated with the learning content. Optional. -
getContentWebUrl
Gets the contentWebUrl property value. The content web URL for the learning content. Required.- Returns:
- a
String
-
getContributors
Gets the contributors property value. The authors, creators, or contributors of the learning content. Optional. -
getCreatedDateTime
Gets the createdDateTime property value. The date and time when the learning content was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional.- Returns:
- a
OffsetDateTime
-
getDescription
Gets the description property value. The description or summary for the learning content. Optional.- Returns:
- a
String
-
getDuration
@Nullable public com.microsoft.kiota.PeriodAndDuration getDuration()Gets the duration property value. The duration of the learning content in seconds. The value is represented in ISO 8601 format for durations. Optional.- Returns:
- a
PeriodAndDuration
-
getExternalId
Gets the externalId property value. Unique external content ID for the learning content. Required.- 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>>
-
getFormat
Gets the format property value. The format of the learning content. For example, Course, Video, Book, Book Summary, Audiobook Summary. Optional.- Returns:
- a
String
-
getIsActive
Gets the isActive property value. Indicates whether the content is active or not. Inactive content doesn't show up in the UI. The default value is true. Optional.- Returns:
- a
Boolean
-
getIsPremium
Gets the isPremium property value. Indicates whether the learning content requires the user to sign-in on the learning provider platform or not. The default value is false. Optional.- Returns:
- a
Boolean
-
getIsSearchable
Gets the isSearchable property value. Indicates whether the learning content is searchable or not. The default value is true. Optional.- Returns:
- a
Boolean
-
getLanguageTag
Gets the languageTag property value. The language of the learning content, for example, en-us or fr-fr. Required.- Returns:
- a
String
-
getLastModifiedDateTime
Gets the lastModifiedDateTime property value. The date and time when the learning content was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional.- Returns:
- a
OffsetDateTime
-
getLevel
Gets the level property value. The difficulty level of the learning content. Possible values are: Beginner, Intermediate, Advanced, unknownFutureValue. Optional.- Returns:
- a
Level
-
getNumberOfPages
Gets the numberOfPages property value. The number of pages of the learning content, for example, 9. Optional.- Returns:
- a
Integer
-
getSkillTags
Gets the skillTags property value. The skills tags associated with the learning content. Optional. -
getSourceName
Gets the sourceName property value. The source name of the learning content, such as LinkedIn Learning or Coursera. Optional.- Returns:
- a
String
-
getThumbnailWebUrl
Gets the thumbnailWebUrl property value. The URL of learning content thumbnail image. Optional.- Returns:
- a
String
-
getTitle
Gets the title property value. The title of the learning content. Required.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setAdditionalTags
Sets the additionalTags property value. Keywords, topics, and other tags associated with the learning content. Optional.- Parameters:
value
- Value to set for the additionalTags property.
-
setContentWebUrl
Sets the contentWebUrl property value. The content web URL for the learning content. Required.- Parameters:
value
- Value to set for the contentWebUrl property.
-
setContributors
Sets the contributors property value. The authors, creators, or contributors of the learning content. Optional.- Parameters:
value
- Value to set for the contributors property.
-
setCreatedDateTime
Sets the createdDateTime property value. The date and time when the learning content was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional.- Parameters:
value
- Value to set for the createdDateTime property.
-
setDescription
Sets the description property value. The description or summary for the learning content. Optional.- Parameters:
value
- Value to set for the description property.
-
setDuration
public void setDuration(@Nullable com.microsoft.kiota.PeriodAndDuration value) Sets the duration property value. The duration of the learning content in seconds. The value is represented in ISO 8601 format for durations. Optional.- Parameters:
value
- Value to set for the duration property.
-
setExternalId
Sets the externalId property value. Unique external content ID for the learning content. Required.- Parameters:
value
- Value to set for the externalId property.
-
setFormat
Sets the format property value. The format of the learning content. For example, Course, Video, Book, Book Summary, Audiobook Summary. Optional.- Parameters:
value
- Value to set for the format property.
-
setIsActive
Sets the isActive property value. Indicates whether the content is active or not. Inactive content doesn't show up in the UI. The default value is true. Optional.- Parameters:
value
- Value to set for the isActive property.
-
setIsPremium
Sets the isPremium property value. Indicates whether the learning content requires the user to sign-in on the learning provider platform or not. The default value is false. Optional.- Parameters:
value
- Value to set for the isPremium property.
-
setIsSearchable
Sets the isSearchable property value. Indicates whether the learning content is searchable or not. The default value is true. Optional.- Parameters:
value
- Value to set for the isSearchable property.
-
setLanguageTag
Sets the languageTag property value. The language of the learning content, for example, en-us or fr-fr. Required.- Parameters:
value
- Value to set for the languageTag property.
-
setLastModifiedDateTime
Sets the lastModifiedDateTime property value. The date and time when the learning content was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional.- Parameters:
value
- Value to set for the lastModifiedDateTime property.
-
setLevel
Sets the level property value. The difficulty level of the learning content. Possible values are: Beginner, Intermediate, Advanced, unknownFutureValue. Optional.- Parameters:
value
- Value to set for the level property.
-
setNumberOfPages
Sets the numberOfPages property value. The number of pages of the learning content, for example, 9. Optional.- Parameters:
value
- Value to set for the numberOfPages property.
-
setSkillTags
Sets the skillTags property value. The skills tags associated with the learning content. Optional.- Parameters:
value
- Value to set for the skillTags property.
-
setSourceName
Sets the sourceName property value. The source name of the learning content, such as LinkedIn Learning or Coursera. Optional.- Parameters:
value
- Value to set for the sourceName property.
-
setThumbnailWebUrl
Sets the thumbnailWebUrl property value. The URL of learning content thumbnail image. Optional.- Parameters:
value
- Value to set for the thumbnailWebUrl property.
-
setTitle
Sets the title property value. The title of the learning content. Required.- Parameters:
value
- Value to set for the title property.
-