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
@Generated("com.microsoft.kiota")
public class SearchAnswer
extends Entity
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 SearchAnswercreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the description property value.Gets the displayName property value.The deserialization information for the current modelGets the lastModifiedBy property value.Gets the lastModifiedDateTime property value.Gets the webUrl property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetDescription(String value) Sets the description property value.voidsetDisplayName(String value) Sets the displayName property value.voidsetLastModifiedBy(IdentitySet value) Sets the lastModifiedBy property value.voidSets the lastModifiedDateTime property value.voidSets the webUrl property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
SearchAnswer
public SearchAnswer()Instantiates a newSearchAnswerand 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
Gets the description property value. The search answer description that is shown on the search results page.- Returns:
- a
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:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classEntity- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getLastModifiedBy
Gets the lastModifiedBy property value. Details of the user who created or last modified the search answer. Read-only.- Returns:
- a
IdentitySet
-
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
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 -
setDescription
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
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
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
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
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.
-