AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AgentContactReference.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/Channel.h>
10#include <aws/connect/model/ContactInitiationMethod.h>
11#include <aws/connect/model/ContactState.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/connect/model/QueueReference.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Connect
27{
28namespace Model
29{
30
39 {
40 public:
41 AWS_CONNECT_API AgentContactReference();
44 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetContactId() const{ return m_contactId; }
52 inline bool ContactIdHasBeenSet() const { return m_contactIdHasBeenSet; }
53 inline void SetContactId(const Aws::String& value) { m_contactIdHasBeenSet = true; m_contactId = value; }
54 inline void SetContactId(Aws::String&& value) { m_contactIdHasBeenSet = true; m_contactId = std::move(value); }
55 inline void SetContactId(const char* value) { m_contactIdHasBeenSet = true; m_contactId.assign(value); }
56 inline AgentContactReference& WithContactId(const Aws::String& value) { SetContactId(value); return *this;}
57 inline AgentContactReference& WithContactId(Aws::String&& value) { SetContactId(std::move(value)); return *this;}
58 inline AgentContactReference& WithContactId(const char* value) { SetContactId(value); return *this;}
60
62
65 inline const Channel& GetChannel() const{ return m_channel; }
66 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
67 inline void SetChannel(const Channel& value) { m_channelHasBeenSet = true; m_channel = value; }
68 inline void SetChannel(Channel&& value) { m_channelHasBeenSet = true; m_channel = std::move(value); }
69 inline AgentContactReference& WithChannel(const Channel& value) { SetChannel(value); return *this;}
70 inline AgentContactReference& WithChannel(Channel&& value) { SetChannel(std::move(value)); return *this;}
72
74
77 inline const ContactInitiationMethod& GetInitiationMethod() const{ return m_initiationMethod; }
78 inline bool InitiationMethodHasBeenSet() const { return m_initiationMethodHasBeenSet; }
79 inline void SetInitiationMethod(const ContactInitiationMethod& value) { m_initiationMethodHasBeenSet = true; m_initiationMethod = value; }
80 inline void SetInitiationMethod(ContactInitiationMethod&& value) { m_initiationMethodHasBeenSet = true; m_initiationMethod = std::move(value); }
84
86
94 inline const ContactState& GetAgentContactState() const{ return m_agentContactState; }
95 inline bool AgentContactStateHasBeenSet() const { return m_agentContactStateHasBeenSet; }
96 inline void SetAgentContactState(const ContactState& value) { m_agentContactStateHasBeenSet = true; m_agentContactState = value; }
97 inline void SetAgentContactState(ContactState&& value) { m_agentContactStateHasBeenSet = true; m_agentContactState = std::move(value); }
99 inline AgentContactReference& WithAgentContactState(ContactState&& value) { SetAgentContactState(std::move(value)); return *this;}
101
103
106 inline const Aws::Utils::DateTime& GetStateStartTimestamp() const{ return m_stateStartTimestamp; }
107 inline bool StateStartTimestampHasBeenSet() const { return m_stateStartTimestampHasBeenSet; }
108 inline void SetStateStartTimestamp(const Aws::Utils::DateTime& value) { m_stateStartTimestampHasBeenSet = true; m_stateStartTimestamp = value; }
109 inline void SetStateStartTimestamp(Aws::Utils::DateTime&& value) { m_stateStartTimestampHasBeenSet = true; m_stateStartTimestamp = std::move(value); }
113
115
118 inline const Aws::Utils::DateTime& GetConnectedToAgentTimestamp() const{ return m_connectedToAgentTimestamp; }
119 inline bool ConnectedToAgentTimestampHasBeenSet() const { return m_connectedToAgentTimestampHasBeenSet; }
120 inline void SetConnectedToAgentTimestamp(const Aws::Utils::DateTime& value) { m_connectedToAgentTimestampHasBeenSet = true; m_connectedToAgentTimestamp = value; }
121 inline void SetConnectedToAgentTimestamp(Aws::Utils::DateTime&& value) { m_connectedToAgentTimestampHasBeenSet = true; m_connectedToAgentTimestamp = std::move(value); }
125
127
128 inline const QueueReference& GetQueue() const{ return m_queue; }
129 inline bool QueueHasBeenSet() const { return m_queueHasBeenSet; }
130 inline void SetQueue(const QueueReference& value) { m_queueHasBeenSet = true; m_queue = value; }
131 inline void SetQueue(QueueReference&& value) { m_queueHasBeenSet = true; m_queue = std::move(value); }
132 inline AgentContactReference& WithQueue(const QueueReference& value) { SetQueue(value); return *this;}
133 inline AgentContactReference& WithQueue(QueueReference&& value) { SetQueue(std::move(value)); return *this;}
135 private:
136
137 Aws::String m_contactId;
138 bool m_contactIdHasBeenSet = false;
139
140 Channel m_channel;
141 bool m_channelHasBeenSet = false;
142
143 ContactInitiationMethod m_initiationMethod;
144 bool m_initiationMethodHasBeenSet = false;
145
146 ContactState m_agentContactState;
147 bool m_agentContactStateHasBeenSet = false;
148
149 Aws::Utils::DateTime m_stateStartTimestamp;
150 bool m_stateStartTimestampHasBeenSet = false;
151
152 Aws::Utils::DateTime m_connectedToAgentTimestamp;
153 bool m_connectedToAgentTimestampHasBeenSet = false;
154
155 QueueReference m_queue;
156 bool m_queueHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace Connect
161} // namespace Aws
const Aws::Utils::DateTime & GetConnectedToAgentTimestamp() const
void SetConnectedToAgentTimestamp(Aws::Utils::DateTime &&value)
void SetInitiationMethod(const ContactInitiationMethod &value)
AgentContactReference & WithInitiationMethod(const ContactInitiationMethod &value)
AWS_CONNECT_API AgentContactReference & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAgentContactState(const ContactState &value)
void SetStateStartTimestamp(const Aws::Utils::DateTime &value)
const ContactInitiationMethod & GetInitiationMethod() const
AgentContactReference & WithConnectedToAgentTimestamp(const Aws::Utils::DateTime &value)
void SetInitiationMethod(ContactInitiationMethod &&value)
AgentContactReference & WithChannel(Channel &&value)
AgentContactReference & WithQueue(const QueueReference &value)
AgentContactReference & WithStateStartTimestamp(Aws::Utils::DateTime &&value)
AgentContactReference & WithStateStartTimestamp(const Aws::Utils::DateTime &value)
AgentContactReference & WithInitiationMethod(ContactInitiationMethod &&value)
AWS_CONNECT_API AgentContactReference(Aws::Utils::Json::JsonView jsonValue)
AgentContactReference & WithAgentContactState(const ContactState &value)
AgentContactReference & WithContactId(const Aws::String &value)
void SetConnectedToAgentTimestamp(const Aws::Utils::DateTime &value)
const ContactState & GetAgentContactState() const
AgentContactReference & WithConnectedToAgentTimestamp(Aws::Utils::DateTime &&value)
void SetQueue(const QueueReference &value)
AgentContactReference & WithContactId(Aws::String &&value)
void SetStateStartTimestamp(Aws::Utils::DateTime &&value)
AgentContactReference & WithContactId(const char *value)
AgentContactReference & WithAgentContactState(ContactState &&value)
const Aws::Utils::DateTime & GetStateStartTimestamp() const
AgentContactReference & WithQueue(QueueReference &&value)
AgentContactReference & WithChannel(const Channel &value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue