AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CreateUpdatedImageRequest.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace AppStream
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateUpdatedImage"; }
32
34
36
37
41 inline const Aws::String& GetExistingImageName() const{ return m_existingImageName; }
42
46 inline bool ExistingImageNameHasBeenSet() const { return m_existingImageNameHasBeenSet; }
47
51 inline void SetExistingImageName(const Aws::String& value) { m_existingImageNameHasBeenSet = true; m_existingImageName = value; }
52
56 inline void SetExistingImageName(Aws::String&& value) { m_existingImageNameHasBeenSet = true; m_existingImageName = std::move(value); }
57
61 inline void SetExistingImageName(const char* value) { m_existingImageNameHasBeenSet = true; m_existingImageName.assign(value); }
62
67
71 inline CreateUpdatedImageRequest& WithExistingImageName(Aws::String&& value) { SetExistingImageName(std::move(value)); return *this;}
72
76 inline CreateUpdatedImageRequest& WithExistingImageName(const char* value) { SetExistingImageName(value); return *this;}
77
78
83 inline const Aws::String& GetNewImageName() const{ return m_newImageName; }
84
89 inline bool NewImageNameHasBeenSet() const { return m_newImageNameHasBeenSet; }
90
95 inline void SetNewImageName(const Aws::String& value) { m_newImageNameHasBeenSet = true; m_newImageName = value; }
96
101 inline void SetNewImageName(Aws::String&& value) { m_newImageNameHasBeenSet = true; m_newImageName = std::move(value); }
102
107 inline void SetNewImageName(const char* value) { m_newImageNameHasBeenSet = true; m_newImageName.assign(value); }
108
113 inline CreateUpdatedImageRequest& WithNewImageName(const Aws::String& value) { SetNewImageName(value); return *this;}
114
119 inline CreateUpdatedImageRequest& WithNewImageName(Aws::String&& value) { SetNewImageName(std::move(value)); return *this;}
120
125 inline CreateUpdatedImageRequest& WithNewImageName(const char* value) { SetNewImageName(value); return *this;}
126
127
131 inline const Aws::String& GetNewImageDescription() const{ return m_newImageDescription; }
132
136 inline bool NewImageDescriptionHasBeenSet() const { return m_newImageDescriptionHasBeenSet; }
137
141 inline void SetNewImageDescription(const Aws::String& value) { m_newImageDescriptionHasBeenSet = true; m_newImageDescription = value; }
142
146 inline void SetNewImageDescription(Aws::String&& value) { m_newImageDescriptionHasBeenSet = true; m_newImageDescription = std::move(value); }
147
151 inline void SetNewImageDescription(const char* value) { m_newImageDescriptionHasBeenSet = true; m_newImageDescription.assign(value); }
152
157
161 inline CreateUpdatedImageRequest& WithNewImageDescription(Aws::String&& value) { SetNewImageDescription(std::move(value)); return *this;}
162
166 inline CreateUpdatedImageRequest& WithNewImageDescription(const char* value) { SetNewImageDescription(value); return *this;}
167
168
172 inline const Aws::String& GetNewImageDisplayName() const{ return m_newImageDisplayName; }
173
177 inline bool NewImageDisplayNameHasBeenSet() const { return m_newImageDisplayNameHasBeenSet; }
178
182 inline void SetNewImageDisplayName(const Aws::String& value) { m_newImageDisplayNameHasBeenSet = true; m_newImageDisplayName = value; }
183
187 inline void SetNewImageDisplayName(Aws::String&& value) { m_newImageDisplayNameHasBeenSet = true; m_newImageDisplayName = std::move(value); }
188
192 inline void SetNewImageDisplayName(const char* value) { m_newImageDisplayNameHasBeenSet = true; m_newImageDisplayName.assign(value); }
193
198
202 inline CreateUpdatedImageRequest& WithNewImageDisplayName(Aws::String&& value) { SetNewImageDisplayName(std::move(value)); return *this;}
203
207 inline CreateUpdatedImageRequest& WithNewImageDisplayName(const char* value) { SetNewImageDisplayName(value); return *this;}
208
209
220 inline const Aws::Map<Aws::String, Aws::String>& GetNewImageTags() const{ return m_newImageTags; }
221
232 inline bool NewImageTagsHasBeenSet() const { return m_newImageTagsHasBeenSet; }
233
244 inline void SetNewImageTags(const Aws::Map<Aws::String, Aws::String>& value) { m_newImageTagsHasBeenSet = true; m_newImageTags = value; }
245
256 inline void SetNewImageTags(Aws::Map<Aws::String, Aws::String>&& value) { m_newImageTagsHasBeenSet = true; m_newImageTags = std::move(value); }
257
269
281
292 inline CreateUpdatedImageRequest& AddNewImageTags(const Aws::String& key, const Aws::String& value) { m_newImageTagsHasBeenSet = true; m_newImageTags.emplace(key, value); return *this; }
293
304 inline CreateUpdatedImageRequest& AddNewImageTags(Aws::String&& key, const Aws::String& value) { m_newImageTagsHasBeenSet = true; m_newImageTags.emplace(std::move(key), value); return *this; }
305
316 inline CreateUpdatedImageRequest& AddNewImageTags(const Aws::String& key, Aws::String&& value) { m_newImageTagsHasBeenSet = true; m_newImageTags.emplace(key, std::move(value)); return *this; }
317
328 inline CreateUpdatedImageRequest& AddNewImageTags(Aws::String&& key, Aws::String&& value) { m_newImageTagsHasBeenSet = true; m_newImageTags.emplace(std::move(key), std::move(value)); return *this; }
329
340 inline CreateUpdatedImageRequest& AddNewImageTags(const char* key, Aws::String&& value) { m_newImageTagsHasBeenSet = true; m_newImageTags.emplace(key, std::move(value)); return *this; }
341
352 inline CreateUpdatedImageRequest& AddNewImageTags(Aws::String&& key, const char* value) { m_newImageTagsHasBeenSet = true; m_newImageTags.emplace(std::move(key), value); return *this; }
353
364 inline CreateUpdatedImageRequest& AddNewImageTags(const char* key, const char* value) { m_newImageTagsHasBeenSet = true; m_newImageTags.emplace(key, value); return *this; }
365
366
375 inline bool GetDryRun() const{ return m_dryRun; }
376
385 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
386
395 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
396
405 inline CreateUpdatedImageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
406
407 private:
408
409 Aws::String m_existingImageName;
410 bool m_existingImageNameHasBeenSet = false;
411
412 Aws::String m_newImageName;
413 bool m_newImageNameHasBeenSet = false;
414
415 Aws::String m_newImageDescription;
416 bool m_newImageDescriptionHasBeenSet = false;
417
418 Aws::String m_newImageDisplayName;
419 bool m_newImageDisplayNameHasBeenSet = false;
420
422 bool m_newImageTagsHasBeenSet = false;
423
424 bool m_dryRun;
425 bool m_dryRunHasBeenSet = false;
426 };
427
428} // namespace Model
429} // namespace AppStream
430} // namespace Aws
#define AWS_APPSTREAM_API
CreateUpdatedImageRequest & WithNewImageDisplayName(const char *value)
CreateUpdatedImageRequest & WithNewImageName(const Aws::String &value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
CreateUpdatedImageRequest & AddNewImageTags(const Aws::String &key, Aws::String &&value)
CreateUpdatedImageRequest & AddNewImageTags(Aws::String &&key, Aws::String &&value)
CreateUpdatedImageRequest & WithExistingImageName(const Aws::String &value)
CreateUpdatedImageRequest & WithNewImageDisplayName(const Aws::String &value)
CreateUpdatedImageRequest & WithNewImageDescription(const Aws::String &value)
CreateUpdatedImageRequest & WithNewImageDisplayName(Aws::String &&value)
CreateUpdatedImageRequest & WithNewImageName(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetNewImageTags() const
CreateUpdatedImageRequest & WithNewImageDescription(Aws::String &&value)
CreateUpdatedImageRequest & WithExistingImageName(Aws::String &&value)
void SetNewImageTags(Aws::Map< Aws::String, Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
CreateUpdatedImageRequest & WithDryRun(bool value)
CreateUpdatedImageRequest & WithExistingImageName(const char *value)
CreateUpdatedImageRequest & AddNewImageTags(Aws::String &&key, const Aws::String &value)
CreateUpdatedImageRequest & WithNewImageDescription(const char *value)
CreateUpdatedImageRequest & WithNewImageName(const char *value)
CreateUpdatedImageRequest & AddNewImageTags(const char *key, const char *value)
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateUpdatedImageRequest & WithNewImageTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateUpdatedImageRequest & AddNewImageTags(const Aws::String &key, const Aws::String &value)
CreateUpdatedImageRequest & AddNewImageTags(Aws::String &&key, const char *value)
CreateUpdatedImageRequest & AddNewImageTags(const char *key, Aws::String &&value)
void SetNewImageTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateUpdatedImageRequest & WithNewImageTags(const Aws::Map< Aws::String, Aws::String > &value)
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