AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ParticipantMetrics.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/ParticipantType.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CONNECT_API ParticipantMetrics() = default;
40 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetParticipantId() const { return m_participantId; }
48 inline bool ParticipantIdHasBeenSet() const { return m_participantIdHasBeenSet; }
49 template<typename ParticipantIdT = Aws::String>
50 void SetParticipantId(ParticipantIdT&& value) { m_participantIdHasBeenSet = true; m_participantId = std::forward<ParticipantIdT>(value); }
51 template<typename ParticipantIdT = Aws::String>
52 ParticipantMetrics& WithParticipantId(ParticipantIdT&& value) { SetParticipantId(std::forward<ParticipantIdT>(value)); return *this;}
54
56
60 inline ParticipantType GetParticipantType() const { return m_participantType; }
61 inline bool ParticipantTypeHasBeenSet() const { return m_participantTypeHasBeenSet; }
62 inline void SetParticipantType(ParticipantType value) { m_participantTypeHasBeenSet = true; m_participantType = value; }
65
67
71 inline bool GetConversationAbandon() const { return m_conversationAbandon; }
72 inline bool ConversationAbandonHasBeenSet() const { return m_conversationAbandonHasBeenSet; }
73 inline void SetConversationAbandon(bool value) { m_conversationAbandonHasBeenSet = true; m_conversationAbandon = value; }
74 inline ParticipantMetrics& WithConversationAbandon(bool value) { SetConversationAbandon(value); return *this;}
76
78
81 inline int GetMessagesSent() const { return m_messagesSent; }
82 inline bool MessagesSentHasBeenSet() const { return m_messagesSentHasBeenSet; }
83 inline void SetMessagesSent(int value) { m_messagesSentHasBeenSet = true; m_messagesSent = value; }
84 inline ParticipantMetrics& WithMessagesSent(int value) { SetMessagesSent(value); return *this;}
86
88
91 inline int GetNumResponses() const { return m_numResponses; }
92 inline bool NumResponsesHasBeenSet() const { return m_numResponsesHasBeenSet; }
93 inline void SetNumResponses(int value) { m_numResponsesHasBeenSet = true; m_numResponses = value; }
94 inline ParticipantMetrics& WithNumResponses(int value) { SetNumResponses(value); return *this;}
96
98
101 inline int GetMessageLengthInChars() const { return m_messageLengthInChars; }
102 inline bool MessageLengthInCharsHasBeenSet() const { return m_messageLengthInCharsHasBeenSet; }
103 inline void SetMessageLengthInChars(int value) { m_messageLengthInCharsHasBeenSet = true; m_messageLengthInChars = value; }
104 inline ParticipantMetrics& WithMessageLengthInChars(int value) { SetMessageLengthInChars(value); return *this;}
106
108
111 inline long long GetTotalResponseTimeInMillis() const { return m_totalResponseTimeInMillis; }
112 inline bool TotalResponseTimeInMillisHasBeenSet() const { return m_totalResponseTimeInMillisHasBeenSet; }
113 inline void SetTotalResponseTimeInMillis(long long value) { m_totalResponseTimeInMillisHasBeenSet = true; m_totalResponseTimeInMillis = value; }
114 inline ParticipantMetrics& WithTotalResponseTimeInMillis(long long value) { SetTotalResponseTimeInMillis(value); return *this;}
116
118
121 inline long long GetMaxResponseTimeInMillis() const { return m_maxResponseTimeInMillis; }
122 inline bool MaxResponseTimeInMillisHasBeenSet() const { return m_maxResponseTimeInMillisHasBeenSet; }
123 inline void SetMaxResponseTimeInMillis(long long value) { m_maxResponseTimeInMillisHasBeenSet = true; m_maxResponseTimeInMillis = value; }
124 inline ParticipantMetrics& WithMaxResponseTimeInMillis(long long value) { SetMaxResponseTimeInMillis(value); return *this;}
126
128
131 inline const Aws::Utils::DateTime& GetLastMessageTimestamp() const { return m_lastMessageTimestamp; }
132 inline bool LastMessageTimestampHasBeenSet() const { return m_lastMessageTimestampHasBeenSet; }
133 template<typename LastMessageTimestampT = Aws::Utils::DateTime>
134 void SetLastMessageTimestamp(LastMessageTimestampT&& value) { m_lastMessageTimestampHasBeenSet = true; m_lastMessageTimestamp = std::forward<LastMessageTimestampT>(value); }
135 template<typename LastMessageTimestampT = Aws::Utils::DateTime>
136 ParticipantMetrics& WithLastMessageTimestamp(LastMessageTimestampT&& value) { SetLastMessageTimestamp(std::forward<LastMessageTimestampT>(value)); return *this;}
138 private:
139
140 Aws::String m_participantId;
141 bool m_participantIdHasBeenSet = false;
142
143 ParticipantType m_participantType{ParticipantType::NOT_SET};
144 bool m_participantTypeHasBeenSet = false;
145
146 bool m_conversationAbandon{false};
147 bool m_conversationAbandonHasBeenSet = false;
148
149 int m_messagesSent{0};
150 bool m_messagesSentHasBeenSet = false;
151
152 int m_numResponses{0};
153 bool m_numResponsesHasBeenSet = false;
154
155 int m_messageLengthInChars{0};
156 bool m_messageLengthInCharsHasBeenSet = false;
157
158 long long m_totalResponseTimeInMillis{0};
159 bool m_totalResponseTimeInMillisHasBeenSet = false;
160
161 long long m_maxResponseTimeInMillis{0};
162 bool m_maxResponseTimeInMillisHasBeenSet = false;
163
164 Aws::Utils::DateTime m_lastMessageTimestamp{};
165 bool m_lastMessageTimestampHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace Connect
170} // 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