AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateUpdatedImageRequest.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/AppStreamRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace AppStream
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_APPSTREAM_API CreateUpdatedImageRequest();
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
33 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetExistingImageName() const{ return m_existingImageName; }
43 inline bool ExistingImageNameHasBeenSet() const { return m_existingImageNameHasBeenSet; }
44 inline void SetExistingImageName(const Aws::String& value) { m_existingImageNameHasBeenSet = true; m_existingImageName = value; }
45 inline void SetExistingImageName(Aws::String&& value) { m_existingImageNameHasBeenSet = true; m_existingImageName = std::move(value); }
46 inline void SetExistingImageName(const char* value) { m_existingImageNameHasBeenSet = true; m_existingImageName.assign(value); }
48 inline CreateUpdatedImageRequest& WithExistingImageName(Aws::String&& value) { SetExistingImageName(std::move(value)); return *this;}
49 inline CreateUpdatedImageRequest& WithExistingImageName(const char* value) { SetExistingImageName(value); return *this;}
51
53
57 inline const Aws::String& GetNewImageName() const{ return m_newImageName; }
58 inline bool NewImageNameHasBeenSet() const { return m_newImageNameHasBeenSet; }
59 inline void SetNewImageName(const Aws::String& value) { m_newImageNameHasBeenSet = true; m_newImageName = value; }
60 inline void SetNewImageName(Aws::String&& value) { m_newImageNameHasBeenSet = true; m_newImageName = std::move(value); }
61 inline void SetNewImageName(const char* value) { m_newImageNameHasBeenSet = true; m_newImageName.assign(value); }
62 inline CreateUpdatedImageRequest& WithNewImageName(const Aws::String& value) { SetNewImageName(value); return *this;}
63 inline CreateUpdatedImageRequest& WithNewImageName(Aws::String&& value) { SetNewImageName(std::move(value)); return *this;}
64 inline CreateUpdatedImageRequest& WithNewImageName(const char* value) { SetNewImageName(value); return *this;}
66
68
71 inline const Aws::String& GetNewImageDescription() const{ return m_newImageDescription; }
72 inline bool NewImageDescriptionHasBeenSet() const { return m_newImageDescriptionHasBeenSet; }
73 inline void SetNewImageDescription(const Aws::String& value) { m_newImageDescriptionHasBeenSet = true; m_newImageDescription = value; }
74 inline void SetNewImageDescription(Aws::String&& value) { m_newImageDescriptionHasBeenSet = true; m_newImageDescription = std::move(value); }
75 inline void SetNewImageDescription(const char* value) { m_newImageDescriptionHasBeenSet = true; m_newImageDescription.assign(value); }
77 inline CreateUpdatedImageRequest& WithNewImageDescription(Aws::String&& value) { SetNewImageDescription(std::move(value)); return *this;}
78 inline CreateUpdatedImageRequest& WithNewImageDescription(const char* value) { SetNewImageDescription(value); return *this;}
80
82
85 inline const Aws::String& GetNewImageDisplayName() const{ return m_newImageDisplayName; }
86 inline bool NewImageDisplayNameHasBeenSet() const { return m_newImageDisplayNameHasBeenSet; }
87 inline void SetNewImageDisplayName(const Aws::String& value) { m_newImageDisplayNameHasBeenSet = true; m_newImageDisplayName = value; }
88 inline void SetNewImageDisplayName(Aws::String&& value) { m_newImageDisplayNameHasBeenSet = true; m_newImageDisplayName = std::move(value); }
89 inline void SetNewImageDisplayName(const char* value) { m_newImageDisplayNameHasBeenSet = true; m_newImageDisplayName.assign(value); }
91 inline CreateUpdatedImageRequest& WithNewImageDisplayName(Aws::String&& value) { SetNewImageDisplayName(std::move(value)); return *this;}
92 inline CreateUpdatedImageRequest& WithNewImageDisplayName(const char* value) { SetNewImageDisplayName(value); return *this;}
94
96
106 inline const Aws::Map<Aws::String, Aws::String>& GetNewImageTags() const{ return m_newImageTags; }
107 inline bool NewImageTagsHasBeenSet() const { return m_newImageTagsHasBeenSet; }
108 inline void SetNewImageTags(const Aws::Map<Aws::String, Aws::String>& value) { m_newImageTagsHasBeenSet = true; m_newImageTags = value; }
109 inline void SetNewImageTags(Aws::Map<Aws::String, Aws::String>&& value) { m_newImageTagsHasBeenSet = true; m_newImageTags = std::move(value); }
112 inline CreateUpdatedImageRequest& AddNewImageTags(const Aws::String& key, const Aws::String& value) { m_newImageTagsHasBeenSet = true; m_newImageTags.emplace(key, value); return *this; }
113 inline CreateUpdatedImageRequest& AddNewImageTags(Aws::String&& key, const Aws::String& value) { m_newImageTagsHasBeenSet = true; m_newImageTags.emplace(std::move(key), value); return *this; }
114 inline CreateUpdatedImageRequest& AddNewImageTags(const Aws::String& key, Aws::String&& value) { m_newImageTagsHasBeenSet = true; m_newImageTags.emplace(key, std::move(value)); return *this; }
115 inline CreateUpdatedImageRequest& AddNewImageTags(Aws::String&& key, Aws::String&& value) { m_newImageTagsHasBeenSet = true; m_newImageTags.emplace(std::move(key), std::move(value)); return *this; }
116 inline CreateUpdatedImageRequest& AddNewImageTags(const char* key, Aws::String&& value) { m_newImageTagsHasBeenSet = true; m_newImageTags.emplace(key, std::move(value)); return *this; }
117 inline CreateUpdatedImageRequest& AddNewImageTags(Aws::String&& key, const char* value) { m_newImageTagsHasBeenSet = true; m_newImageTags.emplace(std::move(key), value); return *this; }
118 inline CreateUpdatedImageRequest& AddNewImageTags(const char* key, const char* value) { m_newImageTagsHasBeenSet = true; m_newImageTags.emplace(key, value); return *this; }
120
122
130 inline bool GetDryRun() const{ return m_dryRun; }
131 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
132 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
133 inline CreateUpdatedImageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
135 private:
136
137 Aws::String m_existingImageName;
138 bool m_existingImageNameHasBeenSet = false;
139
140 Aws::String m_newImageName;
141 bool m_newImageNameHasBeenSet = false;
142
143 Aws::String m_newImageDescription;
144 bool m_newImageDescriptionHasBeenSet = false;
145
146 Aws::String m_newImageDisplayName;
147 bool m_newImageDisplayNameHasBeenSet = false;
148
150 bool m_newImageTagsHasBeenSet = false;
151
152 bool m_dryRun;
153 bool m_dryRunHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace AppStream
158} // namespace Aws
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