Class SearchAnswer

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.search.SearchAnswer
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel
Direct Known Subclasses:
Acronym, Bookmark, Qna

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

    • SearchAnswer

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

    • createFromDiscriminatorValue

      @Nonnull public static SearchAnswer 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 SearchAnswer
    • getDescription

      @Nullable public String getDescription()
      Gets the description property value. The search answer description that is shown on the search results page.
      Returns:
      a String
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. The search answer name that is displayed in search results.
      Returns:
      a 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 Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getLastModifiedBy

      @Nullable public IdentitySet getLastModifiedBy()
      Gets the lastModifiedBy property value. Details of the user who created or last modified the search answer. Read-only.
      Returns:
      a IdentitySet
    • getLastModifiedDateTime

      @Nullable public OffsetDateTime getLastModifiedDateTime()
      Gets the lastModifiedDateTime property value. Date and time when the search answer was created or last edited. 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. Read-only.
      Returns:
      a OffsetDateTime
    • getWebUrl

      @Nullable public String getWebUrl()
      Gets the webUrl property value. The URL link for the search answer. When users select this search answer from the search results, they are directed to the specified URL.
      Returns:
      a String
    • 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 Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setDescription

      public void setDescription(@Nullable String value)
      Sets the description property value. The search answer description that is shown on the search results page.
      Parameters:
      value - Value to set for the description property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. The search answer name that is displayed in search results.
      Parameters:
      value - Value to set for the displayName property.
    • setLastModifiedBy

      public void setLastModifiedBy(@Nullable IdentitySet value)
      Sets the lastModifiedBy property value. Details of the user who created or last modified the search answer. Read-only.
      Parameters:
      value - Value to set for the lastModifiedBy property.
    • setLastModifiedDateTime

      public void setLastModifiedDateTime(@Nullable OffsetDateTime value)
      Sets the lastModifiedDateTime property value. Date and time when the search answer was created or last edited. 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. Read-only.
      Parameters:
      value - Value to set for the lastModifiedDateTime property.
    • setWebUrl

      public void setWebUrl(@Nullable String value)
      Sets the webUrl property value. The URL link for the search answer. When users select this search answer from the search results, they are directed to the specified URL.
      Parameters:
      value - Value to set for the webUrl property.