AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/appintegrations/AppIntegrationsService_EXPORTS.h>
8#include <aws/appintegrations/AppIntegrationsServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appintegrations/model/ApplicationSourceConfig.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace AppIntegrationsService
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_APPINTEGRATIONSSERVICE_API CreateApplicationRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
35
36 AWS_APPINTEGRATIONSSERVICE_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetName() const{ return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
46 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
47 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
48 inline CreateApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
49 inline CreateApplicationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
50 inline CreateApplicationRequest& WithName(const char* value) { SetName(value); return *this;}
52
54
57 inline const Aws::String& GetNamespace() const{ return m_namespace; }
58 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
59 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
60 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
61 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
62 inline CreateApplicationRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
63 inline CreateApplicationRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
64 inline CreateApplicationRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
66
68
71 inline const Aws::String& GetDescription() const{ return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
74 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
75 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
76 inline CreateApplicationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
77 inline CreateApplicationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
78 inline CreateApplicationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
80
82
85 inline const ApplicationSourceConfig& GetApplicationSourceConfig() const{ return m_applicationSourceConfig; }
86 inline bool ApplicationSourceConfigHasBeenSet() const { return m_applicationSourceConfigHasBeenSet; }
87 inline void SetApplicationSourceConfig(const ApplicationSourceConfig& value) { m_applicationSourceConfigHasBeenSet = true; m_applicationSourceConfig = value; }
88 inline void SetApplicationSourceConfig(ApplicationSourceConfig&& value) { m_applicationSourceConfigHasBeenSet = true; m_applicationSourceConfig = std::move(value); }
92
94
101 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
102 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
103 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
104 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
105 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
106 inline CreateApplicationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
107 inline CreateApplicationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
108 inline CreateApplicationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
110
112
116 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
119 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
121 inline CreateApplicationRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
122 inline CreateApplicationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
123 inline CreateApplicationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
124 inline CreateApplicationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
125 inline CreateApplicationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
126 inline CreateApplicationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
127 inline CreateApplicationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
128 inline CreateApplicationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
130
132
136 inline const Aws::Vector<Aws::String>& GetPermissions() const{ return m_permissions; }
137 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
138 inline void SetPermissions(const Aws::Vector<Aws::String>& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
139 inline void SetPermissions(Aws::Vector<Aws::String>&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
141 inline CreateApplicationRequest& WithPermissions(Aws::Vector<Aws::String>&& value) { SetPermissions(std::move(value)); return *this;}
142 inline CreateApplicationRequest& AddPermissions(const Aws::String& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
143 inline CreateApplicationRequest& AddPermissions(Aws::String&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; }
144 inline CreateApplicationRequest& AddPermissions(const char* value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
146 private:
147
148 Aws::String m_name;
149 bool m_nameHasBeenSet = false;
150
151 Aws::String m_namespace;
152 bool m_namespaceHasBeenSet = false;
153
154 Aws::String m_description;
155 bool m_descriptionHasBeenSet = false;
156
157 ApplicationSourceConfig m_applicationSourceConfig;
158 bool m_applicationSourceConfigHasBeenSet = false;
159
160 Aws::String m_clientToken;
161 bool m_clientTokenHasBeenSet = false;
162
164 bool m_tagsHasBeenSet = false;
165
166 Aws::Vector<Aws::String> m_permissions;
167 bool m_permissionsHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace AppIntegrationsService
172} // namespace Aws
CreateApplicationRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateApplicationRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateApplicationRequest & AddPermissions(const Aws::String &value)
CreateApplicationRequest & WithDescription(Aws::String &&value)
CreateApplicationRequest & AddTags(Aws::String &&key, const char *value)
void SetApplicationSourceConfig(const ApplicationSourceConfig &value)
CreateApplicationRequest & WithApplicationSourceConfig(const ApplicationSourceConfig &value)
CreateApplicationRequest & WithName(Aws::String &&value)
CreateApplicationRequest & AddTags(const Aws::String &key, Aws::String &&value)
AWS_APPINTEGRATIONSSERVICE_API Aws::String SerializePayload() const override
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateApplicationRequest & WithNamespace(Aws::String &&value)
CreateApplicationRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateApplicationRequest & WithClientToken(Aws::String &&value)
CreateApplicationRequest & AddTags(const char *key, const char *value)
CreateApplicationRequest & WithApplicationSourceConfig(ApplicationSourceConfig &&value)
CreateApplicationRequest & WithClientToken(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateApplicationRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateApplicationRequest & WithNamespace(const Aws::String &value)
CreateApplicationRequest & WithPermissions(Aws::Vector< Aws::String > &&value)
CreateApplicationRequest & AddPermissions(Aws::String &&value)
CreateApplicationRequest & WithNamespace(const char *value)
CreateApplicationRequest & WithDescription(const Aws::String &value)
CreateApplicationRequest & WithClientToken(const char *value)
CreateApplicationRequest & AddPermissions(const char *value)
CreateApplicationRequest & AddTags(const char *key, Aws::String &&value)
CreateApplicationRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateApplicationRequest & WithName(const Aws::String &value)
CreateApplicationRequest & WithPermissions(const Aws::Vector< Aws::String > &value)
CreateApplicationRequest & WithDescription(const char *value)
void SetPermissions(const Aws::Vector< Aws::String > &value)
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