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

    • Bookmark

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

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

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

      @Nullable public List<String> getCategories()
      Gets the categories property value. Categories commonly used to describe this bookmark. For example, IT and HR.
      Returns:
      a List<String>
    • 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 bookmark.
      Returns:
      a List<String>
    • getIsSuggested

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

      @Nullable public AnswerKeyword getKeywords()
      Gets the keywords property value. Keywords that trigger this bookmark 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 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.
      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 bookmark. Possible values are: android, androidForWork, ios, macOS, windowsPhone81, windowsPhone81AndLater, windows10AndLater, androidWorkProfile, unknown, androidASOP, androidMobileApplicationManagement, iOSMobileApplicationManagement, unknownFutureValue.
      Returns:
      a List<DevicePlatformType>
    • getPowerAppIds

      @Nullable public List<String> 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.
      Returns:
      a List<String>
    • 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 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:
      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 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

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

      public void setCategories(@Nullable List<String> value)
      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

      public void setGroupIds(@Nullable List<String> value)
      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

      public void setIsSuggested(@Nullable Boolean value)
      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

      public void setKeywords(@Nullable AnswerKeyword value)
      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

      public void setLanguageTags(@Nullable List<String> value)
      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

      public void setPlatforms(@Nullable List<DevicePlatformType> value)
      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

      public void setPowerAppIds(@Nullable List<String> value)
      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

      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 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.