AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePackageVersionRequest.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 <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace IoT
22{
23namespace Model
24{
25
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreatePackageVersion"; }
38
39 AWS_IOT_API Aws::String SerializePayload() const override;
40
41 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
43
45
48 inline const Aws::String& GetPackageName() const{ return m_packageName; }
49 inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; }
50 inline void SetPackageName(const Aws::String& value) { m_packageNameHasBeenSet = true; m_packageName = value; }
51 inline void SetPackageName(Aws::String&& value) { m_packageNameHasBeenSet = true; m_packageName = std::move(value); }
52 inline void SetPackageName(const char* value) { m_packageNameHasBeenSet = true; m_packageName.assign(value); }
53 inline CreatePackageVersionRequest& WithPackageName(const Aws::String& value) { SetPackageName(value); return *this;}
54 inline CreatePackageVersionRequest& WithPackageName(Aws::String&& value) { SetPackageName(std::move(value)); return *this;}
55 inline CreatePackageVersionRequest& WithPackageName(const char* value) { SetPackageName(value); return *this;}
57
59
62 inline const Aws::String& GetVersionName() const{ return m_versionName; }
63 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
64 inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; }
65 inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); }
66 inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); }
67 inline CreatePackageVersionRequest& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;}
68 inline CreatePackageVersionRequest& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;}
69 inline CreatePackageVersionRequest& WithVersionName(const char* value) { SetVersionName(value); return *this;}
71
73
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 CreatePackageVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
83 inline CreatePackageVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
84 inline CreatePackageVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
86
88
94 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
95 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
96 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
97 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
100 inline CreatePackageVersionRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
101 inline CreatePackageVersionRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
102 inline CreatePackageVersionRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
103 inline CreatePackageVersionRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
104 inline CreatePackageVersionRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
105 inline CreatePackageVersionRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
106 inline CreatePackageVersionRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
108
110
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 CreatePackageVersionRequest& WithArtifact(const PackageVersionArtifact& value) { SetArtifact(value); return *this;}
119 inline CreatePackageVersionRequest& WithArtifact(PackageVersionArtifact&& value) { SetArtifact(std::move(value)); return *this;}
121
123
127 inline const Aws::String& GetRecipe() const{ return m_recipe; }
128 inline bool RecipeHasBeenSet() const { return m_recipeHasBeenSet; }
129 inline void SetRecipe(const Aws::String& value) { m_recipeHasBeenSet = true; m_recipe = value; }
130 inline void SetRecipe(Aws::String&& value) { m_recipeHasBeenSet = true; m_recipe = std::move(value); }
131 inline void SetRecipe(const char* value) { m_recipeHasBeenSet = true; m_recipe.assign(value); }
132 inline CreatePackageVersionRequest& WithRecipe(const Aws::String& value) { SetRecipe(value); return *this;}
133 inline CreatePackageVersionRequest& WithRecipe(Aws::String&& value) { SetRecipe(std::move(value)); return *this;}
134 inline CreatePackageVersionRequest& WithRecipe(const char* value) { SetRecipe(value); return *this;}
136
138
141 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
144 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
146 inline CreatePackageVersionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
147 inline CreatePackageVersionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
148 inline CreatePackageVersionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
149 inline CreatePackageVersionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
150 inline CreatePackageVersionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
151 inline CreatePackageVersionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
152 inline CreatePackageVersionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
153 inline CreatePackageVersionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
155
157
162 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
163 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
164 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
165 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
166 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
167 inline CreatePackageVersionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
168 inline CreatePackageVersionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
169 inline CreatePackageVersionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
171 private:
172
173 Aws::String m_packageName;
174 bool m_packageNameHasBeenSet = false;
175
176 Aws::String m_versionName;
177 bool m_versionNameHasBeenSet = false;
178
179 Aws::String m_description;
180 bool m_descriptionHasBeenSet = false;
181
183 bool m_attributesHasBeenSet = false;
184
185 PackageVersionArtifact m_artifact;
186 bool m_artifactHasBeenSet = false;
187
188 Aws::String m_recipe;
189 bool m_recipeHasBeenSet = false;
190
192 bool m_tagsHasBeenSet = false;
193
194 Aws::String m_clientToken;
195 bool m_clientTokenHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace IoT
200} // namespace Aws
CreatePackageVersionRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
CreatePackageVersionRequest & WithVersionName(const char *value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreatePackageVersionRequest & WithPackageName(const char *value)
AWS_IOT_API Aws::String SerializePayload() const override
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
CreatePackageVersionRequest & AddAttributes(const char *key, const char *value)
CreatePackageVersionRequest & WithArtifact(PackageVersionArtifact &&value)
CreatePackageVersionRequest & WithRecipe(const Aws::String &value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
CreatePackageVersionRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
CreatePackageVersionRequest & WithArtifact(const PackageVersionArtifact &value)
CreatePackageVersionRequest & WithDescription(const char *value)
CreatePackageVersionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreatePackageVersionRequest & AddAttributes(const char *key, Aws::String &&value)
CreatePackageVersionRequest & WithClientToken(Aws::String &&value)
CreatePackageVersionRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
CreatePackageVersionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePackageVersionRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
CreatePackageVersionRequest & AddTags(const char *key, Aws::String &&value)
CreatePackageVersionRequest & WithDescription(Aws::String &&value)
CreatePackageVersionRequest & WithPackageName(Aws::String &&value)
CreatePackageVersionRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
CreatePackageVersionRequest & WithClientToken(const Aws::String &value)
CreatePackageVersionRequest & WithPackageName(const Aws::String &value)
CreatePackageVersionRequest & WithRecipe(Aws::String &&value)
CreatePackageVersionRequest & WithDescription(const Aws::String &value)
CreatePackageVersionRequest & AddTags(Aws::String &&key, const char *value)
CreatePackageVersionRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
CreatePackageVersionRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
CreatePackageVersionRequest & WithRecipe(const char *value)
virtual const char * GetServiceRequestName() const override
CreatePackageVersionRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetArtifact(const PackageVersionArtifact &value)
CreatePackageVersionRequest & AddAttributes(Aws::String &&key, const char *value)
const PackageVersionArtifact & GetArtifact() const
CreatePackageVersionRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreatePackageVersionRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreatePackageVersionRequest & AddTags(const char *key, const char *value)
CreatePackageVersionRequest & WithClientToken(const char *value)
CreatePackageVersionRequest & WithVersionName(const Aws::String &value)
CreatePackageVersionRequest & WithVersionName(Aws::String &&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