AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateUserNotificationStatusRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/NotificationStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Connect {
17namespace Model {
18
22 public:
23 AWS_CONNECT_API UpdateUserNotificationStatusRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateUserNotificationStatus"; }
30
31 AWS_CONNECT_API Aws::String SerializePayload() const override;
32
34
36
41 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
42 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
43 template <typename InstanceIdT = Aws::String>
44 void SetInstanceId(InstanceIdT&& value) {
45 m_instanceIdHasBeenSet = true;
46 m_instanceId = std::forward<InstanceIdT>(value);
47 }
48 template <typename InstanceIdT = Aws::String>
50 SetInstanceId(std::forward<InstanceIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetNotificationId() const { return m_notificationId; }
60 inline bool NotificationIdHasBeenSet() const { return m_notificationIdHasBeenSet; }
61 template <typename NotificationIdT = Aws::String>
62 void SetNotificationId(NotificationIdT&& value) {
63 m_notificationIdHasBeenSet = true;
64 m_notificationId = std::forward<NotificationIdT>(value);
65 }
66 template <typename NotificationIdT = Aws::String>
68 SetNotificationId(std::forward<NotificationIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetUserId() const { return m_userId; }
78 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
79 template <typename UserIdT = Aws::String>
80 void SetUserId(UserIdT&& value) {
81 m_userIdHasBeenSet = true;
82 m_userId = std::forward<UserIdT>(value);
83 }
84 template <typename UserIdT = Aws::String>
86 SetUserId(std::forward<UserIdT>(value));
87 return *this;
88 }
90
92
96 inline NotificationStatus GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(NotificationStatus value) {
99 m_statusHasBeenSet = true;
100 m_status = value;
101 }
103 SetStatus(value);
104 return *this;
105 }
107
109
113 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
114 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
115 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
116 void SetLastModifiedTime(LastModifiedTimeT&& value) {
117 m_lastModifiedTimeHasBeenSet = true;
118 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
119 }
120 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
122 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
133 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
134 template <typename LastModifiedRegionT = Aws::String>
135 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
136 m_lastModifiedRegionHasBeenSet = true;
137 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
138 }
139 template <typename LastModifiedRegionT = Aws::String>
141 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_instanceId;
147
148 Aws::String m_notificationId;
149
150 Aws::String m_userId;
151
153
154 Aws::Utils::DateTime m_lastModifiedTime{};
155
156 Aws::String m_lastModifiedRegion;
157 bool m_instanceIdHasBeenSet = false;
158 bool m_notificationIdHasBeenSet = false;
159 bool m_userIdHasBeenSet = false;
160 bool m_statusHasBeenSet = false;
161 bool m_lastModifiedTimeHasBeenSet = false;
162 bool m_lastModifiedRegionHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace Connect
167} // namespace Aws
UpdateUserNotificationStatusRequest & WithUserId(UserIdT &&value)
UpdateUserNotificationStatusRequest & WithLastModifiedRegion(LastModifiedRegionT &&value)
AWS_CONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CONNECT_API Aws::String SerializePayload() const override
UpdateUserNotificationStatusRequest & WithInstanceId(InstanceIdT &&value)
UpdateUserNotificationStatusRequest & WithLastModifiedTime(LastModifiedTimeT &&value)
UpdateUserNotificationStatusRequest & WithStatus(NotificationStatus value)
UpdateUserNotificationStatusRequest & WithNotificationId(NotificationIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String