Package com.microsoft.graph.models
Class AiInteraction
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.AiInteraction
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class AiInteraction
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 AiInteractioncreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the appClass property value.Gets the attachments property value.getBody()Gets the body property value.Gets the contexts property value.Gets the conversationType property value.Gets the createdDateTime property value.getEtag()Gets the etag property value.The deserialization information for the current modelgetFrom()Gets the from property value.Gets the interactionType property value.getLinks()Gets the links property value.Gets the locale property value.Gets the mentions property value.Gets the requestId property value.Gets the sessionId property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAppClass(String value) Sets the appClass property value.voidSets the attachments property value.voidSets the body property value.voidsetContexts(List<AiInteractionContext> value) Sets the contexts property value.voidsetConversationType(String value) Sets the conversationType property value.voidsetCreatedDateTime(OffsetDateTime value) Sets the createdDateTime property value.voidSets the etag property value.voidsetFrom(IdentitySet value) Sets the from property value.voidSets the interactionType property value.voidsetLinks(List<AiInteractionLink> value) Sets the links property value.voidSets the locale property value.voidsetMentions(List<AiInteractionMention> value) Sets the mentions property value.voidsetRequestId(String value) Sets the requestId property value.voidsetSessionId(String value) Sets the sessionId property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
AiInteraction
public AiInteraction()Instantiates a newAiInteractionand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static AiInteraction 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
AiInteraction
-
getAppClass
Gets the appClass property value. The data source for Copilot data. For example, IPM.SkypeTeams.Message.Copilot.Excel or IPM.SkypeTeams.Message.Copilot.Loop.- Returns:
- a
String
-
getAttachments
Gets the attachments property value. The collection of documents attached to the interaction, such as cards and images.- Returns:
- a
List<AiInteractionAttachment>
-
getBody
Gets the body property value. The body of the message, including the text of the body and its body type.- Returns:
- a
ItemBody
-
getContexts
Gets the contexts property value. The identifer that maps to all contexts associated with an interaction.- Returns:
- a
List<AiInteractionContext>
-
getConversationType
Gets the conversationType property value. The type of the conversation. For example, appchat or bizchat.- Returns:
- a
String
-
getCreatedDateTime
Gets the createdDateTime property value. The time when the interaction was created.- Returns:
- a
OffsetDateTime
-
getEtag
Gets the etag property value. The timestamp of when the interaction was last modified.- 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>>
-
getFrom
Gets the from property value. The from property- Returns:
- a
IdentitySet
-
getInteractionType
Gets the interactionType property value. The interactionType property- Returns:
- a
AiInteractionType
-
getLinks
Gets the links property value. The collection of links that appear in the interaction.- Returns:
- a
List<AiInteractionLink>
-
getLocale
Gets the locale property value. The locale of the sender.- Returns:
- a
String
-
getMentions
Gets the mentions property value. The collection of the entities that were mentioned in the interaction, including users, bots, and so on.- Returns:
- a
List<AiInteractionMention>
-
getRequestId
Gets the requestId property value. The identifier that groups a user prompt with its Copilot response.- Returns:
- a
String
-
getSessionId
Gets the sessionId property value. The thread ID or conversation identifier that maps to all Copilot sessions for the user.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setAppClass
Sets the appClass property value. The data source for Copilot data. For example, IPM.SkypeTeams.Message.Copilot.Excel or IPM.SkypeTeams.Message.Copilot.Loop.- Parameters:
value- Value to set for the appClass property.
-
setAttachments
Sets the attachments property value. The collection of documents attached to the interaction, such as cards and images.- Parameters:
value- Value to set for the attachments property.
-
setBody
Sets the body property value. The body of the message, including the text of the body and its body type.- Parameters:
value- Value to set for the body property.
-
setContexts
Sets the contexts property value. The identifer that maps to all contexts associated with an interaction.- Parameters:
value- Value to set for the contexts property.
-
setConversationType
Sets the conversationType property value. The type of the conversation. For example, appchat or bizchat.- Parameters:
value- Value to set for the conversationType property.
-
setCreatedDateTime
Sets the createdDateTime property value. The time when the interaction was created.- Parameters:
value- Value to set for the createdDateTime property.
-
setEtag
Sets the etag property value. The timestamp of when the interaction was last modified.- Parameters:
value- Value to set for the etag property.
-
setFrom
Sets the from property value. The from property- Parameters:
value- Value to set for the from property.
-
setInteractionType
Sets the interactionType property value. The interactionType property- Parameters:
value- Value to set for the interactionType property.
-
setLinks
Sets the links property value. The collection of links that appear in the interaction.- Parameters:
value- Value to set for the links property.
-
setLocale
Sets the locale property value. The locale of the sender.- Parameters:
value- Value to set for the locale property.
-
setMentions
Sets the mentions property value. The collection of the entities that were mentioned in the interaction, including users, bots, and so on.- Parameters:
value- Value to set for the mentions property.
-
setRequestId
Sets the requestId property value. The identifier that groups a user prompt with its Copilot response.- Parameters:
value- Value to set for the requestId property.
-
setSessionId
Sets the sessionId property value. The thread ID or conversation identifier that maps to all Copilot sessions for the user.- Parameters:
value- Value to set for the sessionId property.
-