All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class Qna extends SearchAnswer implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • Qna

      public Qna()
      Instantiates a new Qna and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static Qna 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 Qna
    • getAvailabilityEndDateTime

      @Nullable public OffsetDateTime getAvailabilityEndDateTime()
      Gets the availabilityEndDateTime property value. Date and time when the QnA stops appearing as a search result. Set as null for always available. 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
    • getAvailabilityStartDateTime

      @Nullable public OffsetDateTime getAvailabilityStartDateTime()
      Gets the availabilityStartDateTime property value. Date and time when the QnA starts to appear as a search result. Set as null for always available. 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
    • 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 SearchAnswer
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getGroupIds

      @Nullable public List<String> getGroupIds()
      Gets the groupIds property value. The list of security groups that are able to view this QnA.
      Returns:
      a List<String>
    • getIsSuggested

      @Nullable public Boolean getIsSuggested()
      Gets the isSuggested property value. True if a user or Microsoft suggested this QnA to the admin. Read-only.
      Returns:
      a Boolean
    • getKeywords

      @Nullable public AnswerKeyword getKeywords()
      Gets the keywords property value. Keywords that trigger this QnA to appear in search results.
      Returns:
      a AnswerKeyword
    • getLanguageTags

      @Nullable public List<String> getLanguageTags()
      Gets the languageTags property value. A list of geographically specific language names in which this QnA can be viewed. Each language tag value follows the pattern {language}-{region}. For example, en-us is English as used in the United States. For the list of possible values, see Supported language tags.
      Returns:
      a List<String>
    • getPlatforms

      @Nullable public List<DevicePlatformType> getPlatforms()
      Gets the platforms property value. List of devices and operating systems that are able to view this QnA. Possible values are: android, androidForWork, ios, macOS, windowsPhone81, windowsPhone81AndLater, windows10AndLater, androidWorkProfile, unknown, androidASOP, androidMobileApplicationManagement, iOSMobileApplicationManagement, unknownFutureValue.
      Returns:
      a List<DevicePlatformType>
    • getState

      @Nullable public AnswerState getState()
      Gets the state property value. The state property
      Returns:
      a AnswerState
    • getTargetedVariations

      @Nullable public List<AnswerVariant> getTargetedVariations()
      Gets the targetedVariations property value. Variations of a QnA for different countries/regions or devices. Use when you need to show different content to users based on their device, country/region, or both. The date and group settings apply to all variations.
      Returns:
      a List<AnswerVariant>
    • 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 SearchAnswer
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAvailabilityEndDateTime

      public void setAvailabilityEndDateTime(@Nullable OffsetDateTime value)
      Sets the availabilityEndDateTime property value. Date and time when the QnA stops appearing as a search result. Set as null for always available. 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 availabilityEndDateTime property.
    • setAvailabilityStartDateTime

      public void setAvailabilityStartDateTime(@Nullable OffsetDateTime value)
      Sets the availabilityStartDateTime property value. Date and time when the QnA starts to appear as a search result. Set as null for always available. 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 availabilityStartDateTime property.
    • setGroupIds

      public void setGroupIds(@Nullable List<String> value)
      Sets the groupIds property value. The list of security groups that are able to view this QnA.
      Parameters:
      value - Value to set for the groupIds property.
    • setIsSuggested

      public void setIsSuggested(@Nullable Boolean value)
      Sets the isSuggested property value. True if a user or Microsoft suggested this QnA to the admin. Read-only.
      Parameters:
      value - Value to set for the isSuggested property.
    • setKeywords

      public void setKeywords(@Nullable AnswerKeyword value)
      Sets the keywords property value. Keywords that trigger this QnA to appear in search results.
      Parameters:
      value - Value to set for the keywords property.
    • setLanguageTags

      public void setLanguageTags(@Nullable List<String> value)
      Sets the languageTags property value. A list of geographically specific language names in which this QnA can be viewed. Each language tag value follows the pattern {language}-{region}. For example, en-us is English as used in the United States. For the list of possible values, see Supported language tags.
      Parameters:
      value - Value to set for the languageTags property.
    • setPlatforms

      public void setPlatforms(@Nullable List<DevicePlatformType> value)
      Sets the platforms property value. List of devices and operating systems that are able to view this QnA. Possible values are: android, androidForWork, ios, macOS, windowsPhone81, windowsPhone81AndLater, windows10AndLater, androidWorkProfile, unknown, androidASOP, androidMobileApplicationManagement, iOSMobileApplicationManagement, unknownFutureValue.
      Parameters:
      value - Value to set for the platforms property.
    • setState

      public void setState(@Nullable AnswerState value)
      Sets the state property value. The state property
      Parameters:
      value - Value to set for the state property.
    • setTargetedVariations

      public void setTargetedVariations(@Nullable List<AnswerVariant> value)
      Sets the targetedVariations property value. Variations of a QnA for different countries/regions or devices. Use when you need to show different content to users based on their device, country/region, or both. The date and group settings apply to all variations.
      Parameters:
      value - Value to set for the targetedVariations property.