AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
UpdatePackageVersionRequest.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/PackageVersionAction.h>
13#include <aws/iot/model/PackageVersionArtifact.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Http {
19class URI;
20} // namespace Http
21namespace IoT {
22namespace Model {
23
27 public:
28 AWS_IOT_API UpdatePackageVersionRequest() = 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 "UpdatePackageVersion"; }
35
36 AWS_IOT_API Aws::String SerializePayload() const override;
37
38 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
44 inline const Aws::String& GetPackageName() const { return m_packageName; }
45 inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; }
46 template <typename PackageNameT = Aws::String>
47 void SetPackageName(PackageNameT&& value) {
48 m_packageNameHasBeenSet = true;
49 m_packageName = std::forward<PackageNameT>(value);
50 }
51 template <typename PackageNameT = Aws::String>
53 SetPackageName(std::forward<PackageNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetVersionName() const { return m_versionName; }
63 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
64 template <typename VersionNameT = Aws::String>
65 void SetVersionName(VersionNameT&& value) {
66 m_versionNameHasBeenSet = true;
67 m_versionName = std::forward<VersionNameT>(value);
68 }
69 template <typename VersionNameT = Aws::String>
71 SetVersionName(std::forward<VersionNameT>(value));
72 return *this;
73 }
75
77
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
102 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
103 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
104 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
105 void SetAttributes(AttributesT&& value) {
106 m_attributesHasBeenSet = true;
107 m_attributes = std::forward<AttributesT>(value);
108 }
109 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
111 SetAttributes(std::forward<AttributesT>(value));
112 return *this;
113 }
114 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
115 UpdatePackageVersionRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
116 m_attributesHasBeenSet = true;
117 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
118 return *this;
119 }
121
123
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
147 inline PackageVersionAction GetAction() const { return m_action; }
148 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
149 inline void SetAction(PackageVersionAction value) {
150 m_actionHasBeenSet = true;
151 m_action = value;
152 }
154 SetAction(value);
155 return *this;
156 }
158
160
164 inline const Aws::String& GetRecipe() const { return m_recipe; }
165 inline bool RecipeHasBeenSet() const { return m_recipeHasBeenSet; }
166 template <typename RecipeT = Aws::String>
167 void SetRecipe(RecipeT&& value) {
168 m_recipeHasBeenSet = true;
169 m_recipe = std::forward<RecipeT>(value);
170 }
171 template <typename RecipeT = Aws::String>
173 SetRecipe(std::forward<RecipeT>(value));
174 return *this;
175 }
177
179
184 inline const Aws::String& GetClientToken() const { return m_clientToken; }
185 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
186 template <typename ClientTokenT = Aws::String>
187 void SetClientToken(ClientTokenT&& value) {
188 m_clientTokenHasBeenSet = true;
189 m_clientToken = std::forward<ClientTokenT>(value);
190 }
191 template <typename ClientTokenT = Aws::String>
193 SetClientToken(std::forward<ClientTokenT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_packageName;
199
200 Aws::String m_versionName;
201
202 Aws::String m_description;
203
205
206 PackageVersionArtifact m_artifact;
207
209
210 Aws::String m_recipe;
211
213 bool m_packageNameHasBeenSet = false;
214 bool m_versionNameHasBeenSet = false;
215 bool m_descriptionHasBeenSet = false;
216 bool m_attributesHasBeenSet = false;
217 bool m_artifactHasBeenSet = false;
218 bool m_actionHasBeenSet = false;
219 bool m_recipeHasBeenSet = false;
220 bool m_clientTokenHasBeenSet = true;
221};
222
223} // namespace Model
224} // namespace IoT
225} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_IOT_API Aws::String SerializePayload() const override
UpdatePackageVersionRequest & WithDescription(DescriptionT &&value)
UpdatePackageVersionRequest & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
UpdatePackageVersionRequest & WithVersionName(VersionNameT &&value)
UpdatePackageVersionRequest & WithPackageName(PackageNameT &&value)
UpdatePackageVersionRequest & WithArtifact(ArtifactT &&value)
UpdatePackageVersionRequest & WithAction(PackageVersionAction value)
UpdatePackageVersionRequest & WithClientToken(ClientTokenT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
UpdatePackageVersionRequest & WithAttributes(AttributesT &&value)
const PackageVersionArtifact & GetArtifact() const
UpdatePackageVersionRequest & WithRecipe(RecipeT &&value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_IOT_API UpdatePackageVersionRequest()=default
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