AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
CreatePackageVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/IoTRequest.h>
11#include <aws/iot/IoT_EXPORTS.h>
12#include <aws/iot/model/PackageVersionArtifact.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Http {
18class URI;
19} // namespace Http
20namespace IoT {
21namespace Model {
22
26 public:
27 AWS_IOT_API CreatePackageVersionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreatePackageVersion"; }
34
35 AWS_IOT_API Aws::String SerializePayload() const override;
36
37 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
43 inline const Aws::String& GetPackageName() const { return m_packageName; }
44 inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; }
45 template <typename PackageNameT = Aws::String>
46 void SetPackageName(PackageNameT&& value) {
47 m_packageNameHasBeenSet = true;
48 m_packageName = std::forward<PackageNameT>(value);
49 }
50 template <typename PackageNameT = Aws::String>
52 SetPackageName(std::forward<PackageNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetVersionName() const { return m_versionName; }
62 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
63 template <typename VersionNameT = Aws::String>
64 void SetVersionName(VersionNameT&& value) {
65 m_versionNameHasBeenSet = true;
66 m_versionName = std::forward<VersionNameT>(value);
67 }
68 template <typename VersionNameT = Aws::String>
70 SetVersionName(std::forward<VersionNameT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
101 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
102 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
103 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
104 void SetAttributes(AttributesT&& value) {
105 m_attributesHasBeenSet = true;
106 m_attributes = std::forward<AttributesT>(value);
107 }
108 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
110 SetAttributes(std::forward<AttributesT>(value));
111 return *this;
112 }
113 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
114 CreatePackageVersionRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
115 m_attributesHasBeenSet = true;
116 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
117 return *this;
118 }
120
122
126 inline const PackageVersionArtifact& GetArtifact() const { return m_artifact; }
127 inline bool ArtifactHasBeenSet() const { return m_artifactHasBeenSet; }
128 template <typename ArtifactT = PackageVersionArtifact>
129 void SetArtifact(ArtifactT&& value) {
130 m_artifactHasBeenSet = true;
131 m_artifact = std::forward<ArtifactT>(value);
132 }
133 template <typename ArtifactT = PackageVersionArtifact>
135 SetArtifact(std::forward<ArtifactT>(value));
136 return *this;
137 }
139
141
145 inline const Aws::String& GetRecipe() const { return m_recipe; }
146 inline bool RecipeHasBeenSet() const { return m_recipeHasBeenSet; }
147 template <typename RecipeT = Aws::String>
148 void SetRecipe(RecipeT&& value) {
149 m_recipeHasBeenSet = true;
150 m_recipe = std::forward<RecipeT>(value);
151 }
152 template <typename RecipeT = Aws::String>
154 SetRecipe(std::forward<RecipeT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
164 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
165 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
166 void SetTags(TagsT&& value) {
167 m_tagsHasBeenSet = true;
168 m_tags = std::forward<TagsT>(value);
169 }
170 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
172 SetTags(std::forward<TagsT>(value));
173 return *this;
174 }
175 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
176 CreatePackageVersionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
177 m_tagsHasBeenSet = true;
178 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
179 return *this;
180 }
182
184
189 inline const Aws::String& GetClientToken() const { return m_clientToken; }
190 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
191 template <typename ClientTokenT = Aws::String>
192 void SetClientToken(ClientTokenT&& value) {
193 m_clientTokenHasBeenSet = true;
194 m_clientToken = std::forward<ClientTokenT>(value);
195 }
196 template <typename ClientTokenT = Aws::String>
198 SetClientToken(std::forward<ClientTokenT>(value));
199 return *this;
200 }
202 private:
203 Aws::String m_packageName;
204 bool m_packageNameHasBeenSet = false;
205
206 Aws::String m_versionName;
207 bool m_versionNameHasBeenSet = false;
208
209 Aws::String m_description;
210 bool m_descriptionHasBeenSet = false;
211
213 bool m_attributesHasBeenSet = false;
214
215 PackageVersionArtifact m_artifact;
216 bool m_artifactHasBeenSet = false;
217
218 Aws::String m_recipe;
219 bool m_recipeHasBeenSet = false;
220
222 bool m_tagsHasBeenSet = false;
223
225 bool m_clientTokenHasBeenSet = true;
226};
227
228} // namespace Model
229} // namespace IoT
230} // namespace Aws
CreatePackageVersionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_IOT_API Aws::String SerializePayload() const override
CreatePackageVersionRequest & WithDescription(DescriptionT &&value)
CreatePackageVersionRequest & WithAttributes(AttributesT &&value)
CreatePackageVersionRequest & WithVersionName(VersionNameT &&value)
CreatePackageVersionRequest & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePackageVersionRequest & WithRecipe(RecipeT &&value)
CreatePackageVersionRequest & WithArtifact(ArtifactT &&value)
CreatePackageVersionRequest & WithClientToken(ClientTokenT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
virtual const char * GetServiceRequestName() const override
AWS_IOT_API CreatePackageVersionRequest()=default
const PackageVersionArtifact & GetArtifact() const
CreatePackageVersionRequest & WithTags(TagsT &&value)
CreatePackageVersionRequest & WithPackageName(PackageNameT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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