AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
31 AWS_IOT_API CreatePackageVersionRequest() = default;
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 template<typename PackageNameT = Aws::String>
51 void SetPackageName(PackageNameT&& value) { m_packageNameHasBeenSet = true; m_packageName = std::forward<PackageNameT>(value); }
52 template<typename PackageNameT = Aws::String>
53 CreatePackageVersionRequest& WithPackageName(PackageNameT&& value) { SetPackageName(std::forward<PackageNameT>(value)); return *this;}
55
57
60 inline const Aws::String& GetVersionName() const { return m_versionName; }
61 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
62 template<typename VersionNameT = Aws::String>
63 void SetVersionName(VersionNameT&& value) { m_versionNameHasBeenSet = true; m_versionName = std::forward<VersionNameT>(value); }
64 template<typename VersionNameT = Aws::String>
65 CreatePackageVersionRequest& WithVersionName(VersionNameT&& value) { SetVersionName(std::forward<VersionNameT>(value)); return *this;}
67
69
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 CreatePackageVersionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80
82
88 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
89 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
90 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
91 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
92 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
93 CreatePackageVersionRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
94 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
95 CreatePackageVersionRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
96 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
97 }
99
101
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 CreatePackageVersionRequest& WithArtifact(ArtifactT&& value) { SetArtifact(std::forward<ArtifactT>(value)); return *this;}
112
114
118 inline const Aws::String& GetRecipe() const { return m_recipe; }
119 inline bool RecipeHasBeenSet() const { return m_recipeHasBeenSet; }
120 template<typename RecipeT = Aws::String>
121 void SetRecipe(RecipeT&& value) { m_recipeHasBeenSet = true; m_recipe = std::forward<RecipeT>(value); }
122 template<typename RecipeT = Aws::String>
123 CreatePackageVersionRequest& WithRecipe(RecipeT&& value) { SetRecipe(std::forward<RecipeT>(value)); return *this;}
125
127
130 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
131 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
132 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
133 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
134 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 CreatePackageVersionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
136 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
137 CreatePackageVersionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
138 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
139 }
141
143
148 inline const Aws::String& GetClientToken() const { return m_clientToken; }
149 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
150 template<typename ClientTokenT = Aws::String>
151 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
152 template<typename ClientTokenT = Aws::String>
153 CreatePackageVersionRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
155 private:
156
157 Aws::String m_packageName;
158 bool m_packageNameHasBeenSet = false;
159
160 Aws::String m_versionName;
161 bool m_versionNameHasBeenSet = false;
162
163 Aws::String m_description;
164 bool m_descriptionHasBeenSet = false;
165
167 bool m_attributesHasBeenSet = false;
168
169 PackageVersionArtifact m_artifact;
170 bool m_artifactHasBeenSet = false;
171
172 Aws::String m_recipe;
173 bool m_recipeHasBeenSet = false;
174
176 bool m_tagsHasBeenSet = false;
177
179 bool m_clientTokenHasBeenSet = true;
180 };
181
182} // namespace Model
183} // namespace IoT
184} // 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