AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
32 AWS_IOT_API UpdatePackageVersionRequest() = default;
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 template<typename PackageNameT = Aws::String>
52 void SetPackageName(PackageNameT&& value) { m_packageNameHasBeenSet = true; m_packageName = std::forward<PackageNameT>(value); }
53 template<typename PackageNameT = Aws::String>
54 UpdatePackageVersionRequest& WithPackageName(PackageNameT&& value) { SetPackageName(std::forward<PackageNameT>(value)); return *this;}
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) { m_versionNameHasBeenSet = true; m_versionName = std::forward<VersionNameT>(value); }
65 template<typename VersionNameT = Aws::String>
66 UpdatePackageVersionRequest& WithVersionName(VersionNameT&& value) { SetVersionName(std::forward<VersionNameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template<typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
77 template<typename DescriptionT = Aws::String>
78 UpdatePackageVersionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80
82
89 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
90 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
91 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
92 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
93 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
94 UpdatePackageVersionRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
95 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
96 UpdatePackageVersionRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
97 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
98 }
100
102
105 inline const PackageVersionArtifact& GetArtifact() const { return m_artifact; }
106 inline bool ArtifactHasBeenSet() const { return m_artifactHasBeenSet; }
107 template<typename ArtifactT = PackageVersionArtifact>
108 void SetArtifact(ArtifactT&& value) { m_artifactHasBeenSet = true; m_artifact = std::forward<ArtifactT>(value); }
109 template<typename ArtifactT = PackageVersionArtifact>
110 UpdatePackageVersionRequest& WithArtifact(ArtifactT&& value) { SetArtifact(std::forward<ArtifactT>(value)); return *this;}
112
114
120 inline PackageVersionAction GetAction() const { return m_action; }
121 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
122 inline void SetAction(PackageVersionAction value) { m_actionHasBeenSet = true; m_action = value; }
125
127
131 inline const Aws::String& GetRecipe() const { return m_recipe; }
132 inline bool RecipeHasBeenSet() const { return m_recipeHasBeenSet; }
133 template<typename RecipeT = Aws::String>
134 void SetRecipe(RecipeT&& value) { m_recipeHasBeenSet = true; m_recipe = std::forward<RecipeT>(value); }
135 template<typename RecipeT = Aws::String>
136 UpdatePackageVersionRequest& WithRecipe(RecipeT&& value) { SetRecipe(std::forward<RecipeT>(value)); return *this;}
138
140
145 inline const Aws::String& GetClientToken() const { return m_clientToken; }
146 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
147 template<typename ClientTokenT = Aws::String>
148 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
149 template<typename ClientTokenT = Aws::String>
150 UpdatePackageVersionRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
152 private:
153
154 Aws::String m_packageName;
155 bool m_packageNameHasBeenSet = false;
156
157 Aws::String m_versionName;
158 bool m_versionNameHasBeenSet = false;
159
160 Aws::String m_description;
161 bool m_descriptionHasBeenSet = false;
162
164 bool m_attributesHasBeenSet = false;
165
166 PackageVersionArtifact m_artifact;
167 bool m_artifactHasBeenSet = false;
168
170 bool m_actionHasBeenSet = false;
171
172 Aws::String m_recipe;
173 bool m_recipeHasBeenSet = false;
174
176 bool m_clientTokenHasBeenSet = true;
177 };
178
179} // namespace Model
180} // namespace IoT
181} // 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