AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ParticipantMetrics.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/ParticipantType.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
31 public:
32 AWS_CONNECT_API ParticipantMetrics() = default;
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetParticipantId() const { return m_participantId; }
42 inline bool ParticipantIdHasBeenSet() const { return m_participantIdHasBeenSet; }
43 template <typename ParticipantIdT = Aws::String>
44 void SetParticipantId(ParticipantIdT&& value) {
45 m_participantIdHasBeenSet = true;
46 m_participantId = std::forward<ParticipantIdT>(value);
47 }
48 template <typename ParticipantIdT = Aws::String>
49 ParticipantMetrics& WithParticipantId(ParticipantIdT&& value) {
50 SetParticipantId(std::forward<ParticipantIdT>(value));
51 return *this;
52 }
54
56
60 inline ParticipantType GetParticipantType() const { return m_participantType; }
61 inline bool ParticipantTypeHasBeenSet() const { return m_participantTypeHasBeenSet; }
63 m_participantTypeHasBeenSet = true;
64 m_participantType = value;
65 }
67 SetParticipantType(value);
68 return *this;
69 }
71
73
77 inline bool GetConversationAbandon() const { return m_conversationAbandon; }
78 inline bool ConversationAbandonHasBeenSet() const { return m_conversationAbandonHasBeenSet; }
79 inline void SetConversationAbandon(bool value) {
80 m_conversationAbandonHasBeenSet = true;
81 m_conversationAbandon = value;
82 }
85 return *this;
86 }
88
90
93 inline int GetMessagesSent() const { return m_messagesSent; }
94 inline bool MessagesSentHasBeenSet() const { return m_messagesSentHasBeenSet; }
95 inline void SetMessagesSent(int value) {
96 m_messagesSentHasBeenSet = true;
97 m_messagesSent = value;
98 }
100 SetMessagesSent(value);
101 return *this;
102 }
104
106
109 inline int GetNumResponses() const { return m_numResponses; }
110 inline bool NumResponsesHasBeenSet() const { return m_numResponsesHasBeenSet; }
111 inline void SetNumResponses(int value) {
112 m_numResponsesHasBeenSet = true;
113 m_numResponses = value;
114 }
116 SetNumResponses(value);
117 return *this;
118 }
120
122
125 inline int GetMessageLengthInChars() const { return m_messageLengthInChars; }
126 inline bool MessageLengthInCharsHasBeenSet() const { return m_messageLengthInCharsHasBeenSet; }
127 inline void SetMessageLengthInChars(int value) {
128 m_messageLengthInCharsHasBeenSet = true;
129 m_messageLengthInChars = value;
130 }
133 return *this;
134 }
136
138
141 inline long long GetTotalResponseTimeInMillis() const { return m_totalResponseTimeInMillis; }
142 inline bool TotalResponseTimeInMillisHasBeenSet() const { return m_totalResponseTimeInMillisHasBeenSet; }
143 inline void SetTotalResponseTimeInMillis(long long value) {
144 m_totalResponseTimeInMillisHasBeenSet = true;
145 m_totalResponseTimeInMillis = value;
146 }
149 return *this;
150 }
152
154
157 inline long long GetMaxResponseTimeInMillis() const { return m_maxResponseTimeInMillis; }
158 inline bool MaxResponseTimeInMillisHasBeenSet() const { return m_maxResponseTimeInMillisHasBeenSet; }
159 inline void SetMaxResponseTimeInMillis(long long value) {
160 m_maxResponseTimeInMillisHasBeenSet = true;
161 m_maxResponseTimeInMillis = value;
162 }
165 return *this;
166 }
168
170
173 inline const Aws::Utils::DateTime& GetLastMessageTimestamp() const { return m_lastMessageTimestamp; }
174 inline bool LastMessageTimestampHasBeenSet() const { return m_lastMessageTimestampHasBeenSet; }
175 template <typename LastMessageTimestampT = Aws::Utils::DateTime>
176 void SetLastMessageTimestamp(LastMessageTimestampT&& value) {
177 m_lastMessageTimestampHasBeenSet = true;
178 m_lastMessageTimestamp = std::forward<LastMessageTimestampT>(value);
179 }
180 template <typename LastMessageTimestampT = Aws::Utils::DateTime>
181 ParticipantMetrics& WithLastMessageTimestamp(LastMessageTimestampT&& value) {
182 SetLastMessageTimestamp(std::forward<LastMessageTimestampT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_participantId;
188
189 ParticipantType m_participantType{ParticipantType::NOT_SET};
190
191 bool m_conversationAbandon{false};
192
193 int m_messagesSent{0};
194
195 int m_numResponses{0};
196
197 int m_messageLengthInChars{0};
198
199 long long m_totalResponseTimeInMillis{0};
200
201 long long m_maxResponseTimeInMillis{0};
202
203 Aws::Utils::DateTime m_lastMessageTimestamp{};
204 bool m_participantIdHasBeenSet = false;
205 bool m_participantTypeHasBeenSet = false;
206 bool m_conversationAbandonHasBeenSet = false;
207 bool m_messagesSentHasBeenSet = false;
208 bool m_numResponsesHasBeenSet = false;
209 bool m_messageLengthInCharsHasBeenSet = false;
210 bool m_totalResponseTimeInMillisHasBeenSet = false;
211 bool m_maxResponseTimeInMillisHasBeenSet = false;
212 bool m_lastMessageTimestampHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace Connect
217} // namespace Aws
const Aws::String & GetParticipantId() const
ParticipantMetrics & WithTotalResponseTimeInMillis(long long value)
ParticipantMetrics & WithConversationAbandon(bool value)
ParticipantMetrics & WithParticipantType(ParticipantType value)
ParticipantMetrics & WithMaxResponseTimeInMillis(long long value)
void SetParticipantType(ParticipantType value)
ParticipantMetrics & WithMessagesSent(int value)
const Aws::Utils::DateTime & GetLastMessageTimestamp() const
ParticipantMetrics & WithNumResponses(int value)
AWS_CONNECT_API ParticipantMetrics(Aws::Utils::Json::JsonView jsonValue)
ParticipantMetrics & WithParticipantId(ParticipantIdT &&value)
ParticipantMetrics & WithLastMessageTimestamp(LastMessageTimestampT &&value)
AWS_CONNECT_API ParticipantMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
ParticipantMetrics & WithMessageLengthInChars(int value)
void SetParticipantId(ParticipantIdT &&value)
AWS_CONNECT_API ParticipantMetrics()=default
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastMessageTimestamp(LastMessageTimestampT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue