AWS SDK for C++  1.8.95
AWS SDK for C++
CopyWorkspaceImageRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace WorkSpaces
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "CopyWorkspaceImage"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
38 
42  inline const Aws::String& GetName() const{ return m_name; }
43 
47  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 
52  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 
57  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 
62  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 
67  inline CopyWorkspaceImageRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
68 
72  inline CopyWorkspaceImageRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
73 
77  inline CopyWorkspaceImageRequest& WithName(const char* value) { SetName(value); return *this;}
78 
79 
83  inline const Aws::String& GetDescription() const{ return m_description; }
84 
88  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 
93  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
94 
98  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
99 
103  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
104 
108  inline CopyWorkspaceImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
109 
113  inline CopyWorkspaceImageRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
114 
118  inline CopyWorkspaceImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
119 
120 
124  inline const Aws::String& GetSourceImageId() const{ return m_sourceImageId; }
125 
129  inline bool SourceImageIdHasBeenSet() const { return m_sourceImageIdHasBeenSet; }
130 
134  inline void SetSourceImageId(const Aws::String& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = value; }
135 
139  inline void SetSourceImageId(Aws::String&& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = std::move(value); }
140 
144  inline void SetSourceImageId(const char* value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId.assign(value); }
145 
149  inline CopyWorkspaceImageRequest& WithSourceImageId(const Aws::String& value) { SetSourceImageId(value); return *this;}
150 
154  inline CopyWorkspaceImageRequest& WithSourceImageId(Aws::String&& value) { SetSourceImageId(std::move(value)); return *this;}
155 
159  inline CopyWorkspaceImageRequest& WithSourceImageId(const char* value) { SetSourceImageId(value); return *this;}
160 
161 
165  inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; }
166 
170  inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
171 
175  inline void SetSourceRegion(const Aws::String& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
176 
180  inline void SetSourceRegion(Aws::String&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::move(value); }
181 
185  inline void SetSourceRegion(const char* value) { m_sourceRegionHasBeenSet = true; m_sourceRegion.assign(value); }
186 
190  inline CopyWorkspaceImageRequest& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;}
191 
195  inline CopyWorkspaceImageRequest& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;}
196 
200  inline CopyWorkspaceImageRequest& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;}
201 
202 
206  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
207 
211  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
212 
216  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
217 
221  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
222 
226  inline CopyWorkspaceImageRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
227 
231  inline CopyWorkspaceImageRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
232 
236  inline CopyWorkspaceImageRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
237 
241  inline CopyWorkspaceImageRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
242 
243  private:
244 
245  Aws::String m_name;
246  bool m_nameHasBeenSet;
247 
248  Aws::String m_description;
249  bool m_descriptionHasBeenSet;
250 
251  Aws::String m_sourceImageId;
252  bool m_sourceImageIdHasBeenSet;
253 
254  Aws::String m_sourceRegion;
255  bool m_sourceRegionHasBeenSet;
256 
257  Aws::Vector<Tag> m_tags;
258  bool m_tagsHasBeenSet;
259  };
260 
261 } // namespace Model
262 } // namespace WorkSpaces
263 } // namespace Aws
CopyWorkspaceImageRequest & WithDescription(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CopyWorkspaceImageRequest & AddTags(Tag &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CopyWorkspaceImageRequest & WithTags(const Aws::Vector< Tag > &value)
CopyWorkspaceImageRequest & WithSourceImageId(Aws::String &&value)
CopyWorkspaceImageRequest & AddTags(const Tag &value)
CopyWorkspaceImageRequest & WithSourceRegion(const Aws::String &value)
CopyWorkspaceImageRequest & WithDescription(const Aws::String &value)
CopyWorkspaceImageRequest & WithName(const char *value)
CopyWorkspaceImageRequest & WithSourceRegion(Aws::String &&value)
CopyWorkspaceImageRequest & WithDescription(const char *value)
CopyWorkspaceImageRequest & WithSourceRegion(const char *value)
CopyWorkspaceImageRequest & WithSourceImageId(const Aws::String &value)
CopyWorkspaceImageRequest & WithSourceImageId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CopyWorkspaceImageRequest & WithName(Aws::String &&value)
CopyWorkspaceImageRequest & WithTags(Aws::Vector< Tag > &&value)
CopyWorkspaceImageRequest & WithName(const Aws::String &value)
#define AWS_WORKSPACES_API