Class Qna
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.search.SearchAnswer
com.microsoft.graph.models.search.Qna
- 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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QnacreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the availabilityEndDateTime property value.Gets the availabilityStartDateTime property value.The deserialization information for the current modelGets the groupIds property value.Gets the isSuggested property value.Gets the keywords property value.Gets the languageTags property value.Gets the platforms property value.getState()Gets the state property value.Gets the targetedVariations property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidSets the availabilityEndDateTime property value.voidSets the availabilityStartDateTime property value.voidsetGroupIds(List<String> value) Sets the groupIds property value.voidsetIsSuggested(Boolean value) Sets the isSuggested property value.voidsetKeywords(AnswerKeyword value) Sets the keywords property value.voidsetLanguageTags(List<String> value) Sets the languageTags property value.voidsetPlatforms(List<DevicePlatformType> value) Sets the platforms property value.voidsetState(AnswerState value) Sets the state property value.voidsetTargetedVariations(List<AnswerVariant> value) Sets the targetedVariations property value.Methods inherited from class com.microsoft.graph.models.search.SearchAnswer
getDescription, getDisplayName, getLastModifiedBy, getLastModifiedDateTime, getWebUrl, setDescription, setDisplayName, setLastModifiedBy, setLastModifiedDateTime, setWebUrlMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Qna
public Qna()Instantiates a newQnaand 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
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
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:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classSearchAnswer- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getGroupIds
Gets the groupIds property value. The list of security groups that are able to view this QnA. -
getIsSuggested
Gets the isSuggested property value. True if a user or Microsoft suggested this QnA to the admin. Read-only.- Returns:
- a
Boolean
-
getKeywords
Gets the keywords property value. Keywords that trigger this QnA to appear in search results.- Returns:
- a
AnswerKeyword
-
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. -
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
Gets the state property value. The state property- Returns:
- a
AnswerState
-
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:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classSearchAnswer- Parameters:
writer- Serialization writer to use to serialize this model
-
setAvailabilityEndDateTime
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
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
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
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
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
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
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
Sets the state property value. The state property- Parameters:
value- Value to set for the state property.
-
setTargetedVariations
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.
-