AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
CreateDelegationRequestRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iam/IAMRequest.h>
9#include <aws/iam/IAM_EXPORTS.h>
10#include <aws/iam/model/DelegationPermission.h>
11
12#include <utility>
13
14namespace Aws {
15namespace IAM {
16namespace Model {
17
21 public:
22 AWS_IAM_API CreateDelegationRequestRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateDelegationRequest"; }
29
30 AWS_IAM_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
44 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
45 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
46 template <typename OwnerAccountIdT = Aws::String>
47 void SetOwnerAccountId(OwnerAccountIdT&& value) {
48 m_ownerAccountIdHasBeenSet = true;
49 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
50 }
51 template <typename OwnerAccountIdT = Aws::String>
53 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template <typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) {
66 m_descriptionHasBeenSet = true;
67 m_description = std::forward<DescriptionT>(value);
68 }
69 template <typename DescriptionT = Aws::String>
71 SetDescription(std::forward<DescriptionT>(value));
72 return *this;
73 }
75
77
80 inline const DelegationPermission& GetPermissions() const { return m_permissions; }
81 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
82 template <typename PermissionsT = DelegationPermission>
83 void SetPermissions(PermissionsT&& value) {
84 m_permissionsHasBeenSet = true;
85 m_permissions = std::forward<PermissionsT>(value);
86 }
87 template <typename PermissionsT = DelegationPermission>
89 SetPermissions(std::forward<PermissionsT>(value));
90 return *this;
91 }
93
95
103 inline const Aws::String& GetRequestMessage() const { return m_requestMessage; }
104 inline bool RequestMessageHasBeenSet() const { return m_requestMessageHasBeenSet; }
105 template <typename RequestMessageT = Aws::String>
106 void SetRequestMessage(RequestMessageT&& value) {
107 m_requestMessageHasBeenSet = true;
108 m_requestMessage = std::forward<RequestMessageT>(value);
109 }
110 template <typename RequestMessageT = Aws::String>
112 SetRequestMessage(std::forward<RequestMessageT>(value));
113 return *this;
114 }
116
118
125 inline const Aws::String& GetRequestorWorkflowId() const { return m_requestorWorkflowId; }
126 inline bool RequestorWorkflowIdHasBeenSet() const { return m_requestorWorkflowIdHasBeenSet; }
127 template <typename RequestorWorkflowIdT = Aws::String>
128 void SetRequestorWorkflowId(RequestorWorkflowIdT&& value) {
129 m_requestorWorkflowIdHasBeenSet = true;
130 m_requestorWorkflowId = std::forward<RequestorWorkflowIdT>(value);
131 }
132 template <typename RequestorWorkflowIdT = Aws::String>
134 SetRequestorWorkflowId(std::forward<RequestorWorkflowIdT>(value));
135 return *this;
136 }
138
140
145 inline const Aws::String& GetRedirectUrl() const { return m_redirectUrl; }
146 inline bool RedirectUrlHasBeenSet() const { return m_redirectUrlHasBeenSet; }
147 template <typename RedirectUrlT = Aws::String>
148 void SetRedirectUrl(RedirectUrlT&& value) {
149 m_redirectUrlHasBeenSet = true;
150 m_redirectUrl = std::forward<RedirectUrlT>(value);
151 }
152 template <typename RedirectUrlT = Aws::String>
154 SetRedirectUrl(std::forward<RedirectUrlT>(value));
155 return *this;
156 }
158
160
168 inline const Aws::String& GetNotificationChannel() const { return m_notificationChannel; }
169 inline bool NotificationChannelHasBeenSet() const { return m_notificationChannelHasBeenSet; }
170 template <typename NotificationChannelT = Aws::String>
171 void SetNotificationChannel(NotificationChannelT&& value) {
172 m_notificationChannelHasBeenSet = true;
173 m_notificationChannel = std::forward<NotificationChannelT>(value);
174 }
175 template <typename NotificationChannelT = Aws::String>
177 SetNotificationChannel(std::forward<NotificationChannelT>(value));
178 return *this;
179 }
181
183
190 inline int GetSessionDuration() const { return m_sessionDuration; }
191 inline bool SessionDurationHasBeenSet() const { return m_sessionDurationHasBeenSet; }
192 inline void SetSessionDuration(int value) {
193 m_sessionDurationHasBeenSet = true;
194 m_sessionDuration = value;
195 }
197 SetSessionDuration(value);
198 return *this;
199 }
201
203
212 inline bool GetOnlySendByOwner() const { return m_onlySendByOwner; }
213 inline bool OnlySendByOwnerHasBeenSet() const { return m_onlySendByOwnerHasBeenSet; }
214 inline void SetOnlySendByOwner(bool value) {
215 m_onlySendByOwnerHasBeenSet = true;
216 m_onlySendByOwner = value;
217 }
219 SetOnlySendByOwner(value);
220 return *this;
221 }
223 private:
224 Aws::String m_ownerAccountId;
225
226 Aws::String m_description;
227
228 DelegationPermission m_permissions;
229
230 Aws::String m_requestMessage;
231
232 Aws::String m_requestorWorkflowId;
233
234 Aws::String m_redirectUrl;
235
236 Aws::String m_notificationChannel;
237
238 int m_sessionDuration{0};
239
240 bool m_onlySendByOwner{false};
241 bool m_ownerAccountIdHasBeenSet = false;
242 bool m_descriptionHasBeenSet = false;
243 bool m_permissionsHasBeenSet = false;
244 bool m_requestMessageHasBeenSet = false;
245 bool m_requestorWorkflowIdHasBeenSet = false;
246 bool m_redirectUrlHasBeenSet = false;
247 bool m_notificationChannelHasBeenSet = false;
248 bool m_sessionDurationHasBeenSet = false;
249 bool m_onlySendByOwnerHasBeenSet = false;
250};
251
252} // namespace Model
253} // namespace IAM
254} // namespace Aws
CreateDelegationRequestRequest & WithRequestMessage(RequestMessageT &&value)
CreateDelegationRequestRequest & WithOwnerAccountId(OwnerAccountIdT &&value)
CreateDelegationRequestRequest & WithSessionDuration(int value)
virtual const char * GetServiceRequestName() const override
CreateDelegationRequestRequest & WithDescription(DescriptionT &&value)
CreateDelegationRequestRequest & WithRequestorWorkflowId(RequestorWorkflowIdT &&value)
CreateDelegationRequestRequest & WithNotificationChannel(NotificationChannelT &&value)
AWS_IAM_API Aws::String SerializePayload() const override
CreateDelegationRequestRequest & WithOnlySendByOwner(bool value)
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateDelegationRequestRequest & WithPermissions(PermissionsT &&value)
CreateDelegationRequestRequest & WithRedirectUrl(RedirectUrlT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String