AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ChatContactMetrics.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CONNECT_API ChatContactMetrics() = default;
38 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline bool GetMultiParty() const { return m_multiParty; }
47 inline bool MultiPartyHasBeenSet() const { return m_multiPartyHasBeenSet; }
48 inline void SetMultiParty(bool value) { m_multiPartyHasBeenSet = true; m_multiParty = value; }
49 inline ChatContactMetrics& WithMultiParty(bool value) { SetMultiParty(value); return *this;}
51
53
56 inline int GetTotalMessages() const { return m_totalMessages; }
57 inline bool TotalMessagesHasBeenSet() const { return m_totalMessagesHasBeenSet; }
58 inline void SetTotalMessages(int value) { m_totalMessagesHasBeenSet = true; m_totalMessages = value; }
59 inline ChatContactMetrics& WithTotalMessages(int value) { SetTotalMessages(value); return *this;}
61
63
66 inline int GetTotalBotMessages() const { return m_totalBotMessages; }
67 inline bool TotalBotMessagesHasBeenSet() const { return m_totalBotMessagesHasBeenSet; }
68 inline void SetTotalBotMessages(int value) { m_totalBotMessagesHasBeenSet = true; m_totalBotMessages = value; }
69 inline ChatContactMetrics& WithTotalBotMessages(int value) { SetTotalBotMessages(value); return *this;}
71
73
77 inline int GetTotalBotMessageLengthInChars() const { return m_totalBotMessageLengthInChars; }
78 inline bool TotalBotMessageLengthInCharsHasBeenSet() const { return m_totalBotMessageLengthInCharsHasBeenSet; }
79 inline void SetTotalBotMessageLengthInChars(int value) { m_totalBotMessageLengthInCharsHasBeenSet = true; m_totalBotMessageLengthInChars = value; }
82
84
87 inline long long GetConversationCloseTimeInMillis() const { return m_conversationCloseTimeInMillis; }
88 inline bool ConversationCloseTimeInMillisHasBeenSet() const { return m_conversationCloseTimeInMillisHasBeenSet; }
89 inline void SetConversationCloseTimeInMillis(long long value) { m_conversationCloseTimeInMillisHasBeenSet = true; m_conversationCloseTimeInMillis = value; }
92
94
98 inline int GetConversationTurnCount() const { return m_conversationTurnCount; }
99 inline bool ConversationTurnCountHasBeenSet() const { return m_conversationTurnCountHasBeenSet; }
100 inline void SetConversationTurnCount(int value) { m_conversationTurnCountHasBeenSet = true; m_conversationTurnCount = value; }
103
105
108 inline const Aws::Utils::DateTime& GetAgentFirstResponseTimestamp() const { return m_agentFirstResponseTimestamp; }
109 inline bool AgentFirstResponseTimestampHasBeenSet() const { return m_agentFirstResponseTimestampHasBeenSet; }
110 template<typename AgentFirstResponseTimestampT = Aws::Utils::DateTime>
111 void SetAgentFirstResponseTimestamp(AgentFirstResponseTimestampT&& value) { m_agentFirstResponseTimestampHasBeenSet = true; m_agentFirstResponseTimestamp = std::forward<AgentFirstResponseTimestampT>(value); }
112 template<typename AgentFirstResponseTimestampT = Aws::Utils::DateTime>
113 ChatContactMetrics& WithAgentFirstResponseTimestamp(AgentFirstResponseTimestampT&& value) { SetAgentFirstResponseTimestamp(std::forward<AgentFirstResponseTimestampT>(value)); return *this;}
115
117
120 inline long long GetAgentFirstResponseTimeInMillis() const { return m_agentFirstResponseTimeInMillis; }
121 inline bool AgentFirstResponseTimeInMillisHasBeenSet() const { return m_agentFirstResponseTimeInMillisHasBeenSet; }
122 inline void SetAgentFirstResponseTimeInMillis(long long value) { m_agentFirstResponseTimeInMillisHasBeenSet = true; m_agentFirstResponseTimeInMillis = value; }
125 private:
126
127 bool m_multiParty{false};
128 bool m_multiPartyHasBeenSet = false;
129
130 int m_totalMessages{0};
131 bool m_totalMessagesHasBeenSet = false;
132
133 int m_totalBotMessages{0};
134 bool m_totalBotMessagesHasBeenSet = false;
135
136 int m_totalBotMessageLengthInChars{0};
137 bool m_totalBotMessageLengthInCharsHasBeenSet = false;
138
139 long long m_conversationCloseTimeInMillis{0};
140 bool m_conversationCloseTimeInMillisHasBeenSet = false;
141
142 int m_conversationTurnCount{0};
143 bool m_conversationTurnCountHasBeenSet = false;
144
145 Aws::Utils::DateTime m_agentFirstResponseTimestamp{};
146 bool m_agentFirstResponseTimestampHasBeenSet = false;
147
148 long long m_agentFirstResponseTimeInMillis{0};
149 bool m_agentFirstResponseTimeInMillisHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace Connect
154} // namespace Aws
AWS_CONNECT_API ChatContactMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConversationCloseTimeInMillis(long long value)
AWS_CONNECT_API ChatContactMetrics()=default
AWS_CONNECT_API ChatContactMetrics(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetAgentFirstResponseTimestamp() const
ChatContactMetrics & WithConversationTurnCount(int value)
ChatContactMetrics & WithTotalBotMessages(int value)
void SetAgentFirstResponseTimestamp(AgentFirstResponseTimestampT &&value)
ChatContactMetrics & WithConversationCloseTimeInMillis(long long value)
ChatContactMetrics & WithAgentFirstResponseTimeInMillis(long long value)
void SetAgentFirstResponseTimeInMillis(long long value)
ChatContactMetrics & WithTotalMessages(int value)
ChatContactMetrics & WithMultiParty(bool value)
ChatContactMetrics & WithTotalBotMessageLengthInChars(int value)
ChatContactMetrics & WithAgentFirstResponseTimestamp(AgentFirstResponseTimestampT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue