AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ChatMetrics.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/ChatContactMetrics.h>
9#include <aws/connect/model/ParticipantMetrics.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Connect {
21namespace Model {
22
30 public:
31 AWS_CONNECT_API ChatMetrics() = default;
32 AWS_CONNECT_API ChatMetrics(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const ChatContactMetrics& GetChatContactMetrics() const { return m_chatContactMetrics; }
42 inline bool ChatContactMetricsHasBeenSet() const { return m_chatContactMetricsHasBeenSet; }
43 template <typename ChatContactMetricsT = ChatContactMetrics>
44 void SetChatContactMetrics(ChatContactMetricsT&& value) {
45 m_chatContactMetricsHasBeenSet = true;
46 m_chatContactMetrics = std::forward<ChatContactMetricsT>(value);
47 }
48 template <typename ChatContactMetricsT = ChatContactMetrics>
49 ChatMetrics& WithChatContactMetrics(ChatContactMetricsT&& value) {
50 SetChatContactMetrics(std::forward<ChatContactMetricsT>(value));
51 return *this;
52 }
54
56
59 inline const ParticipantMetrics& GetAgentMetrics() const { return m_agentMetrics; }
60 inline bool AgentMetricsHasBeenSet() const { return m_agentMetricsHasBeenSet; }
61 template <typename AgentMetricsT = ParticipantMetrics>
62 void SetAgentMetrics(AgentMetricsT&& value) {
63 m_agentMetricsHasBeenSet = true;
64 m_agentMetrics = std::forward<AgentMetricsT>(value);
65 }
66 template <typename AgentMetricsT = ParticipantMetrics>
67 ChatMetrics& WithAgentMetrics(AgentMetricsT&& value) {
68 SetAgentMetrics(std::forward<AgentMetricsT>(value));
69 return *this;
70 }
72
74
77 inline const ParticipantMetrics& GetCustomerMetrics() const { return m_customerMetrics; }
78 inline bool CustomerMetricsHasBeenSet() const { return m_customerMetricsHasBeenSet; }
79 template <typename CustomerMetricsT = ParticipantMetrics>
80 void SetCustomerMetrics(CustomerMetricsT&& value) {
81 m_customerMetricsHasBeenSet = true;
82 m_customerMetrics = std::forward<CustomerMetricsT>(value);
83 }
84 template <typename CustomerMetricsT = ParticipantMetrics>
85 ChatMetrics& WithCustomerMetrics(CustomerMetricsT&& value) {
86 SetCustomerMetrics(std::forward<CustomerMetricsT>(value));
87 return *this;
88 }
90 private:
91 ChatContactMetrics m_chatContactMetrics;
92
93 ParticipantMetrics m_agentMetrics;
94
95 ParticipantMetrics m_customerMetrics;
96 bool m_chatContactMetricsHasBeenSet = false;
97 bool m_agentMetricsHasBeenSet = false;
98 bool m_customerMetricsHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Connect
103} // namespace Aws
bool ChatContactMetricsHasBeenSet() const
Definition ChatMetrics.h:42
void SetCustomerMetrics(CustomerMetricsT &&value)
Definition ChatMetrics.h:80
void SetChatContactMetrics(ChatContactMetricsT &&value)
Definition ChatMetrics.h:44
AWS_CONNECT_API ChatMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
const ChatContactMetrics & GetChatContactMetrics() const
Definition ChatMetrics.h:41
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API ChatMetrics()=default
AWS_CONNECT_API ChatMetrics(Aws::Utils::Json::JsonView jsonValue)
void SetAgentMetrics(AgentMetricsT &&value)
Definition ChatMetrics.h:62
const ParticipantMetrics & GetAgentMetrics() const
Definition ChatMetrics.h:59
ChatMetrics & WithCustomerMetrics(CustomerMetricsT &&value)
Definition ChatMetrics.h:85
ChatMetrics & WithAgentMetrics(AgentMetricsT &&value)
Definition ChatMetrics.h:67
ChatMetrics & WithChatContactMetrics(ChatContactMetricsT &&value)
Definition ChatMetrics.h:49
const ParticipantMetrics & GetCustomerMetrics() const
Definition ChatMetrics.h:77
Aws::Utils::Json::JsonValue JsonValue