AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdatePackageVersionRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/iot/model/PackageVersionArtifact.h>
12#include <aws/iot/model/PackageVersionAction.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace IoT
23{
24namespace Model
25{
26
30 {
31 public:
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "UpdatePackageVersion"; }
39
40 AWS_IOT_API Aws::String SerializePayload() const override;
41
42 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
49 inline const Aws::String& GetPackageName() const{ return m_packageName; }
50 inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; }
51 inline void SetPackageName(const Aws::String& value) { m_packageNameHasBeenSet = true; m_packageName = value; }
52 inline void SetPackageName(Aws::String&& value) { m_packageNameHasBeenSet = true; m_packageName = std::move(value); }
53 inline void SetPackageName(const char* value) { m_packageNameHasBeenSet = true; m_packageName.assign(value); }
54 inline UpdatePackageVersionRequest& WithPackageName(const Aws::String& value) { SetPackageName(value); return *this;}
55 inline UpdatePackageVersionRequest& WithPackageName(Aws::String&& value) { SetPackageName(std::move(value)); return *this;}
56 inline UpdatePackageVersionRequest& WithPackageName(const char* value) { SetPackageName(value); return *this;}
58
60
63 inline const Aws::String& GetVersionName() const{ return m_versionName; }
64 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
65 inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; }
66 inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); }
67 inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); }
68 inline UpdatePackageVersionRequest& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;}
69 inline UpdatePackageVersionRequest& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;}
70 inline UpdatePackageVersionRequest& WithVersionName(const char* value) { SetVersionName(value); return *this;}
72
74
77 inline const Aws::String& GetDescription() const{ return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
80 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
81 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
82 inline UpdatePackageVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
83 inline UpdatePackageVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
84 inline UpdatePackageVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
86
88
95 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
96 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
97 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
98 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
101 inline UpdatePackageVersionRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
102 inline UpdatePackageVersionRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
103 inline UpdatePackageVersionRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
104 inline UpdatePackageVersionRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
105 inline UpdatePackageVersionRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
106 inline UpdatePackageVersionRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
107 inline UpdatePackageVersionRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
109
111
114 inline const PackageVersionArtifact& GetArtifact() const{ return m_artifact; }
115 inline bool ArtifactHasBeenSet() const { return m_artifactHasBeenSet; }
116 inline void SetArtifact(const PackageVersionArtifact& value) { m_artifactHasBeenSet = true; m_artifact = value; }
117 inline void SetArtifact(PackageVersionArtifact&& value) { m_artifactHasBeenSet = true; m_artifact = std::move(value); }
118 inline UpdatePackageVersionRequest& WithArtifact(const PackageVersionArtifact& value) { SetArtifact(value); return *this;}
119 inline UpdatePackageVersionRequest& WithArtifact(PackageVersionArtifact&& value) { SetArtifact(std::move(value)); return *this;}
121
123
129 inline const PackageVersionAction& GetAction() const{ return m_action; }
130 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
131 inline void SetAction(const PackageVersionAction& value) { m_actionHasBeenSet = true; m_action = value; }
132 inline void SetAction(PackageVersionAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
133 inline UpdatePackageVersionRequest& WithAction(const PackageVersionAction& value) { SetAction(value); return *this;}
134 inline UpdatePackageVersionRequest& WithAction(PackageVersionAction&& value) { SetAction(std::move(value)); return *this;}
136
138
142 inline const Aws::String& GetRecipe() const{ return m_recipe; }
143 inline bool RecipeHasBeenSet() const { return m_recipeHasBeenSet; }
144 inline void SetRecipe(const Aws::String& value) { m_recipeHasBeenSet = true; m_recipe = value; }
145 inline void SetRecipe(Aws::String&& value) { m_recipeHasBeenSet = true; m_recipe = std::move(value); }
146 inline void SetRecipe(const char* value) { m_recipeHasBeenSet = true; m_recipe.assign(value); }
147 inline UpdatePackageVersionRequest& WithRecipe(const Aws::String& value) { SetRecipe(value); return *this;}
148 inline UpdatePackageVersionRequest& WithRecipe(Aws::String&& value) { SetRecipe(std::move(value)); return *this;}
149 inline UpdatePackageVersionRequest& WithRecipe(const char* value) { SetRecipe(value); return *this;}
151
153
158 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
159 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
160 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
161 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
162 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
163 inline UpdatePackageVersionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
164 inline UpdatePackageVersionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
165 inline UpdatePackageVersionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
167 private:
168
169 Aws::String m_packageName;
170 bool m_packageNameHasBeenSet = false;
171
172 Aws::String m_versionName;
173 bool m_versionNameHasBeenSet = false;
174
175 Aws::String m_description;
176 bool m_descriptionHasBeenSet = false;
177
179 bool m_attributesHasBeenSet = false;
180
181 PackageVersionArtifact m_artifact;
182 bool m_artifactHasBeenSet = false;
183
184 PackageVersionAction m_action;
185 bool m_actionHasBeenSet = false;
186
187 Aws::String m_recipe;
188 bool m_recipeHasBeenSet = false;
189
190 Aws::String m_clientToken;
191 bool m_clientTokenHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace IoT
196} // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdatePackageVersionRequest & WithPackageName(const Aws::String &value)
UpdatePackageVersionRequest & WithDescription(const Aws::String &value)
UpdatePackageVersionRequest & WithArtifact(const PackageVersionArtifact &value)
UpdatePackageVersionRequest & WithClientToken(const Aws::String &value)
UpdatePackageVersionRequest & WithAction(PackageVersionAction &&value)
AWS_IOT_API Aws::String SerializePayload() const override
UpdatePackageVersionRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
UpdatePackageVersionRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
UpdatePackageVersionRequest & WithVersionName(const Aws::String &value)
UpdatePackageVersionRequest & WithVersionName(const char *value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
UpdatePackageVersionRequest & WithRecipe(const Aws::String &value)
UpdatePackageVersionRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
UpdatePackageVersionRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
UpdatePackageVersionRequest & AddAttributes(const char *key, const char *value)
UpdatePackageVersionRequest & WithDescription(Aws::String &&value)
UpdatePackageVersionRequest & AddAttributes(const char *key, Aws::String &&value)
void SetAction(const PackageVersionAction &value)
UpdatePackageVersionRequest & WithClientToken(Aws::String &&value)
UpdatePackageVersionRequest & WithPackageName(const char *value)
UpdatePackageVersionRequest & WithAction(const PackageVersionAction &value)
void SetArtifact(const PackageVersionArtifact &value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
UpdatePackageVersionRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
UpdatePackageVersionRequest & WithClientToken(const char *value)
UpdatePackageVersionRequest & AddAttributes(Aws::String &&key, const char *value)
UpdatePackageVersionRequest & WithPackageName(Aws::String &&value)
UpdatePackageVersionRequest & WithRecipe(const char *value)
UpdatePackageVersionRequest & WithArtifact(PackageVersionArtifact &&value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
UpdatePackageVersionRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
UpdatePackageVersionRequest & WithVersionName(Aws::String &&value)
UpdatePackageVersionRequest & WithRecipe(Aws::String &&value)
const PackageVersionArtifact & GetArtifact() const
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
UpdatePackageVersionRequest & WithDescription(const char *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