AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateImportedImageRequest.h
1
6#pragma once
7#include <aws/appstream/AppStreamRequest.h>
8#include <aws/appstream/AppStream_EXPORTS.h>
9#include <aws/appstream/model/AgentSoftwareVersion.h>
10#include <aws/appstream/model/ApplicationConfig.h>
11#include <aws/appstream/model/RuntimeValidationConfig.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace AppStream {
20namespace Model {
21
25 public:
26 AWS_APPSTREAM_API CreateImportedImageRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateImportedImage"; }
33
34 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
35
37
39
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetSourceAmiId() const { return m_sourceAmiId; }
65 inline bool SourceAmiIdHasBeenSet() const { return m_sourceAmiIdHasBeenSet; }
66 template <typename SourceAmiIdT = Aws::String>
67 void SetSourceAmiId(SourceAmiIdT&& value) {
68 m_sourceAmiIdHasBeenSet = true;
69 m_sourceAmiId = std::forward<SourceAmiIdT>(value);
70 }
71 template <typename SourceAmiIdT = Aws::String>
73 SetSourceAmiId(std::forward<SourceAmiIdT>(value));
74 return *this;
75 }
77
79
85 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
86 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
87 template <typename IamRoleArnT = Aws::String>
88 void SetIamRoleArn(IamRoleArnT&& value) {
89 m_iamRoleArnHasBeenSet = true;
90 m_iamRoleArn = std::forward<IamRoleArnT>(value);
91 }
92 template <typename IamRoleArnT = Aws::String>
94 SetIamRoleArn(std::forward<IamRoleArnT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::String& GetDescription() const { return m_description; }
105 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
106 template <typename DescriptionT = Aws::String>
107 void SetDescription(DescriptionT&& value) {
108 m_descriptionHasBeenSet = true;
109 m_description = std::forward<DescriptionT>(value);
110 }
111 template <typename DescriptionT = Aws::String>
113 SetDescription(std::forward<DescriptionT>(value));
114 return *this;
115 }
117
119
123 inline const Aws::String& GetDisplayName() const { return m_displayName; }
124 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
125 template <typename DisplayNameT = Aws::String>
126 void SetDisplayName(DisplayNameT&& value) {
127 m_displayNameHasBeenSet = true;
128 m_displayName = std::forward<DisplayNameT>(value);
129 }
130 template <typename DisplayNameT = Aws::String>
132 SetDisplayName(std::forward<DisplayNameT>(value));
133 return *this;
134 }
136
138
142 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
143 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
144 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
145 void SetTags(TagsT&& value) {
146 m_tagsHasBeenSet = true;
147 m_tags = std::forward<TagsT>(value);
148 }
149 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
151 SetTags(std::forward<TagsT>(value));
152 return *this;
153 }
154 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
155 CreateImportedImageRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
156 m_tagsHasBeenSet = true;
157 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
158 return *this;
159 }
161
163
168 inline const RuntimeValidationConfig& GetRuntimeValidationConfig() const { return m_runtimeValidationConfig; }
169 inline bool RuntimeValidationConfigHasBeenSet() const { return m_runtimeValidationConfigHasBeenSet; }
170 template <typename RuntimeValidationConfigT = RuntimeValidationConfig>
171 void SetRuntimeValidationConfig(RuntimeValidationConfigT&& value) {
172 m_runtimeValidationConfigHasBeenSet = true;
173 m_runtimeValidationConfig = std::forward<RuntimeValidationConfigT>(value);
174 }
175 template <typename RuntimeValidationConfigT = RuntimeValidationConfig>
176 CreateImportedImageRequest& WithRuntimeValidationConfig(RuntimeValidationConfigT&& value) {
177 SetRuntimeValidationConfig(std::forward<RuntimeValidationConfigT>(value));
178 return *this;
179 }
181
183
189 inline AgentSoftwareVersion GetAgentSoftwareVersion() const { return m_agentSoftwareVersion; }
190 inline bool AgentSoftwareVersionHasBeenSet() const { return m_agentSoftwareVersionHasBeenSet; }
192 m_agentSoftwareVersionHasBeenSet = true;
193 m_agentSoftwareVersion = value;
194 }
197 return *this;
198 }
200
202
207 inline const Aws::Vector<ApplicationConfig>& GetAppCatalogConfig() const { return m_appCatalogConfig; }
208 inline bool AppCatalogConfigHasBeenSet() const { return m_appCatalogConfigHasBeenSet; }
209 template <typename AppCatalogConfigT = Aws::Vector<ApplicationConfig>>
210 void SetAppCatalogConfig(AppCatalogConfigT&& value) {
211 m_appCatalogConfigHasBeenSet = true;
212 m_appCatalogConfig = std::forward<AppCatalogConfigT>(value);
213 }
214 template <typename AppCatalogConfigT = Aws::Vector<ApplicationConfig>>
216 SetAppCatalogConfig(std::forward<AppCatalogConfigT>(value));
217 return *this;
218 }
219 template <typename AppCatalogConfigT = ApplicationConfig>
221 m_appCatalogConfigHasBeenSet = true;
222 m_appCatalogConfig.emplace_back(std::forward<AppCatalogConfigT>(value));
223 return *this;
224 }
226
228
233 inline bool GetDryRun() const { return m_dryRun; }
234 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
235 inline void SetDryRun(bool value) {
236 m_dryRunHasBeenSet = true;
237 m_dryRun = value;
238 }
240 SetDryRun(value);
241 return *this;
242 }
244 private:
245 Aws::String m_name;
246
247 Aws::String m_sourceAmiId;
248
249 Aws::String m_iamRoleArn;
250
251 Aws::String m_description;
252
253 Aws::String m_displayName;
254
256
257 RuntimeValidationConfig m_runtimeValidationConfig;
258
260
261 Aws::Vector<ApplicationConfig> m_appCatalogConfig;
262
263 bool m_dryRun{false};
264 bool m_nameHasBeenSet = false;
265 bool m_sourceAmiIdHasBeenSet = false;
266 bool m_iamRoleArnHasBeenSet = false;
267 bool m_descriptionHasBeenSet = false;
268 bool m_displayNameHasBeenSet = false;
269 bool m_tagsHasBeenSet = false;
270 bool m_runtimeValidationConfigHasBeenSet = false;
271 bool m_agentSoftwareVersionHasBeenSet = false;
272 bool m_appCatalogConfigHasBeenSet = false;
273 bool m_dryRunHasBeenSet = false;
274};
275
276} // namespace Model
277} // namespace AppStream
278} // namespace Aws
const RuntimeValidationConfig & GetRuntimeValidationConfig() const
CreateImportedImageRequest & WithDisplayName(DisplayNameT &&value)
CreateImportedImageRequest & WithTags(TagsT &&value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
AWS_APPSTREAM_API CreateImportedImageRequest()=default
CreateImportedImageRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateImportedImageRequest & WithDescription(DescriptionT &&value)
CreateImportedImageRequest & WithAgentSoftwareVersion(AgentSoftwareVersion value)
virtual const char * GetServiceRequestName() const override
CreateImportedImageRequest & WithRuntimeValidationConfig(RuntimeValidationConfigT &&value)
CreateImportedImageRequest & WithName(NameT &&value)
CreateImportedImageRequest & WithDryRun(bool value)
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetRuntimeValidationConfig(RuntimeValidationConfigT &&value)
CreateImportedImageRequest & WithSourceAmiId(SourceAmiIdT &&value)
const Aws::Vector< ApplicationConfig > & GetAppCatalogConfig() const
CreateImportedImageRequest & WithIamRoleArn(IamRoleArnT &&value)
CreateImportedImageRequest & WithAppCatalogConfig(AppCatalogConfigT &&value)
CreateImportedImageRequest & AddAppCatalogConfig(AppCatalogConfigT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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
std::vector< T, Aws::Allocator< T > > Vector