AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateComponentRequest.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/imagebuilder/ImagebuilderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/imagebuilder/model/Platform.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace imagebuilder
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IMAGEBUILDER_API CreateComponentRequest() = default;
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 "CreateComponent"; }
35
36 AWS_IMAGEBUILDER_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 template<typename NameT = Aws::String>
46 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
47 template<typename NameT = Aws::String>
48 CreateComponentRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
50
52
65 inline const Aws::String& GetSemanticVersion() const { return m_semanticVersion; }
66 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
67 template<typename SemanticVersionT = Aws::String>
68 void SetSemanticVersion(SemanticVersionT&& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = std::forward<SemanticVersionT>(value); }
69 template<typename SemanticVersionT = Aws::String>
70 CreateComponentRequest& WithSemanticVersion(SemanticVersionT&& value) { SetSemanticVersion(std::forward<SemanticVersionT>(value)); return *this;}
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template<typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
81 template<typename DescriptionT = Aws::String>
82 CreateComponentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
84
86
91 inline const Aws::String& GetChangeDescription() const { return m_changeDescription; }
92 inline bool ChangeDescriptionHasBeenSet() const { return m_changeDescriptionHasBeenSet; }
93 template<typename ChangeDescriptionT = Aws::String>
94 void SetChangeDescription(ChangeDescriptionT&& value) { m_changeDescriptionHasBeenSet = true; m_changeDescription = std::forward<ChangeDescriptionT>(value); }
95 template<typename ChangeDescriptionT = Aws::String>
96 CreateComponentRequest& WithChangeDescription(ChangeDescriptionT&& value) { SetChangeDescription(std::forward<ChangeDescriptionT>(value)); return *this;}
98
100
103 inline Platform GetPlatform() const { return m_platform; }
104 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
105 inline void SetPlatform(Platform value) { m_platformHasBeenSet = true; m_platform = value; }
106 inline CreateComponentRequest& WithPlatform(Platform value) { SetPlatform(value); return *this;}
108
110
115 inline const Aws::Vector<Aws::String>& GetSupportedOsVersions() const { return m_supportedOsVersions; }
116 inline bool SupportedOsVersionsHasBeenSet() const { return m_supportedOsVersionsHasBeenSet; }
117 template<typename SupportedOsVersionsT = Aws::Vector<Aws::String>>
118 void SetSupportedOsVersions(SupportedOsVersionsT&& value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions = std::forward<SupportedOsVersionsT>(value); }
119 template<typename SupportedOsVersionsT = Aws::Vector<Aws::String>>
120 CreateComponentRequest& WithSupportedOsVersions(SupportedOsVersionsT&& value) { SetSupportedOsVersions(std::forward<SupportedOsVersionsT>(value)); return *this;}
121 template<typename SupportedOsVersionsT = Aws::String>
122 CreateComponentRequest& AddSupportedOsVersions(SupportedOsVersionsT&& value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions.emplace_back(std::forward<SupportedOsVersionsT>(value)); return *this; }
124
126
132 inline const Aws::String& GetData() const { return m_data; }
133 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
134 template<typename DataT = Aws::String>
135 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
136 template<typename DataT = Aws::String>
137 CreateComponentRequest& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
139
141
149 inline const Aws::String& GetUri() const { return m_uri; }
150 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
151 template<typename UriT = Aws::String>
152 void SetUri(UriT&& value) { m_uriHasBeenSet = true; m_uri = std::forward<UriT>(value); }
153 template<typename UriT = Aws::String>
154 CreateComponentRequest& WithUri(UriT&& value) { SetUri(std::forward<UriT>(value)); return *this;}
156
158
161 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
162 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
163 template<typename KmsKeyIdT = Aws::String>
164 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
165 template<typename KmsKeyIdT = Aws::String>
166 CreateComponentRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
168
170
173 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
174 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
175 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
176 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
177 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
178 CreateComponentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
179 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
180 CreateComponentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
181 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
182 }
184
186
192 inline const Aws::String& GetClientToken() const { return m_clientToken; }
193 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
194 template<typename ClientTokenT = Aws::String>
195 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
196 template<typename ClientTokenT = Aws::String>
197 CreateComponentRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
199 private:
200
201 Aws::String m_name;
202 bool m_nameHasBeenSet = false;
203
204 Aws::String m_semanticVersion;
205 bool m_semanticVersionHasBeenSet = false;
206
207 Aws::String m_description;
208 bool m_descriptionHasBeenSet = false;
209
210 Aws::String m_changeDescription;
211 bool m_changeDescriptionHasBeenSet = false;
212
213 Platform m_platform{Platform::NOT_SET};
214 bool m_platformHasBeenSet = false;
215
216 Aws::Vector<Aws::String> m_supportedOsVersions;
217 bool m_supportedOsVersionsHasBeenSet = false;
218
219 Aws::String m_data;
220 bool m_dataHasBeenSet = false;
221
222 Aws::String m_uri;
223 bool m_uriHasBeenSet = false;
224
225 Aws::String m_kmsKeyId;
226 bool m_kmsKeyIdHasBeenSet = false;
227
229 bool m_tagsHasBeenSet = false;
230
232 bool m_clientTokenHasBeenSet = true;
233 };
234
235} // namespace Model
236} // namespace imagebuilder
237} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
virtual const char * GetServiceRequestName() const override
CreateComponentRequest & WithName(NameT &&value)
const Aws::Vector< Aws::String > & GetSupportedOsVersions() const
CreateComponentRequest & WithDescription(DescriptionT &&value)
CreateComponentRequest & AddSupportedOsVersions(SupportedOsVersionsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateComponentRequest & WithTags(TagsT &&value)
AWS_IMAGEBUILDER_API CreateComponentRequest()=default
CreateComponentRequest & WithSupportedOsVersions(SupportedOsVersionsT &&value)
CreateComponentRequest & WithData(DataT &&value)
CreateComponentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateComponentRequest & WithUri(UriT &&value)
CreateComponentRequest & WithChangeDescription(ChangeDescriptionT &&value)
CreateComponentRequest & WithPlatform(Platform value)
CreateComponentRequest & WithClientToken(ClientTokenT &&value)
void SetSupportedOsVersions(SupportedOsVersionsT &&value)
CreateComponentRequest & WithSemanticVersion(SemanticVersionT &&value)
CreateComponentRequest & WithKmsKeyId(KmsKeyIdT &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
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