Package microsoft.graph.search.entity
Class Qna
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- microsoft.graph.search.entity.SearchAnswer
-
- microsoft.graph.search.entity.Qna
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class Qna extends SearchAnswer implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQna.Builder
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimeavailabilityEndDateTimeprotected OffsetDateTimeavailabilityStartDateTimeprotected List<String>groupIdsprotected StringgroupIdsNextLinkprotected BooleanisSuggestedprotected AnswerKeywordkeywordsprotected List<String>languageTagsprotected StringlanguageTagsNextLinkprotected List<DevicePlatformType>platformsprotected StringplatformsNextLinkprotected AnswerStatestateprotected List<AnswerVariant>targetedVariationsprotected StringtargetedVariationsNextLink-
Fields inherited from class microsoft.graph.search.entity.SearchAnswer
description, displayName, lastModifiedBy, lastModifiedDateTime, webUrl
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedQna()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Qna.BuilderbuilderQna()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<OffsetDateTime>getAvailabilityEndDateTime()Optional<OffsetDateTime>getAvailabilityStartDateTime()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()com.github.davidmoten.odata.client.CollectionPage<String>getGroupIds()com.github.davidmoten.odata.client.CollectionPage<String>getGroupIds(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<Boolean>getIsSuggested()Optional<AnswerKeyword>getKeywords()com.github.davidmoten.odata.client.CollectionPage<String>getLanguageTags()com.github.davidmoten.odata.client.CollectionPage<String>getLanguageTags(com.github.davidmoten.odata.client.HttpRequestOptions options)com.github.davidmoten.odata.client.CollectionPage<DevicePlatformType>getPlatforms()com.github.davidmoten.odata.client.CollectionPage<DevicePlatformType>getPlatforms(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<AnswerState>getState()com.github.davidmoten.odata.client.CollectionPage<AnswerVariant>getTargetedVariations()com.github.davidmoten.odata.client.CollectionPage<AnswerVariant>getTargetedVariations(com.github.davidmoten.odata.client.HttpRequestOptions options)com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()Qnapatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)Qnaput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()QnawithAvailabilityEndDateTime(OffsetDateTime availabilityEndDateTime)QnawithAvailabilityStartDateTime(OffsetDateTime availabilityStartDateTime)QnawithGroupIds(List<String> groupIds)QnawithIsSuggested(Boolean isSuggested)QnawithKeywords(AnswerKeyword keywords)QnawithLanguageTags(List<String> languageTags)QnawithPlatforms(List<DevicePlatformType> platforms)QnawithState(AnswerState state)QnawithTargetedVariations(List<AnswerVariant> targetedVariations)QnawithUnmappedField(String name, String value)-
Methods inherited from class microsoft.graph.search.entity.SearchAnswer
builderSearchAnswer, getDescription, getDisplayName, getLastModifiedBy, getLastModifiedDateTime, getWebUrl, withDescription, withDisplayName, withLastModifiedBy, withLastModifiedDateTime, withWebUrl
-
-
-
-
Field Detail
-
availabilityEndDateTime
protected OffsetDateTime availabilityEndDateTime
-
availabilityStartDateTime
protected OffsetDateTime availabilityStartDateTime
-
groupIdsNextLink
protected String groupIdsNextLink
-
isSuggested
protected Boolean isSuggested
-
keywords
protected AnswerKeyword keywords
-
languageTagsNextLink
protected String languageTagsNextLink
-
platforms
protected List<DevicePlatformType> platforms
-
platformsNextLink
protected String platformsNextLink
-
state
protected AnswerState state
-
targetedVariations
protected List<AnswerVariant> targetedVariations
-
targetedVariationsNextLink
protected String targetedVariationsNextLink
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classSearchAnswer
-
builderQna
public static Qna.Builder builderQna()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classSearchAnswer
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classSearchAnswer
-
getAvailabilityEndDateTime
public Optional<OffsetDateTime> getAvailabilityEndDateTime()
-
withAvailabilityEndDateTime
public Qna withAvailabilityEndDateTime(OffsetDateTime availabilityEndDateTime)
-
getAvailabilityStartDateTime
public Optional<OffsetDateTime> getAvailabilityStartDateTime()
-
withAvailabilityStartDateTime
public Qna withAvailabilityStartDateTime(OffsetDateTime availabilityStartDateTime)
-
getGroupIds
public com.github.davidmoten.odata.client.CollectionPage<String> getGroupIds()
-
getGroupIds
public com.github.davidmoten.odata.client.CollectionPage<String> getGroupIds(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getKeywords
public Optional<AnswerKeyword> getKeywords()
-
withKeywords
public Qna withKeywords(AnswerKeyword keywords)
-
getLanguageTags
public com.github.davidmoten.odata.client.CollectionPage<String> getLanguageTags()
-
getLanguageTags
public com.github.davidmoten.odata.client.CollectionPage<String> getLanguageTags(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getPlatforms
public com.github.davidmoten.odata.client.CollectionPage<DevicePlatformType> getPlatforms()
-
withPlatforms
public Qna withPlatforms(List<DevicePlatformType> platforms)
-
getPlatforms
public com.github.davidmoten.odata.client.CollectionPage<DevicePlatformType> getPlatforms(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getState
public Optional<AnswerState> getState()
-
withState
public Qna withState(AnswerState state)
-
getTargetedVariations
public com.github.davidmoten.odata.client.CollectionPage<AnswerVariant> getTargetedVariations()
-
withTargetedVariations
public Qna withTargetedVariations(List<AnswerVariant> targetedVariations)
-
getTargetedVariations
public com.github.davidmoten.odata.client.CollectionPage<AnswerVariant> getTargetedVariations(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
withUnmappedField
public Qna withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classSearchAnswer
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classSearchAnswer
-
patch
public Qna patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classSearchAnswer- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public Qna put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classSearchAnswer- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classSearchAnswer
-
-