AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MonitorContactRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/connect/model/MonitorCapability.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace Connect
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CONNECT_API MonitorContactRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "MonitorContact"; }
34
35 AWS_CONNECT_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
44 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
45 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
46 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
47 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
48 inline MonitorContactRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
49 inline MonitorContactRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
50 inline MonitorContactRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
52
54
57 inline const Aws::String& GetContactId() const{ return m_contactId; }
58 inline bool ContactIdHasBeenSet() const { return m_contactIdHasBeenSet; }
59 inline void SetContactId(const Aws::String& value) { m_contactIdHasBeenSet = true; m_contactId = value; }
60 inline void SetContactId(Aws::String&& value) { m_contactIdHasBeenSet = true; m_contactId = std::move(value); }
61 inline void SetContactId(const char* value) { m_contactIdHasBeenSet = true; m_contactId.assign(value); }
62 inline MonitorContactRequest& WithContactId(const Aws::String& value) { SetContactId(value); return *this;}
63 inline MonitorContactRequest& WithContactId(Aws::String&& value) { SetContactId(std::move(value)); return *this;}
64 inline MonitorContactRequest& WithContactId(const char* value) { SetContactId(value); return *this;}
66
68
71 inline const Aws::String& GetUserId() const{ return m_userId; }
72 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
73 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
74 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
75 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
76 inline MonitorContactRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
77 inline MonitorContactRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
78 inline MonitorContactRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
80
82
87 inline const Aws::Vector<MonitorCapability>& GetAllowedMonitorCapabilities() const{ return m_allowedMonitorCapabilities; }
88 inline bool AllowedMonitorCapabilitiesHasBeenSet() const { return m_allowedMonitorCapabilitiesHasBeenSet; }
89 inline void SetAllowedMonitorCapabilities(const Aws::Vector<MonitorCapability>& value) { m_allowedMonitorCapabilitiesHasBeenSet = true; m_allowedMonitorCapabilities = value; }
90 inline void SetAllowedMonitorCapabilities(Aws::Vector<MonitorCapability>&& value) { m_allowedMonitorCapabilitiesHasBeenSet = true; m_allowedMonitorCapabilities = std::move(value); }
93 inline MonitorContactRequest& AddAllowedMonitorCapabilities(const MonitorCapability& value) { m_allowedMonitorCapabilitiesHasBeenSet = true; m_allowedMonitorCapabilities.push_back(value); return *this; }
94 inline MonitorContactRequest& AddAllowedMonitorCapabilities(MonitorCapability&& value) { m_allowedMonitorCapabilitiesHasBeenSet = true; m_allowedMonitorCapabilities.push_back(std::move(value)); return *this; }
96
98
105 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
106 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
107 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
108 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
109 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
110 inline MonitorContactRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
111 inline MonitorContactRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
112 inline MonitorContactRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
114 private:
115
116 Aws::String m_instanceId;
117 bool m_instanceIdHasBeenSet = false;
118
119 Aws::String m_contactId;
120 bool m_contactIdHasBeenSet = false;
121
122 Aws::String m_userId;
123 bool m_userIdHasBeenSet = false;
124
125 Aws::Vector<MonitorCapability> m_allowedMonitorCapabilities;
126 bool m_allowedMonitorCapabilitiesHasBeenSet = false;
127
128 Aws::String m_clientToken;
129 bool m_clientTokenHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace Connect
134} // namespace Aws
MonitorContactRequest & AddAllowedMonitorCapabilities(MonitorCapability &&value)
MonitorContactRequest & WithUserId(const Aws::String &value)
MonitorContactRequest & WithClientToken(const char *value)
virtual const char * GetServiceRequestName() const override
MonitorContactRequest & WithContactId(const Aws::String &value)
MonitorContactRequest & WithClientToken(Aws::String &&value)
MonitorContactRequest & WithInstanceId(const Aws::String &value)
AWS_CONNECT_API Aws::String SerializePayload() const override
MonitorContactRequest & AddAllowedMonitorCapabilities(const MonitorCapability &value)
MonitorContactRequest & WithUserId(const char *value)
const Aws::Vector< MonitorCapability > & GetAllowedMonitorCapabilities() const
MonitorContactRequest & WithAllowedMonitorCapabilities(Aws::Vector< MonitorCapability > &&value)
MonitorContactRequest & WithInstanceId(const char *value)
MonitorContactRequest & WithInstanceId(Aws::String &&value)
void SetAllowedMonitorCapabilities(Aws::Vector< MonitorCapability > &&value)
void SetAllowedMonitorCapabilities(const Aws::Vector< MonitorCapability > &value)
MonitorContactRequest & WithAllowedMonitorCapabilities(const Aws::Vector< MonitorCapability > &value)
MonitorContactRequest & WithContactId(Aws::String &&value)
MonitorContactRequest & WithUserId(Aws::String &&value)
MonitorContactRequest & WithClientToken(const Aws::String &value)
MonitorContactRequest & WithContactId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector