Package com.microsoft.graph.models
Class Training
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.Training
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class Training
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 Training
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the availabilityStatus property value.Gets the createdBy property value.Gets the createdDateTime property value.Gets the description property value.Gets the displayName property value.Gets the durationInMinutes property value.The deserialization information for the current modelGets the hasEvaluation property value.Gets the languageDetails property value.Gets the lastModifiedBy property value.Gets the lastModifiedDateTime property value.Gets the source property value.Gets the supportedLocales property value.getTags()
Gets the tags property value.getType()
Gets the type property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
Sets the availabilityStatus property value.void
setCreatedBy
(EmailIdentity value) Sets the createdBy property value.void
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
setDescription
(String value) Sets the description property value.void
setDisplayName
(String value) Sets the displayName property value.void
setDurationInMinutes
(Integer value) Sets the durationInMinutes property value.void
setHasEvaluation
(Boolean value) Sets the hasEvaluation property value.void
Sets the languageDetails property value.void
setLastModifiedBy
(EmailIdentity value) Sets the lastModifiedBy property value.void
Sets the lastModifiedDateTime property value.void
setSource
(SimulationContentSource value) Sets the source property value.void
setSupportedLocales
(List<String> value) Sets the supportedLocales property value.void
Sets the tags property value.void
setType
(TrainingType value) Sets the type property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Training
public Training()Instantiates a newTraining
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static Training 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
Training
-
getAvailabilityStatus
Gets the availabilityStatus property value. Training availability status. Possible values are: unknown, notAvailable, available, archive, delete, unknownFutureValue.- Returns:
- a
TrainingAvailabilityStatus
-
getCreatedBy
Gets the createdBy property value. Identity of the user who created the training.- Returns:
- a
EmailIdentity
-
getCreatedDateTime
Gets the createdDateTime property value. Date and time when the training was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.- Returns:
- a
OffsetDateTime
-
getDescription
Gets the description property value. The description for the training.- Returns:
- a
String
-
getDisplayName
Gets the displayName property value. The display name for the training.- Returns:
- a
String
-
getDurationInMinutes
Gets the durationInMinutes property value. Training duration.- Returns:
- a
Integer
-
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>>
-
getHasEvaluation
Gets the hasEvaluation property value. Indicates whether the training has any evaluation.- Returns:
- a
Boolean
-
getLanguageDetails
Gets the languageDetails property value. Language specific details on a training.- Returns:
- a
List<TrainingLanguageDetail>
-
getLastModifiedBy
Gets the lastModifiedBy property value. Identity of the user who last modified the training.- Returns:
- a
EmailIdentity
-
getLastModifiedDateTime
Gets the lastModifiedDateTime property value. Date and time when the training was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.- Returns:
- a
OffsetDateTime
-
getSource
Gets the source property value. Training content source. Possible values are: unknown, global, tenant, unknownFutureValue.- Returns:
- a
SimulationContentSource
-
getSupportedLocales
Gets the supportedLocales property value. Supported locales for content for the associated training. -
getTags
Gets the tags property value. Training tags. -
getType
Gets the type property value. The type of training. Possible values are: unknown, phishing, unknownFutureValue.- Returns:
- a
TrainingType
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setAvailabilityStatus
Sets the availabilityStatus property value. Training availability status. Possible values are: unknown, notAvailable, available, archive, delete, unknownFutureValue.- Parameters:
value
- Value to set for the availabilityStatus property.
-
setCreatedBy
Sets the createdBy property value. Identity of the user who created the training.- Parameters:
value
- Value to set for the createdBy property.
-
setCreatedDateTime
Sets the createdDateTime property value. Date and time when the training was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.- Parameters:
value
- Value to set for the createdDateTime property.
-
setDescription
Sets the description property value. The description for the training.- Parameters:
value
- Value to set for the description property.
-
setDisplayName
Sets the displayName property value. The display name for the training.- Parameters:
value
- Value to set for the displayName property.
-
setDurationInMinutes
Sets the durationInMinutes property value. Training duration.- Parameters:
value
- Value to set for the durationInMinutes property.
-
setHasEvaluation
Sets the hasEvaluation property value. Indicates whether the training has any evaluation.- Parameters:
value
- Value to set for the hasEvaluation property.
-
setLanguageDetails
Sets the languageDetails property value. Language specific details on a training.- Parameters:
value
- Value to set for the languageDetails property.
-
setLastModifiedBy
Sets the lastModifiedBy property value. Identity of the user who last modified the training.- Parameters:
value
- Value to set for the lastModifiedBy property.
-
setLastModifiedDateTime
Sets the lastModifiedDateTime property value. Date and time when the training was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.- Parameters:
value
- Value to set for the lastModifiedDateTime property.
-
setSource
Sets the source property value. Training content source. Possible values are: unknown, global, tenant, unknownFutureValue.- Parameters:
value
- Value to set for the source property.
-
setSupportedLocales
Sets the supportedLocales property value. Supported locales for content for the associated training.- Parameters:
value
- Value to set for the supportedLocales property.
-
setTags
Sets the tags property value. Training tags.- Parameters:
value
- Value to set for the tags property.
-
setType
Sets the type property value. The type of training. Possible values are: unknown, phishing, unknownFutureValue.- Parameters:
value
- Value to set for the type property.
-