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

    • Training

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

      @Nullable public TrainingAvailabilityStatus getAvailabilityStatus()
      Gets the availabilityStatus property value. Training availability status. Possible values are: unknown, notAvailable, available, archive, delete, unknownFutureValue.
      Returns:
      a TrainingAvailabilityStatus
    • getCreatedBy

      @Nullable public EmailIdentity getCreatedBy()
      Gets the createdBy property value. Identity of the user who created the training.
      Returns:
      a EmailIdentity
    • getCreatedDateTime

      @Nullable public OffsetDateTime 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

      @Nullable public String getDescription()
      Gets the description property value. The description for the training.
      Returns:
      a String
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. The display name for the training.
      Returns:
      a String
    • getDurationInMinutes

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

      @Nullable public Boolean getHasEvaluation()
      Gets the hasEvaluation property value. Indicates whether the training has any evaluation.
      Returns:
      a Boolean
    • getLanguageDetails

      @Nullable public List<TrainingLanguageDetail> getLanguageDetails()
      Gets the languageDetails property value. Language specific details on a training.
      Returns:
      a List<TrainingLanguageDetail>
    • getLastModifiedBy

      @Nullable public EmailIdentity getLastModifiedBy()
      Gets the lastModifiedBy property value. Identity of the user who last modified the training.
      Returns:
      a EmailIdentity
    • getLastModifiedDateTime

      @Nullable public OffsetDateTime 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

      @Nullable public SimulationContentSource getSource()
      Gets the source property value. Training content source. Possible values are: unknown, global, tenant, unknownFutureValue.
      Returns:
      a SimulationContentSource
    • getSupportedLocales

      @Nullable public List<String> getSupportedLocales()
      Gets the supportedLocales property value. Supported locales for content for the associated training.
      Returns:
      a List<String>
    • getTags

      @Nullable public List<String> getTags()
      Gets the tags property value. Training tags.
      Returns:
      a List<String>
    • getType

      @Nullable public TrainingType 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
      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
    • setAvailabilityStatus

      public void setAvailabilityStatus(@Nullable TrainingAvailabilityStatus value)
      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

      public void setCreatedBy(@Nullable EmailIdentity value)
      Sets the createdBy property value. Identity of the user who created the training.
      Parameters:
      value - Value to set for the createdBy property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      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

      public void setDescription(@Nullable String value)
      Sets the description property value. The description for the training.
      Parameters:
      value - Value to set for the description property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. The display name for the training.
      Parameters:
      value - Value to set for the displayName property.
    • setDurationInMinutes

      public void setDurationInMinutes(@Nullable Integer value)
      Sets the durationInMinutes property value. Training duration.
      Parameters:
      value - Value to set for the durationInMinutes property.
    • setHasEvaluation

      public void setHasEvaluation(@Nullable Boolean value)
      Sets the hasEvaluation property value. Indicates whether the training has any evaluation.
      Parameters:
      value - Value to set for the hasEvaluation property.
    • setLanguageDetails

      public void setLanguageDetails(@Nullable List<TrainingLanguageDetail> value)
      Sets the languageDetails property value. Language specific details on a training.
      Parameters:
      value - Value to set for the languageDetails property.
    • setLastModifiedBy

      public void setLastModifiedBy(@Nullable EmailIdentity value)
      Sets the lastModifiedBy property value. Identity of the user who last modified the training.
      Parameters:
      value - Value to set for the lastModifiedBy property.
    • setLastModifiedDateTime

      public void setLastModifiedDateTime(@Nullable OffsetDateTime value)
      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

      public void setSource(@Nullable SimulationContentSource value)
      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

      public void setSupportedLocales(@Nullable List<String> value)
      Sets the supportedLocales property value. Supported locales for content for the associated training.
      Parameters:
      value - Value to set for the supportedLocales property.
    • setTags

      public void setTags(@Nullable List<String> value)
      Sets the tags property value. Training tags.
      Parameters:
      value - Value to set for the tags property.
    • setType

      public void setType(@Nullable TrainingType value)
      Sets the type property value. The type of training. Possible values are: unknown, phishing, unknownFutureValue.
      Parameters:
      value - Value to set for the type property.