AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Version.h
1
6#pragma once
7#include <aws/serverlessrepo/ServerlessApplicationRepository_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/serverlessrepo/model/ParameterDefinition.h>
11#include <aws/serverlessrepo/model/Capability.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ServerlessApplicationRepository
25{
26namespace Model
27{
28
34 class Version
35 {
36 public:
37 AWS_SERVERLESSAPPLICATIONREPOSITORY_API Version();
38 AWS_SERVERLESSAPPLICATIONREPOSITORY_API Version(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SERVERLESSAPPLICATIONREPOSITORY_API Version& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SERVERLESSAPPLICATIONREPOSITORY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
48 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
49 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
50 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
51 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
52 inline Version& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
53 inline Version& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
54 inline Version& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
56
58
61 inline const Aws::String& GetCreationTime() const{ return m_creationTime; }
62 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
63 inline void SetCreationTime(const Aws::String& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
64 inline void SetCreationTime(Aws::String&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
65 inline void SetCreationTime(const char* value) { m_creationTimeHasBeenSet = true; m_creationTime.assign(value); }
66 inline Version& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;}
67 inline Version& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;}
68 inline Version& WithCreationTime(const char* value) { SetCreationTime(value); return *this;}
70
72
75 inline const Aws::Vector<ParameterDefinition>& GetParameterDefinitions() const{ return m_parameterDefinitions; }
76 inline bool ParameterDefinitionsHasBeenSet() const { return m_parameterDefinitionsHasBeenSet; }
77 inline void SetParameterDefinitions(const Aws::Vector<ParameterDefinition>& value) { m_parameterDefinitionsHasBeenSet = true; m_parameterDefinitions = value; }
78 inline void SetParameterDefinitions(Aws::Vector<ParameterDefinition>&& value) { m_parameterDefinitionsHasBeenSet = true; m_parameterDefinitions = std::move(value); }
81 inline Version& AddParameterDefinitions(const ParameterDefinition& value) { m_parameterDefinitionsHasBeenSet = true; m_parameterDefinitions.push_back(value); return *this; }
82 inline Version& AddParameterDefinitions(ParameterDefinition&& value) { m_parameterDefinitionsHasBeenSet = true; m_parameterDefinitions.push_back(std::move(value)); return *this; }
84
86
145 inline const Aws::Vector<Capability>& GetRequiredCapabilities() const{ return m_requiredCapabilities; }
146 inline bool RequiredCapabilitiesHasBeenSet() const { return m_requiredCapabilitiesHasBeenSet; }
147 inline void SetRequiredCapabilities(const Aws::Vector<Capability>& value) { m_requiredCapabilitiesHasBeenSet = true; m_requiredCapabilities = value; }
148 inline void SetRequiredCapabilities(Aws::Vector<Capability>&& value) { m_requiredCapabilitiesHasBeenSet = true; m_requiredCapabilities = std::move(value); }
150 inline Version& WithRequiredCapabilities(Aws::Vector<Capability>&& value) { SetRequiredCapabilities(std::move(value)); return *this;}
151 inline Version& AddRequiredCapabilities(const Capability& value) { m_requiredCapabilitiesHasBeenSet = true; m_requiredCapabilities.push_back(value); return *this; }
152 inline Version& AddRequiredCapabilities(Capability&& value) { m_requiredCapabilitiesHasBeenSet = true; m_requiredCapabilities.push_back(std::move(value)); return *this; }
154
156
161 inline bool GetResourcesSupported() const{ return m_resourcesSupported; }
162 inline bool ResourcesSupportedHasBeenSet() const { return m_resourcesSupportedHasBeenSet; }
163 inline void SetResourcesSupported(bool value) { m_resourcesSupportedHasBeenSet = true; m_resourcesSupported = value; }
164 inline Version& WithResourcesSupported(bool value) { SetResourcesSupported(value); return *this;}
166
168
174 inline const Aws::String& GetSemanticVersion() const{ return m_semanticVersion; }
175 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
176 inline void SetSemanticVersion(const Aws::String& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = value; }
177 inline void SetSemanticVersion(Aws::String&& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = std::move(value); }
178 inline void SetSemanticVersion(const char* value) { m_semanticVersionHasBeenSet = true; m_semanticVersion.assign(value); }
179 inline Version& WithSemanticVersion(const Aws::String& value) { SetSemanticVersion(value); return *this;}
180 inline Version& WithSemanticVersion(Aws::String&& value) { SetSemanticVersion(std::move(value)); return *this;}
181 inline Version& WithSemanticVersion(const char* value) { SetSemanticVersion(value); return *this;}
183
185
189 inline const Aws::String& GetSourceCodeArchiveUrl() const{ return m_sourceCodeArchiveUrl; }
190 inline bool SourceCodeArchiveUrlHasBeenSet() const { return m_sourceCodeArchiveUrlHasBeenSet; }
191 inline void SetSourceCodeArchiveUrl(const Aws::String& value) { m_sourceCodeArchiveUrlHasBeenSet = true; m_sourceCodeArchiveUrl = value; }
192 inline void SetSourceCodeArchiveUrl(Aws::String&& value) { m_sourceCodeArchiveUrlHasBeenSet = true; m_sourceCodeArchiveUrl = std::move(value); }
193 inline void SetSourceCodeArchiveUrl(const char* value) { m_sourceCodeArchiveUrlHasBeenSet = true; m_sourceCodeArchiveUrl.assign(value); }
194 inline Version& WithSourceCodeArchiveUrl(const Aws::String& value) { SetSourceCodeArchiveUrl(value); return *this;}
195 inline Version& WithSourceCodeArchiveUrl(Aws::String&& value) { SetSourceCodeArchiveUrl(std::move(value)); return *this;}
196 inline Version& WithSourceCodeArchiveUrl(const char* value) { SetSourceCodeArchiveUrl(value); return *this;}
198
200
204 inline const Aws::String& GetSourceCodeUrl() const{ return m_sourceCodeUrl; }
205 inline bool SourceCodeUrlHasBeenSet() const { return m_sourceCodeUrlHasBeenSet; }
206 inline void SetSourceCodeUrl(const Aws::String& value) { m_sourceCodeUrlHasBeenSet = true; m_sourceCodeUrl = value; }
207 inline void SetSourceCodeUrl(Aws::String&& value) { m_sourceCodeUrlHasBeenSet = true; m_sourceCodeUrl = std::move(value); }
208 inline void SetSourceCodeUrl(const char* value) { m_sourceCodeUrlHasBeenSet = true; m_sourceCodeUrl.assign(value); }
209 inline Version& WithSourceCodeUrl(const Aws::String& value) { SetSourceCodeUrl(value); return *this;}
210 inline Version& WithSourceCodeUrl(Aws::String&& value) { SetSourceCodeUrl(std::move(value)); return *this;}
211 inline Version& WithSourceCodeUrl(const char* value) { SetSourceCodeUrl(value); return *this;}
213
215
218 inline const Aws::String& GetTemplateUrl() const{ return m_templateUrl; }
219 inline bool TemplateUrlHasBeenSet() const { return m_templateUrlHasBeenSet; }
220 inline void SetTemplateUrl(const Aws::String& value) { m_templateUrlHasBeenSet = true; m_templateUrl = value; }
221 inline void SetTemplateUrl(Aws::String&& value) { m_templateUrlHasBeenSet = true; m_templateUrl = std::move(value); }
222 inline void SetTemplateUrl(const char* value) { m_templateUrlHasBeenSet = true; m_templateUrl.assign(value); }
223 inline Version& WithTemplateUrl(const Aws::String& value) { SetTemplateUrl(value); return *this;}
224 inline Version& WithTemplateUrl(Aws::String&& value) { SetTemplateUrl(std::move(value)); return *this;}
225 inline Version& WithTemplateUrl(const char* value) { SetTemplateUrl(value); return *this;}
227 private:
228
229 Aws::String m_applicationId;
230 bool m_applicationIdHasBeenSet = false;
231
232 Aws::String m_creationTime;
233 bool m_creationTimeHasBeenSet = false;
234
235 Aws::Vector<ParameterDefinition> m_parameterDefinitions;
236 bool m_parameterDefinitionsHasBeenSet = false;
237
238 Aws::Vector<Capability> m_requiredCapabilities;
239 bool m_requiredCapabilitiesHasBeenSet = false;
240
241 bool m_resourcesSupported;
242 bool m_resourcesSupportedHasBeenSet = false;
243
244 Aws::String m_semanticVersion;
245 bool m_semanticVersionHasBeenSet = false;
246
247 Aws::String m_sourceCodeArchiveUrl;
248 bool m_sourceCodeArchiveUrlHasBeenSet = false;
249
250 Aws::String m_sourceCodeUrl;
251 bool m_sourceCodeUrlHasBeenSet = false;
252
253 Aws::String m_templateUrl;
254 bool m_templateUrlHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace ServerlessApplicationRepository
259} // namespace Aws
Version & WithTemplateUrl(Aws::String &&value)
Definition Version.h:224
Version & WithApplicationId(Aws::String &&value)
Definition Version.h:53
Version & WithApplicationId(const char *value)
Definition Version.h:54
void SetSourceCodeUrl(const Aws::String &value)
Definition Version.h:206
Version & WithCreationTime(const char *value)
Definition Version.h:68
const Aws::Vector< Capability > & GetRequiredCapabilities() const
Definition Version.h:145
Version & WithRequiredCapabilities(Aws::Vector< Capability > &&value)
Definition Version.h:150
Version & WithRequiredCapabilities(const Aws::Vector< Capability > &value)
Definition Version.h:149
const Aws::String & GetSourceCodeArchiveUrl() const
Definition Version.h:189
Version & AddParameterDefinitions(const ParameterDefinition &value)
Definition Version.h:81
const Aws::Vector< ParameterDefinition > & GetParameterDefinitions() const
Definition Version.h:75
Version & WithParameterDefinitions(Aws::Vector< ParameterDefinition > &&value)
Definition Version.h:80
void SetSourceCodeArchiveUrl(const Aws::String &value)
Definition Version.h:191
Version & WithSourceCodeArchiveUrl(Aws::String &&value)
Definition Version.h:195
void SetSourceCodeArchiveUrl(Aws::String &&value)
Definition Version.h:192
Version & WithSourceCodeArchiveUrl(const Aws::String &value)
Definition Version.h:194
AWS_SERVERLESSAPPLICATIONREPOSITORY_API Version(Aws::Utils::Json::JsonView jsonValue)
Version & WithCreationTime(const Aws::String &value)
Definition Version.h:66
Version & AddRequiredCapabilities(const Capability &value)
Definition Version.h:151
const Aws::String & GetApplicationId() const
Definition Version.h:47
AWS_SERVERLESSAPPLICATIONREPOSITORY_API Version & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetParameterDefinitions(Aws::Vector< ParameterDefinition > &&value)
Definition Version.h:78
Version & WithSemanticVersion(Aws::String &&value)
Definition Version.h:180
AWS_SERVERLESSAPPLICATIONREPOSITORY_API Aws::Utils::Json::JsonValue Jsonize() const
Version & WithSourceCodeUrl(const char *value)
Definition Version.h:211
Version & WithSourceCodeUrl(const Aws::String &value)
Definition Version.h:209
Version & AddRequiredCapabilities(Capability &&value)
Definition Version.h:152
void SetCreationTime(const Aws::String &value)
Definition Version.h:63
void SetRequiredCapabilities(const Aws::Vector< Capability > &value)
Definition Version.h:147
Version & WithSourceCodeUrl(Aws::String &&value)
Definition Version.h:210
void SetParameterDefinitions(const Aws::Vector< ParameterDefinition > &value)
Definition Version.h:77
Version & WithTemplateUrl(const Aws::String &value)
Definition Version.h:223
Version & WithParameterDefinitions(const Aws::Vector< ParameterDefinition > &value)
Definition Version.h:79
Version & WithApplicationId(const Aws::String &value)
Definition Version.h:52
void SetRequiredCapabilities(Aws::Vector< Capability > &&value)
Definition Version.h:148
void SetTemplateUrl(const Aws::String &value)
Definition Version.h:220
Version & WithSemanticVersion(const char *value)
Definition Version.h:181
void SetApplicationId(const Aws::String &value)
Definition Version.h:49
Version & WithSourceCodeArchiveUrl(const char *value)
Definition Version.h:196
Version & WithCreationTime(Aws::String &&value)
Definition Version.h:67
AWS_SERVERLESSAPPLICATIONREPOSITORY_API Version()
Version & WithTemplateUrl(const char *value)
Definition Version.h:225
Version & AddParameterDefinitions(ParameterDefinition &&value)
Definition Version.h:82
const Aws::String & GetSemanticVersion() const
Definition Version.h:174
Version & WithSemanticVersion(const Aws::String &value)
Definition Version.h:179
void SetSemanticVersion(const Aws::String &value)
Definition Version.h:176
const Aws::String & GetCreationTime() const
Definition Version.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue