AWS SDK for C++

AWS SDK for C++ Version 1.11.902

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/appintegrations/AppIntegrationsServiceRequest.h>
8#include <aws/appintegrations/AppIntegrationsService_EXPORTS.h>
9#include <aws/appintegrations/model/ApplicationConfig.h>
10#include <aws/appintegrations/model/ApplicationSourceConfig.h>
11#include <aws/appintegrations/model/ApplicationType.h>
12#include <aws/appintegrations/model/AuthConfig.h>
13#include <aws/appintegrations/model/IframeConfig.h>
14#include <aws/core/utils/UUID.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22namespace AppIntegrationsService {
23namespace Model {
24
28 public:
29 AWS_APPINTEGRATIONSSERVICE_API CreateApplicationRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
36
37 AWS_APPINTEGRATIONSSERVICE_API Aws::String SerializePayload() const override;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetNamespace() const { return m_namespace; }
62 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
63 template <typename NamespaceT = Aws::String>
64 void SetNamespace(NamespaceT&& value) {
65 m_namespaceHasBeenSet = true;
66 m_namespace = std::forward<NamespaceT>(value);
67 }
68 template <typename NamespaceT = Aws::String>
70 SetNamespace(std::forward<NamespaceT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
97 inline const ApplicationSourceConfig& GetApplicationSourceConfig() const { return m_applicationSourceConfig; }
98 inline bool ApplicationSourceConfigHasBeenSet() const { return m_applicationSourceConfigHasBeenSet; }
99 template <typename ApplicationSourceConfigT = ApplicationSourceConfig>
100 void SetApplicationSourceConfig(ApplicationSourceConfigT&& value) {
101 m_applicationSourceConfigHasBeenSet = true;
102 m_applicationSourceConfig = std::forward<ApplicationSourceConfigT>(value);
103 }
104 template <typename ApplicationSourceConfigT = ApplicationSourceConfig>
105 CreateApplicationRequest& WithApplicationSourceConfig(ApplicationSourceConfigT&& value) {
106 SetApplicationSourceConfig(std::forward<ApplicationSourceConfigT>(value));
107 return *this;
108 }
110
112
119 inline const Aws::String& GetClientToken() const { return m_clientToken; }
120 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
121 template <typename ClientTokenT = Aws::String>
122 void SetClientToken(ClientTokenT&& value) {
123 m_clientTokenHasBeenSet = true;
124 m_clientToken = std::forward<ClientTokenT>(value);
125 }
126 template <typename ClientTokenT = Aws::String>
128 SetClientToken(std::forward<ClientTokenT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
139 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
140 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
141 void SetTags(TagsT&& value) {
142 m_tagsHasBeenSet = true;
143 m_tags = std::forward<TagsT>(value);
144 }
145 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
147 SetTags(std::forward<TagsT>(value));
148 return *this;
149 }
150 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
151 CreateApplicationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
152 m_tagsHasBeenSet = true;
153 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
154 return *this;
155 }
157
159
163 inline const Aws::Vector<Aws::String>& GetPermissions() const { return m_permissions; }
164 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
165 template <typename PermissionsT = Aws::Vector<Aws::String>>
166 void SetPermissions(PermissionsT&& value) {
167 m_permissionsHasBeenSet = true;
168 m_permissions = std::forward<PermissionsT>(value);
169 }
170 template <typename PermissionsT = Aws::Vector<Aws::String>>
172 SetPermissions(std::forward<PermissionsT>(value));
173 return *this;
174 }
175 template <typename PermissionsT = Aws::String>
177 m_permissionsHasBeenSet = true;
178 m_permissions.emplace_back(std::forward<PermissionsT>(value));
179 return *this;
180 }
182
184
188 inline int GetInitializationTimeout() const { return m_initializationTimeout; }
189 inline bool InitializationTimeoutHasBeenSet() const { return m_initializationTimeoutHasBeenSet; }
190 inline void SetInitializationTimeout(int value) {
191 m_initializationTimeoutHasBeenSet = true;
192 m_initializationTimeout = value;
193 }
196 return *this;
197 }
199
201
204 inline const ApplicationConfig& GetApplicationConfig() const { return m_applicationConfig; }
205 inline bool ApplicationConfigHasBeenSet() const { return m_applicationConfigHasBeenSet; }
206 template <typename ApplicationConfigT = ApplicationConfig>
207 void SetApplicationConfig(ApplicationConfigT&& value) {
208 m_applicationConfigHasBeenSet = true;
209 m_applicationConfig = std::forward<ApplicationConfigT>(value);
210 }
211 template <typename ApplicationConfigT = ApplicationConfig>
212 CreateApplicationRequest& WithApplicationConfig(ApplicationConfigT&& value) {
213 SetApplicationConfig(std::forward<ApplicationConfigT>(value));
214 return *this;
215 }
217
219
222 inline const IframeConfig& GetIframeConfig() const { return m_iframeConfig; }
223 inline bool IframeConfigHasBeenSet() const { return m_iframeConfigHasBeenSet; }
224 template <typename IframeConfigT = IframeConfig>
225 void SetIframeConfig(IframeConfigT&& value) {
226 m_iframeConfigHasBeenSet = true;
227 m_iframeConfig = std::forward<IframeConfigT>(value);
228 }
229 template <typename IframeConfigT = IframeConfig>
231 SetIframeConfig(std::forward<IframeConfigT>(value));
232 return *this;
233 }
235
237
240 inline ApplicationType GetApplicationType() const { return m_applicationType; }
241 inline bool ApplicationTypeHasBeenSet() const { return m_applicationTypeHasBeenSet; }
243 m_applicationTypeHasBeenSet = true;
244 m_applicationType = value;
245 }
247 SetApplicationType(value);
248 return *this;
249 }
251
253
257 inline const AuthConfig& GetAuthConfig() const { return m_authConfig; }
258 inline bool AuthConfigHasBeenSet() const { return m_authConfigHasBeenSet; }
259 template <typename AuthConfigT = AuthConfig>
260 void SetAuthConfig(AuthConfigT&& value) {
261 m_authConfigHasBeenSet = true;
262 m_authConfig = std::forward<AuthConfigT>(value);
263 }
264 template <typename AuthConfigT = AuthConfig>
266 SetAuthConfig(std::forward<AuthConfigT>(value));
267 return *this;
268 }
270 private:
271 Aws::String m_name;
272
273 Aws::String m_namespace;
274
275 Aws::String m_description;
276
277 ApplicationSourceConfig m_applicationSourceConfig;
278
280
282
283 Aws::Vector<Aws::String> m_permissions;
284
285 int m_initializationTimeout{0};
286
287 ApplicationConfig m_applicationConfig;
288
289 IframeConfig m_iframeConfig;
290
291 ApplicationType m_applicationType{ApplicationType::NOT_SET};
292
293 AuthConfig m_authConfig;
294 bool m_nameHasBeenSet = false;
295 bool m_namespaceHasBeenSet = false;
296 bool m_descriptionHasBeenSet = false;
297 bool m_applicationSourceConfigHasBeenSet = false;
298 bool m_clientTokenHasBeenSet = true;
299 bool m_tagsHasBeenSet = false;
300 bool m_permissionsHasBeenSet = false;
301 bool m_initializationTimeoutHasBeenSet = false;
302 bool m_applicationConfigHasBeenSet = false;
303 bool m_iframeConfigHasBeenSet = false;
304 bool m_applicationTypeHasBeenSet = false;
305 bool m_authConfigHasBeenSet = false;
306};
307
308} // namespace Model
309} // namespace AppIntegrationsService
310} // namespace Aws
CreateApplicationRequest & WithPermissions(PermissionsT &&value)
CreateApplicationRequest & WithIframeConfig(IframeConfigT &&value)
AWS_APPINTEGRATIONSSERVICE_API Aws::String SerializePayload() const override
AWS_APPINTEGRATIONSSERVICE_API CreateApplicationRequest()=default
CreateApplicationRequest & WithClientToken(ClientTokenT &&value)
CreateApplicationRequest & WithApplicationConfig(ApplicationConfigT &&value)
CreateApplicationRequest & AddPermissions(PermissionsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateApplicationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateApplicationRequest & WithDescription(DescriptionT &&value)
CreateApplicationRequest & WithApplicationSourceConfig(ApplicationSourceConfigT &&value)
CreateApplicationRequest & WithNamespace(NamespaceT &&value)
CreateApplicationRequest & WithAuthConfig(AuthConfigT &&value)
CreateApplicationRequest & WithApplicationType(ApplicationType value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector