Class Bookmark
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.search.SearchAnswer
com.microsoft.graph.models.search.Bookmark
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class Bookmark
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 BookmarkcreateFromDiscriminatorValue(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.Gets the categories 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.Gets the powerAppIds 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.voidsetCategories(List<String> value) Sets the categories 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.voidsetPowerAppIds(List<String> value) Sets the powerAppIds 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
-
Bookmark
public Bookmark()Instantiates a newBookmarkand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static Bookmark 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
Bookmark
-
getAvailabilityEndDateTime
Gets the availabilityEndDateTime property value. Date and time when the bookmark 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 bookmark 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
-
getCategories
Gets the categories property value. Categories commonly used to describe this bookmark. For example, IT and HR. -
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 bookmark. -
getIsSuggested
Gets the isSuggested property value. True if this bookmark was suggested to the admin, by a user, or was mined and suggested by Microsoft. Read-only.- Returns:
- a
Boolean
-
getKeywords
Gets the keywords property value. Keywords that trigger this bookmark to appear in search results.- Returns:
- a
AnswerKeyword
-
getLanguageTags
Gets the languageTags property value. A list of geographically specific language names in which this bookmark 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 bookmark. Possible values are: android, androidForWork, ios, macOS, windowsPhone81, windowsPhone81AndLater, windows10AndLater, androidWorkProfile, unknown, androidASOP, androidMobileApplicationManagement, iOSMobileApplicationManagement, unknownFutureValue.- Returns:
- a
List<DevicePlatformType>
-
getPowerAppIds
Gets the powerAppIds property value. List of Power Apps associated with this bookmark. If users add existing Power Apps to a bookmark, they can complete tasks directly on the search results page, such as entering vacation time or reporting expenses. -
getState
Gets the state property value. The state property- Returns:
- a
AnswerState
-
getTargetedVariations
Gets the targetedVariations property value. Variations of a bookmark 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 bookmark 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 bookmark 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.
-
setCategories
Sets the categories property value. Categories commonly used to describe this bookmark. For example, IT and HR.- Parameters:
value- Value to set for the categories property.
-
setGroupIds
Sets the groupIds property value. The list of security groups that are able to view this bookmark.- Parameters:
value- Value to set for the groupIds property.
-
setIsSuggested
Sets the isSuggested property value. True if this bookmark was suggested to the admin, by a user, or was mined and suggested by Microsoft. Read-only.- Parameters:
value- Value to set for the isSuggested property.
-
setKeywords
Sets the keywords property value. Keywords that trigger this bookmark 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 bookmark 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 bookmark. 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.
-
setPowerAppIds
Sets the powerAppIds property value. List of Power Apps associated with this bookmark. If users add existing Power Apps to a bookmark, they can complete tasks directly on the search results page, such as entering vacation time or reporting expenses.- Parameters:
value- Value to set for the powerAppIds 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 bookmark 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.
-