AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ImportComponentRequest.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/ComponentType.h>
11#include <aws/imagebuilder/model/ComponentFormat.h>
12#include <aws/imagebuilder/model/Platform.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace imagebuilder
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_IMAGEBUILDER_API ImportComponentRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ImportComponent"; }
36
37 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 ImportComponentRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
63 inline const Aws::String& GetSemanticVersion() const { return m_semanticVersion; }
64 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
65 template<typename SemanticVersionT = Aws::String>
66 void SetSemanticVersion(SemanticVersionT&& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = std::forward<SemanticVersionT>(value); }
67 template<typename SemanticVersionT = Aws::String>
68 ImportComponentRequest& WithSemanticVersion(SemanticVersionT&& value) { SetSemanticVersion(std::forward<SemanticVersionT>(value)); return *this;}
70
72
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template<typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
80 template<typename DescriptionT = Aws::String>
81 ImportComponentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
83
85
90 inline const Aws::String& GetChangeDescription() const { return m_changeDescription; }
91 inline bool ChangeDescriptionHasBeenSet() const { return m_changeDescriptionHasBeenSet; }
92 template<typename ChangeDescriptionT = Aws::String>
93 void SetChangeDescription(ChangeDescriptionT&& value) { m_changeDescriptionHasBeenSet = true; m_changeDescription = std::forward<ChangeDescriptionT>(value); }
94 template<typename ChangeDescriptionT = Aws::String>
95 ImportComponentRequest& WithChangeDescription(ChangeDescriptionT&& value) { SetChangeDescription(std::forward<ChangeDescriptionT>(value)); return *this;}
97
99
103 inline ComponentType GetType() const { return m_type; }
104 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
105 inline void SetType(ComponentType value) { m_typeHasBeenSet = true; m_type = value; }
106 inline ImportComponentRequest& WithType(ComponentType value) { SetType(value); return *this;}
108
110
113 inline ComponentFormat GetFormat() const { return m_format; }
114 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
115 inline void SetFormat(ComponentFormat value) { m_formatHasBeenSet = true; m_format = value; }
116 inline ImportComponentRequest& WithFormat(ComponentFormat value) { SetFormat(value); return *this;}
118
120
123 inline Platform GetPlatform() const { return m_platform; }
124 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
125 inline void SetPlatform(Platform value) { m_platformHasBeenSet = true; m_platform = value; }
126 inline ImportComponentRequest& WithPlatform(Platform value) { SetPlatform(value); return *this;}
128
130
135 inline const Aws::String& GetData() const { return m_data; }
136 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
137 template<typename DataT = Aws::String>
138 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
139 template<typename DataT = Aws::String>
140 ImportComponentRequest& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
142
144
150 inline const Aws::String& GetUri() const { return m_uri; }
151 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
152 template<typename UriT = Aws::String>
153 void SetUri(UriT&& value) { m_uriHasBeenSet = true; m_uri = std::forward<UriT>(value); }
154 template<typename UriT = Aws::String>
155 ImportComponentRequest& WithUri(UriT&& value) { SetUri(std::forward<UriT>(value)); return *this;}
157
159
162 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
163 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
164 template<typename KmsKeyIdT = Aws::String>
165 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
166 template<typename KmsKeyIdT = Aws::String>
167 ImportComponentRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
169
171
174 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
175 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
176 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
177 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
178 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
179 ImportComponentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
180 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
181 ImportComponentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
182 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
183 }
185
187
193 inline const Aws::String& GetClientToken() const { return m_clientToken; }
194 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
195 template<typename ClientTokenT = Aws::String>
196 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
197 template<typename ClientTokenT = Aws::String>
198 ImportComponentRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
200 private:
201
202 Aws::String m_name;
203 bool m_nameHasBeenSet = false;
204
205 Aws::String m_semanticVersion;
206 bool m_semanticVersionHasBeenSet = false;
207
208 Aws::String m_description;
209 bool m_descriptionHasBeenSet = false;
210
211 Aws::String m_changeDescription;
212 bool m_changeDescriptionHasBeenSet = false;
213
215 bool m_typeHasBeenSet = false;
216
218 bool m_formatHasBeenSet = false;
219
220 Platform m_platform{Platform::NOT_SET};
221 bool m_platformHasBeenSet = false;
222
223 Aws::String m_data;
224 bool m_dataHasBeenSet = false;
225
226 Aws::String m_uri;
227 bool m_uriHasBeenSet = false;
228
229 Aws::String m_kmsKeyId;
230 bool m_kmsKeyIdHasBeenSet = false;
231
233 bool m_tagsHasBeenSet = false;
234
236 bool m_clientTokenHasBeenSet = true;
237 };
238
239} // namespace Model
240} // namespace imagebuilder
241} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
ImportComponentRequest & WithType(ComponentType value)
ImportComponentRequest & WithPlatform(Platform value)
ImportComponentRequest & WithKmsKeyId(KmsKeyIdT &&value)
ImportComponentRequest & WithSemanticVersion(SemanticVersionT &&value)
ImportComponentRequest & WithData(DataT &&value)
ImportComponentRequest & WithUri(UriT &&value)
ImportComponentRequest & WithTags(TagsT &&value)
AWS_IMAGEBUILDER_API ImportComponentRequest()=default
ImportComponentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ImportComponentRequest & WithClientToken(ClientTokenT &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
ImportComponentRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
ImportComponentRequest & WithChangeDescription(ChangeDescriptionT &&value)
ImportComponentRequest & WithDescription(DescriptionT &&value)
ImportComponentRequest & WithFormat(ComponentFormat 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