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/serverlessrepo/ServerlessApplicationRepository_EXPORTS.h>
8#include <aws/serverlessrepo/ServerlessApplicationRepositoryRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ServerlessApplicationRepository
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SERVERLESSAPPLICATIONREPOSITORY_API CreateApplicationRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
32
33 AWS_SERVERLESSAPPLICATIONREPOSITORY_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetAuthor() const{ return m_author; }
42 inline bool AuthorHasBeenSet() const { return m_authorHasBeenSet; }
43 inline void SetAuthor(const Aws::String& value) { m_authorHasBeenSet = true; m_author = value; }
44 inline void SetAuthor(Aws::String&& value) { m_authorHasBeenSet = true; m_author = std::move(value); }
45 inline void SetAuthor(const char* value) { m_authorHasBeenSet = true; m_author.assign(value); }
46 inline CreateApplicationRequest& WithAuthor(const Aws::String& value) { SetAuthor(value); return *this;}
47 inline CreateApplicationRequest& WithAuthor(Aws::String&& value) { SetAuthor(std::move(value)); return *this;}
48 inline CreateApplicationRequest& WithAuthor(const char* value) { SetAuthor(value); return *this;}
50
52
56 inline const Aws::String& GetDescription() const{ return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
59 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
60 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
61 inline CreateApplicationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
62 inline CreateApplicationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
63 inline CreateApplicationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
65
67
71 inline const Aws::String& GetHomePageUrl() const{ return m_homePageUrl; }
72 inline bool HomePageUrlHasBeenSet() const { return m_homePageUrlHasBeenSet; }
73 inline void SetHomePageUrl(const Aws::String& value) { m_homePageUrlHasBeenSet = true; m_homePageUrl = value; }
74 inline void SetHomePageUrl(Aws::String&& value) { m_homePageUrlHasBeenSet = true; m_homePageUrl = std::move(value); }
75 inline void SetHomePageUrl(const char* value) { m_homePageUrlHasBeenSet = true; m_homePageUrl.assign(value); }
76 inline CreateApplicationRequest& WithHomePageUrl(const Aws::String& value) { SetHomePageUrl(value); return *this;}
77 inline CreateApplicationRequest& WithHomePageUrl(Aws::String&& value) { SetHomePageUrl(std::move(value)); return *this;}
78 inline CreateApplicationRequest& WithHomePageUrl(const char* value) { SetHomePageUrl(value); return *this;}
80
82
87 inline const Aws::Vector<Aws::String>& GetLabels() const{ return m_labels; }
88 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
89 inline void SetLabels(const Aws::Vector<Aws::String>& value) { m_labelsHasBeenSet = true; m_labels = value; }
90 inline void SetLabels(Aws::Vector<Aws::String>&& value) { m_labelsHasBeenSet = true; m_labels = std::move(value); }
91 inline CreateApplicationRequest& WithLabels(const Aws::Vector<Aws::String>& value) { SetLabels(value); return *this;}
92 inline CreateApplicationRequest& WithLabels(Aws::Vector<Aws::String>&& value) { SetLabels(std::move(value)); return *this;}
93 inline CreateApplicationRequest& AddLabels(const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
94 inline CreateApplicationRequest& AddLabels(Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.push_back(std::move(value)); return *this; }
95 inline CreateApplicationRequest& AddLabels(const char* value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
97
99
106 inline const Aws::String& GetLicenseBody() const{ return m_licenseBody; }
107 inline bool LicenseBodyHasBeenSet() const { return m_licenseBodyHasBeenSet; }
108 inline void SetLicenseBody(const Aws::String& value) { m_licenseBodyHasBeenSet = true; m_licenseBody = value; }
109 inline void SetLicenseBody(Aws::String&& value) { m_licenseBodyHasBeenSet = true; m_licenseBody = std::move(value); }
110 inline void SetLicenseBody(const char* value) { m_licenseBodyHasBeenSet = true; m_licenseBody.assign(value); }
111 inline CreateApplicationRequest& WithLicenseBody(const Aws::String& value) { SetLicenseBody(value); return *this;}
112 inline CreateApplicationRequest& WithLicenseBody(Aws::String&& value) { SetLicenseBody(std::move(value)); return *this;}
113 inline CreateApplicationRequest& WithLicenseBody(const char* value) { SetLicenseBody(value); return *this;}
115
117
122 inline const Aws::String& GetLicenseUrl() const{ return m_licenseUrl; }
123 inline bool LicenseUrlHasBeenSet() const { return m_licenseUrlHasBeenSet; }
124 inline void SetLicenseUrl(const Aws::String& value) { m_licenseUrlHasBeenSet = true; m_licenseUrl = value; }
125 inline void SetLicenseUrl(Aws::String&& value) { m_licenseUrlHasBeenSet = true; m_licenseUrl = std::move(value); }
126 inline void SetLicenseUrl(const char* value) { m_licenseUrlHasBeenSet = true; m_licenseUrl.assign(value); }
127 inline CreateApplicationRequest& WithLicenseUrl(const Aws::String& value) { SetLicenseUrl(value); return *this;}
128 inline CreateApplicationRequest& WithLicenseUrl(Aws::String&& value) { SetLicenseUrl(std::move(value)); return *this;}
129 inline CreateApplicationRequest& WithLicenseUrl(const char* value) { SetLicenseUrl(value); return *this;}
131
133
137 inline const Aws::String& GetName() const{ return m_name; }
138 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
139 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
140 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
141 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
142 inline CreateApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
143 inline CreateApplicationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
144 inline CreateApplicationRequest& WithName(const char* value) { SetName(value); return *this;}
146
148
155 inline const Aws::String& GetReadmeBody() const{ return m_readmeBody; }
156 inline bool ReadmeBodyHasBeenSet() const { return m_readmeBodyHasBeenSet; }
157 inline void SetReadmeBody(const Aws::String& value) { m_readmeBodyHasBeenSet = true; m_readmeBody = value; }
158 inline void SetReadmeBody(Aws::String&& value) { m_readmeBodyHasBeenSet = true; m_readmeBody = std::move(value); }
159 inline void SetReadmeBody(const char* value) { m_readmeBodyHasBeenSet = true; m_readmeBody.assign(value); }
160 inline CreateApplicationRequest& WithReadmeBody(const Aws::String& value) { SetReadmeBody(value); return *this;}
161 inline CreateApplicationRequest& WithReadmeBody(Aws::String&& value) { SetReadmeBody(std::move(value)); return *this;}
162 inline CreateApplicationRequest& WithReadmeBody(const char* value) { SetReadmeBody(value); return *this;}
164
166
172 inline const Aws::String& GetReadmeUrl() const{ return m_readmeUrl; }
173 inline bool ReadmeUrlHasBeenSet() const { return m_readmeUrlHasBeenSet; }
174 inline void SetReadmeUrl(const Aws::String& value) { m_readmeUrlHasBeenSet = true; m_readmeUrl = value; }
175 inline void SetReadmeUrl(Aws::String&& value) { m_readmeUrlHasBeenSet = true; m_readmeUrl = std::move(value); }
176 inline void SetReadmeUrl(const char* value) { m_readmeUrlHasBeenSet = true; m_readmeUrl.assign(value); }
177 inline CreateApplicationRequest& WithReadmeUrl(const Aws::String& value) { SetReadmeUrl(value); return *this;}
178 inline CreateApplicationRequest& WithReadmeUrl(Aws::String&& value) { SetReadmeUrl(std::move(value)); return *this;}
179 inline CreateApplicationRequest& WithReadmeUrl(const char* value) { SetReadmeUrl(value); return *this;}
181
183
189 inline const Aws::String& GetSemanticVersion() const{ return m_semanticVersion; }
190 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
191 inline void SetSemanticVersion(const Aws::String& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = value; }
192 inline void SetSemanticVersion(Aws::String&& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = std::move(value); }
193 inline void SetSemanticVersion(const char* value) { m_semanticVersionHasBeenSet = true; m_semanticVersion.assign(value); }
194 inline CreateApplicationRequest& WithSemanticVersion(const Aws::String& value) { SetSemanticVersion(value); return *this;}
195 inline CreateApplicationRequest& WithSemanticVersion(Aws::String&& value) { SetSemanticVersion(std::move(value)); return *this;}
196 inline CreateApplicationRequest& WithSemanticVersion(const char* value) { SetSemanticVersion(value); return *this;}
198
200
204 inline const Aws::String& GetSourceCodeArchiveUrl() const{ return m_sourceCodeArchiveUrl; }
205 inline bool SourceCodeArchiveUrlHasBeenSet() const { return m_sourceCodeArchiveUrlHasBeenSet; }
206 inline void SetSourceCodeArchiveUrl(const Aws::String& value) { m_sourceCodeArchiveUrlHasBeenSet = true; m_sourceCodeArchiveUrl = value; }
207 inline void SetSourceCodeArchiveUrl(Aws::String&& value) { m_sourceCodeArchiveUrlHasBeenSet = true; m_sourceCodeArchiveUrl = std::move(value); }
208 inline void SetSourceCodeArchiveUrl(const char* value) { m_sourceCodeArchiveUrlHasBeenSet = true; m_sourceCodeArchiveUrl.assign(value); }
211 inline CreateApplicationRequest& WithSourceCodeArchiveUrl(const char* value) { SetSourceCodeArchiveUrl(value); return *this;}
213
215
219 inline const Aws::String& GetSourceCodeUrl() const{ return m_sourceCodeUrl; }
220 inline bool SourceCodeUrlHasBeenSet() const { return m_sourceCodeUrlHasBeenSet; }
221 inline void SetSourceCodeUrl(const Aws::String& value) { m_sourceCodeUrlHasBeenSet = true; m_sourceCodeUrl = value; }
222 inline void SetSourceCodeUrl(Aws::String&& value) { m_sourceCodeUrlHasBeenSet = true; m_sourceCodeUrl = std::move(value); }
223 inline void SetSourceCodeUrl(const char* value) { m_sourceCodeUrlHasBeenSet = true; m_sourceCodeUrl.assign(value); }
224 inline CreateApplicationRequest& WithSourceCodeUrl(const Aws::String& value) { SetSourceCodeUrl(value); return *this;}
225 inline CreateApplicationRequest& WithSourceCodeUrl(Aws::String&& value) { SetSourceCodeUrl(std::move(value)); return *this;}
226 inline CreateApplicationRequest& WithSourceCodeUrl(const char* value) { SetSourceCodeUrl(value); return *this;}
228
230
234 inline const Aws::String& GetSpdxLicenseId() const{ return m_spdxLicenseId; }
235 inline bool SpdxLicenseIdHasBeenSet() const { return m_spdxLicenseIdHasBeenSet; }
236 inline void SetSpdxLicenseId(const Aws::String& value) { m_spdxLicenseIdHasBeenSet = true; m_spdxLicenseId = value; }
237 inline void SetSpdxLicenseId(Aws::String&& value) { m_spdxLicenseIdHasBeenSet = true; m_spdxLicenseId = std::move(value); }
238 inline void SetSpdxLicenseId(const char* value) { m_spdxLicenseIdHasBeenSet = true; m_spdxLicenseId.assign(value); }
239 inline CreateApplicationRequest& WithSpdxLicenseId(const Aws::String& value) { SetSpdxLicenseId(value); return *this;}
240 inline CreateApplicationRequest& WithSpdxLicenseId(Aws::String&& value) { SetSpdxLicenseId(std::move(value)); return *this;}
241 inline CreateApplicationRequest& WithSpdxLicenseId(const char* value) { SetSpdxLicenseId(value); return *this;}
243
245
251 inline const Aws::String& GetTemplateBody() const{ return m_templateBody; }
252 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
253 inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; }
254 inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::move(value); }
255 inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); }
256 inline CreateApplicationRequest& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;}
257 inline CreateApplicationRequest& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); return *this;}
258 inline CreateApplicationRequest& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;}
260
262
267 inline const Aws::String& GetTemplateUrl() const{ return m_templateUrl; }
268 inline bool TemplateUrlHasBeenSet() const { return m_templateUrlHasBeenSet; }
269 inline void SetTemplateUrl(const Aws::String& value) { m_templateUrlHasBeenSet = true; m_templateUrl = value; }
270 inline void SetTemplateUrl(Aws::String&& value) { m_templateUrlHasBeenSet = true; m_templateUrl = std::move(value); }
271 inline void SetTemplateUrl(const char* value) { m_templateUrlHasBeenSet = true; m_templateUrl.assign(value); }
272 inline CreateApplicationRequest& WithTemplateUrl(const Aws::String& value) { SetTemplateUrl(value); return *this;}
273 inline CreateApplicationRequest& WithTemplateUrl(Aws::String&& value) { SetTemplateUrl(std::move(value)); return *this;}
274 inline CreateApplicationRequest& WithTemplateUrl(const char* value) { SetTemplateUrl(value); return *this;}
276 private:
277
278 Aws::String m_author;
279 bool m_authorHasBeenSet = false;
280
281 Aws::String m_description;
282 bool m_descriptionHasBeenSet = false;
283
284 Aws::String m_homePageUrl;
285 bool m_homePageUrlHasBeenSet = false;
286
288 bool m_labelsHasBeenSet = false;
289
290 Aws::String m_licenseBody;
291 bool m_licenseBodyHasBeenSet = false;
292
293 Aws::String m_licenseUrl;
294 bool m_licenseUrlHasBeenSet = false;
295
296 Aws::String m_name;
297 bool m_nameHasBeenSet = false;
298
299 Aws::String m_readmeBody;
300 bool m_readmeBodyHasBeenSet = false;
301
302 Aws::String m_readmeUrl;
303 bool m_readmeUrlHasBeenSet = false;
304
305 Aws::String m_semanticVersion;
306 bool m_semanticVersionHasBeenSet = false;
307
308 Aws::String m_sourceCodeArchiveUrl;
309 bool m_sourceCodeArchiveUrlHasBeenSet = false;
310
311 Aws::String m_sourceCodeUrl;
312 bool m_sourceCodeUrlHasBeenSet = false;
313
314 Aws::String m_spdxLicenseId;
315 bool m_spdxLicenseIdHasBeenSet = false;
316
317 Aws::String m_templateBody;
318 bool m_templateBodyHasBeenSet = false;
319
320 Aws::String m_templateUrl;
321 bool m_templateUrlHasBeenSet = false;
322 };
323
324} // namespace Model
325} // namespace ServerlessApplicationRepository
326} // namespace Aws
CreateApplicationRequest & AddLabels(const Aws::String &value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API CreateApplicationRequest()
CreateApplicationRequest & WithAuthor(const Aws::String &value)
CreateApplicationRequest & WithDescription(const Aws::String &value)
CreateApplicationRequest & WithLabels(Aws::Vector< Aws::String > &&value)
CreateApplicationRequest & WithLicenseUrl(const Aws::String &value)
CreateApplicationRequest & WithTemplateUrl(const Aws::String &value)
CreateApplicationRequest & WithLabels(const Aws::Vector< Aws::String > &value)
CreateApplicationRequest & WithReadmeBody(const Aws::String &value)
CreateApplicationRequest & WithSpdxLicenseId(const Aws::String &value)
CreateApplicationRequest & WithTemplateBody(const Aws::String &value)
CreateApplicationRequest & WithHomePageUrl(const Aws::String &value)
CreateApplicationRequest & WithSemanticVersion(const Aws::String &value)
CreateApplicationRequest & WithSourceCodeArchiveUrl(const Aws::String &value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API Aws::String SerializePayload() const override
CreateApplicationRequest & WithReadmeUrl(const Aws::String &value)
CreateApplicationRequest & WithSourceCodeUrl(const Aws::String &value)
CreateApplicationRequest & WithLicenseBody(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector