AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AuthorT = Aws::String>
44 void SetAuthor(AuthorT&& value) { m_authorHasBeenSet = true; m_author = std::forward<AuthorT>(value); }
45 template<typename AuthorT = Aws::String>
46 CreateApplicationRequest& WithAuthor(AuthorT&& value) { SetAuthor(std::forward<AuthorT>(value)); return *this;}
48
50
54 inline const Aws::String& GetDescription() const { return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 template<typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
58 template<typename DescriptionT = Aws::String>
59 CreateApplicationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
61
63
67 inline const Aws::String& GetHomePageUrl() const { return m_homePageUrl; }
68 inline bool HomePageUrlHasBeenSet() const { return m_homePageUrlHasBeenSet; }
69 template<typename HomePageUrlT = Aws::String>
70 void SetHomePageUrl(HomePageUrlT&& value) { m_homePageUrlHasBeenSet = true; m_homePageUrl = std::forward<HomePageUrlT>(value); }
71 template<typename HomePageUrlT = Aws::String>
72 CreateApplicationRequest& WithHomePageUrl(HomePageUrlT&& value) { SetHomePageUrl(std::forward<HomePageUrlT>(value)); return *this;}
74
76
81 inline const Aws::Vector<Aws::String>& GetLabels() const { return m_labels; }
82 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
83 template<typename LabelsT = Aws::Vector<Aws::String>>
84 void SetLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels = std::forward<LabelsT>(value); }
85 template<typename LabelsT = Aws::Vector<Aws::String>>
86 CreateApplicationRequest& WithLabels(LabelsT&& value) { SetLabels(std::forward<LabelsT>(value)); return *this;}
87 template<typename LabelsT = Aws::String>
88 CreateApplicationRequest& AddLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels.emplace_back(std::forward<LabelsT>(value)); return *this; }
90
92
99 inline const Aws::String& GetLicenseBody() const { return m_licenseBody; }
100 inline bool LicenseBodyHasBeenSet() const { return m_licenseBodyHasBeenSet; }
101 template<typename LicenseBodyT = Aws::String>
102 void SetLicenseBody(LicenseBodyT&& value) { m_licenseBodyHasBeenSet = true; m_licenseBody = std::forward<LicenseBodyT>(value); }
103 template<typename LicenseBodyT = Aws::String>
104 CreateApplicationRequest& WithLicenseBody(LicenseBodyT&& value) { SetLicenseBody(std::forward<LicenseBodyT>(value)); return *this;}
106
108
113 inline const Aws::String& GetLicenseUrl() const { return m_licenseUrl; }
114 inline bool LicenseUrlHasBeenSet() const { return m_licenseUrlHasBeenSet; }
115 template<typename LicenseUrlT = Aws::String>
116 void SetLicenseUrl(LicenseUrlT&& value) { m_licenseUrlHasBeenSet = true; m_licenseUrl = std::forward<LicenseUrlT>(value); }
117 template<typename LicenseUrlT = Aws::String>
118 CreateApplicationRequest& WithLicenseUrl(LicenseUrlT&& value) { SetLicenseUrl(std::forward<LicenseUrlT>(value)); return *this;}
120
122
126 inline const Aws::String& GetName() const { return m_name; }
127 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
128 template<typename NameT = Aws::String>
129 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
130 template<typename NameT = Aws::String>
131 CreateApplicationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
133
135
142 inline const Aws::String& GetReadmeBody() const { return m_readmeBody; }
143 inline bool ReadmeBodyHasBeenSet() const { return m_readmeBodyHasBeenSet; }
144 template<typename ReadmeBodyT = Aws::String>
145 void SetReadmeBody(ReadmeBodyT&& value) { m_readmeBodyHasBeenSet = true; m_readmeBody = std::forward<ReadmeBodyT>(value); }
146 template<typename ReadmeBodyT = Aws::String>
147 CreateApplicationRequest& WithReadmeBody(ReadmeBodyT&& value) { SetReadmeBody(std::forward<ReadmeBodyT>(value)); return *this;}
149
151
157 inline const Aws::String& GetReadmeUrl() const { return m_readmeUrl; }
158 inline bool ReadmeUrlHasBeenSet() const { return m_readmeUrlHasBeenSet; }
159 template<typename ReadmeUrlT = Aws::String>
160 void SetReadmeUrl(ReadmeUrlT&& value) { m_readmeUrlHasBeenSet = true; m_readmeUrl = std::forward<ReadmeUrlT>(value); }
161 template<typename ReadmeUrlT = Aws::String>
162 CreateApplicationRequest& WithReadmeUrl(ReadmeUrlT&& value) { SetReadmeUrl(std::forward<ReadmeUrlT>(value)); return *this;}
164
166
172 inline const Aws::String& GetSemanticVersion() const { return m_semanticVersion; }
173 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
174 template<typename SemanticVersionT = Aws::String>
175 void SetSemanticVersion(SemanticVersionT&& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = std::forward<SemanticVersionT>(value); }
176 template<typename SemanticVersionT = Aws::String>
177 CreateApplicationRequest& WithSemanticVersion(SemanticVersionT&& value) { SetSemanticVersion(std::forward<SemanticVersionT>(value)); return *this;}
179
181
185 inline const Aws::String& GetSourceCodeArchiveUrl() const { return m_sourceCodeArchiveUrl; }
186 inline bool SourceCodeArchiveUrlHasBeenSet() const { return m_sourceCodeArchiveUrlHasBeenSet; }
187 template<typename SourceCodeArchiveUrlT = Aws::String>
188 void SetSourceCodeArchiveUrl(SourceCodeArchiveUrlT&& value) { m_sourceCodeArchiveUrlHasBeenSet = true; m_sourceCodeArchiveUrl = std::forward<SourceCodeArchiveUrlT>(value); }
189 template<typename SourceCodeArchiveUrlT = Aws::String>
190 CreateApplicationRequest& WithSourceCodeArchiveUrl(SourceCodeArchiveUrlT&& value) { SetSourceCodeArchiveUrl(std::forward<SourceCodeArchiveUrlT>(value)); return *this;}
192
194
198 inline const Aws::String& GetSourceCodeUrl() const { return m_sourceCodeUrl; }
199 inline bool SourceCodeUrlHasBeenSet() const { return m_sourceCodeUrlHasBeenSet; }
200 template<typename SourceCodeUrlT = Aws::String>
201 void SetSourceCodeUrl(SourceCodeUrlT&& value) { m_sourceCodeUrlHasBeenSet = true; m_sourceCodeUrl = std::forward<SourceCodeUrlT>(value); }
202 template<typename SourceCodeUrlT = Aws::String>
203 CreateApplicationRequest& WithSourceCodeUrl(SourceCodeUrlT&& value) { SetSourceCodeUrl(std::forward<SourceCodeUrlT>(value)); return *this;}
205
207
211 inline const Aws::String& GetSpdxLicenseId() const { return m_spdxLicenseId; }
212 inline bool SpdxLicenseIdHasBeenSet() const { return m_spdxLicenseIdHasBeenSet; }
213 template<typename SpdxLicenseIdT = Aws::String>
214 void SetSpdxLicenseId(SpdxLicenseIdT&& value) { m_spdxLicenseIdHasBeenSet = true; m_spdxLicenseId = std::forward<SpdxLicenseIdT>(value); }
215 template<typename SpdxLicenseIdT = Aws::String>
216 CreateApplicationRequest& WithSpdxLicenseId(SpdxLicenseIdT&& value) { SetSpdxLicenseId(std::forward<SpdxLicenseIdT>(value)); return *this;}
218
220
226 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
227 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
228 template<typename TemplateBodyT = Aws::String>
229 void SetTemplateBody(TemplateBodyT&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::forward<TemplateBodyT>(value); }
230 template<typename TemplateBodyT = Aws::String>
231 CreateApplicationRequest& WithTemplateBody(TemplateBodyT&& value) { SetTemplateBody(std::forward<TemplateBodyT>(value)); return *this;}
233
235
240 inline const Aws::String& GetTemplateUrl() const { return m_templateUrl; }
241 inline bool TemplateUrlHasBeenSet() const { return m_templateUrlHasBeenSet; }
242 template<typename TemplateUrlT = Aws::String>
243 void SetTemplateUrl(TemplateUrlT&& value) { m_templateUrlHasBeenSet = true; m_templateUrl = std::forward<TemplateUrlT>(value); }
244 template<typename TemplateUrlT = Aws::String>
245 CreateApplicationRequest& WithTemplateUrl(TemplateUrlT&& value) { SetTemplateUrl(std::forward<TemplateUrlT>(value)); return *this;}
247 private:
248
249 Aws::String m_author;
250 bool m_authorHasBeenSet = false;
251
252 Aws::String m_description;
253 bool m_descriptionHasBeenSet = false;
254
255 Aws::String m_homePageUrl;
256 bool m_homePageUrlHasBeenSet = false;
257
259 bool m_labelsHasBeenSet = false;
260
261 Aws::String m_licenseBody;
262 bool m_licenseBodyHasBeenSet = false;
263
264 Aws::String m_licenseUrl;
265 bool m_licenseUrlHasBeenSet = false;
266
267 Aws::String m_name;
268 bool m_nameHasBeenSet = false;
269
270 Aws::String m_readmeBody;
271 bool m_readmeBodyHasBeenSet = false;
272
273 Aws::String m_readmeUrl;
274 bool m_readmeUrlHasBeenSet = false;
275
276 Aws::String m_semanticVersion;
277 bool m_semanticVersionHasBeenSet = false;
278
279 Aws::String m_sourceCodeArchiveUrl;
280 bool m_sourceCodeArchiveUrlHasBeenSet = false;
281
282 Aws::String m_sourceCodeUrl;
283 bool m_sourceCodeUrlHasBeenSet = false;
284
285 Aws::String m_spdxLicenseId;
286 bool m_spdxLicenseIdHasBeenSet = false;
287
288 Aws::String m_templateBody;
289 bool m_templateBodyHasBeenSet = false;
290
291 Aws::String m_templateUrl;
292 bool m_templateUrlHasBeenSet = false;
293 };
294
295} // namespace Model
296} // namespace ServerlessApplicationRepository
297} // namespace Aws
CreateApplicationRequest & WithSemanticVersion(SemanticVersionT &&value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API CreateApplicationRequest()=default
CreateApplicationRequest & WithSourceCodeUrl(SourceCodeUrlT &&value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API Aws::String SerializePayload() const override
CreateApplicationRequest & WithSpdxLicenseId(SpdxLicenseIdT &&value)
CreateApplicationRequest & WithSourceCodeArchiveUrl(SourceCodeArchiveUrlT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector