AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Connect {
20namespace Model {
21
29 public:
30 AWS_CONNECT_API ChatContactMetrics() = default;
33 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline bool GetMultiParty() const { return m_multiParty; }
41 inline bool MultiPartyHasBeenSet() const { return m_multiPartyHasBeenSet; }
42 inline void SetMultiParty(bool value) {
43 m_multiPartyHasBeenSet = true;
44 m_multiParty = value;
45 }
46 inline ChatContactMetrics& WithMultiParty(bool value) {
47 SetMultiParty(value);
48 return *this;
49 }
51
53
56 inline int GetTotalMessages() const { return m_totalMessages; }
57 inline bool TotalMessagesHasBeenSet() const { return m_totalMessagesHasBeenSet; }
58 inline void SetTotalMessages(int value) {
59 m_totalMessagesHasBeenSet = true;
60 m_totalMessages = value;
61 }
63 SetTotalMessages(value);
64 return *this;
65 }
67
69
72 inline int GetTotalBotMessages() const { return m_totalBotMessages; }
73 inline bool TotalBotMessagesHasBeenSet() const { return m_totalBotMessagesHasBeenSet; }
74 inline void SetTotalBotMessages(int value) {
75 m_totalBotMessagesHasBeenSet = true;
76 m_totalBotMessages = value;
77 }
80 return *this;
81 }
83
85
89 inline int GetTotalBotMessageLengthInChars() const { return m_totalBotMessageLengthInChars; }
90 inline bool TotalBotMessageLengthInCharsHasBeenSet() const { return m_totalBotMessageLengthInCharsHasBeenSet; }
91 inline void SetTotalBotMessageLengthInChars(int value) {
92 m_totalBotMessageLengthInCharsHasBeenSet = true;
93 m_totalBotMessageLengthInChars = value;
94 }
97 return *this;
98 }
100
102
105 inline long long GetConversationCloseTimeInMillis() const { return m_conversationCloseTimeInMillis; }
106 inline bool ConversationCloseTimeInMillisHasBeenSet() const { return m_conversationCloseTimeInMillisHasBeenSet; }
107 inline void SetConversationCloseTimeInMillis(long long value) {
108 m_conversationCloseTimeInMillisHasBeenSet = true;
109 m_conversationCloseTimeInMillis = value;
110 }
113 return *this;
114 }
116
118
122 inline int GetConversationTurnCount() const { return m_conversationTurnCount; }
123 inline bool ConversationTurnCountHasBeenSet() const { return m_conversationTurnCountHasBeenSet; }
124 inline void SetConversationTurnCount(int value) {
125 m_conversationTurnCountHasBeenSet = true;
126 m_conversationTurnCount = value;
127 }
130 return *this;
131 }
133
135
138 inline const Aws::Utils::DateTime& GetAgentFirstResponseTimestamp() const { return m_agentFirstResponseTimestamp; }
139 inline bool AgentFirstResponseTimestampHasBeenSet() const { return m_agentFirstResponseTimestampHasBeenSet; }
140 template <typename AgentFirstResponseTimestampT = Aws::Utils::DateTime>
141 void SetAgentFirstResponseTimestamp(AgentFirstResponseTimestampT&& value) {
142 m_agentFirstResponseTimestampHasBeenSet = true;
143 m_agentFirstResponseTimestamp = std::forward<AgentFirstResponseTimestampT>(value);
144 }
145 template <typename AgentFirstResponseTimestampT = Aws::Utils::DateTime>
146 ChatContactMetrics& WithAgentFirstResponseTimestamp(AgentFirstResponseTimestampT&& value) {
147 SetAgentFirstResponseTimestamp(std::forward<AgentFirstResponseTimestampT>(value));
148 return *this;
149 }
151
153
156 inline long long GetAgentFirstResponseTimeInMillis() const { return m_agentFirstResponseTimeInMillis; }
157 inline bool AgentFirstResponseTimeInMillisHasBeenSet() const { return m_agentFirstResponseTimeInMillisHasBeenSet; }
158 inline void SetAgentFirstResponseTimeInMillis(long long value) {
159 m_agentFirstResponseTimeInMillisHasBeenSet = true;
160 m_agentFirstResponseTimeInMillis = value;
161 }
164 return *this;
165 }
167 private:
168 bool m_multiParty{false};
169
170 int m_totalMessages{0};
171
172 int m_totalBotMessages{0};
173
174 int m_totalBotMessageLengthInChars{0};
175
176 long long m_conversationCloseTimeInMillis{0};
177
178 int m_conversationTurnCount{0};
179
180 Aws::Utils::DateTime m_agentFirstResponseTimestamp{};
181
182 long long m_agentFirstResponseTimeInMillis{0};
183 bool m_multiPartyHasBeenSet = false;
184 bool m_totalMessagesHasBeenSet = false;
185 bool m_totalBotMessagesHasBeenSet = false;
186 bool m_totalBotMessageLengthInCharsHasBeenSet = false;
187 bool m_conversationCloseTimeInMillisHasBeenSet = false;
188 bool m_conversationTurnCountHasBeenSet = false;
189 bool m_agentFirstResponseTimestampHasBeenSet = false;
190 bool m_agentFirstResponseTimeInMillisHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace Connect
195} // 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