AWS SDK for C++  1.8.95
AWS SDK for C++
ImportWorkspaceImageRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace WorkSpaces
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ImportWorkspaceImage"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
44  inline const Aws::String& GetEc2ImageId() const{ return m_ec2ImageId; }
45 
49  inline bool Ec2ImageIdHasBeenSet() const { return m_ec2ImageIdHasBeenSet; }
50 
54  inline void SetEc2ImageId(const Aws::String& value) { m_ec2ImageIdHasBeenSet = true; m_ec2ImageId = value; }
55 
59  inline void SetEc2ImageId(Aws::String&& value) { m_ec2ImageIdHasBeenSet = true; m_ec2ImageId = std::move(value); }
60 
64  inline void SetEc2ImageId(const char* value) { m_ec2ImageIdHasBeenSet = true; m_ec2ImageId.assign(value); }
65 
69  inline ImportWorkspaceImageRequest& WithEc2ImageId(const Aws::String& value) { SetEc2ImageId(value); return *this;}
70 
74  inline ImportWorkspaceImageRequest& WithEc2ImageId(Aws::String&& value) { SetEc2ImageId(std::move(value)); return *this;}
75 
79  inline ImportWorkspaceImageRequest& WithEc2ImageId(const char* value) { SetEc2ImageId(value); return *this;}
80 
81 
87  inline const WorkspaceImageIngestionProcess& GetIngestionProcess() const{ return m_ingestionProcess; }
88 
94  inline bool IngestionProcessHasBeenSet() const { return m_ingestionProcessHasBeenSet; }
95 
101  inline void SetIngestionProcess(const WorkspaceImageIngestionProcess& value) { m_ingestionProcessHasBeenSet = true; m_ingestionProcess = value; }
102 
108  inline void SetIngestionProcess(WorkspaceImageIngestionProcess&& value) { m_ingestionProcessHasBeenSet = true; m_ingestionProcess = std::move(value); }
109 
115  inline ImportWorkspaceImageRequest& WithIngestionProcess(const WorkspaceImageIngestionProcess& value) { SetIngestionProcess(value); return *this;}
116 
122  inline ImportWorkspaceImageRequest& WithIngestionProcess(WorkspaceImageIngestionProcess&& value) { SetIngestionProcess(std::move(value)); return *this;}
123 
124 
128  inline const Aws::String& GetImageName() const{ return m_imageName; }
129 
133  inline bool ImageNameHasBeenSet() const { return m_imageNameHasBeenSet; }
134 
138  inline void SetImageName(const Aws::String& value) { m_imageNameHasBeenSet = true; m_imageName = value; }
139 
143  inline void SetImageName(Aws::String&& value) { m_imageNameHasBeenSet = true; m_imageName = std::move(value); }
144 
148  inline void SetImageName(const char* value) { m_imageNameHasBeenSet = true; m_imageName.assign(value); }
149 
153  inline ImportWorkspaceImageRequest& WithImageName(const Aws::String& value) { SetImageName(value); return *this;}
154 
158  inline ImportWorkspaceImageRequest& WithImageName(Aws::String&& value) { SetImageName(std::move(value)); return *this;}
159 
163  inline ImportWorkspaceImageRequest& WithImageName(const char* value) { SetImageName(value); return *this;}
164 
165 
169  inline const Aws::String& GetImageDescription() const{ return m_imageDescription; }
170 
174  inline bool ImageDescriptionHasBeenSet() const { return m_imageDescriptionHasBeenSet; }
175 
179  inline void SetImageDescription(const Aws::String& value) { m_imageDescriptionHasBeenSet = true; m_imageDescription = value; }
180 
184  inline void SetImageDescription(Aws::String&& value) { m_imageDescriptionHasBeenSet = true; m_imageDescription = std::move(value); }
185 
189  inline void SetImageDescription(const char* value) { m_imageDescriptionHasBeenSet = true; m_imageDescription.assign(value); }
190 
194  inline ImportWorkspaceImageRequest& WithImageDescription(const Aws::String& value) { SetImageDescription(value); return *this;}
195 
199  inline ImportWorkspaceImageRequest& WithImageDescription(Aws::String&& value) { SetImageDescription(std::move(value)); return *this;}
200 
204  inline ImportWorkspaceImageRequest& WithImageDescription(const char* value) { SetImageDescription(value); return *this;}
205 
206 
210  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
211 
215  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
216 
220  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
221 
225  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
226 
230  inline ImportWorkspaceImageRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
231 
235  inline ImportWorkspaceImageRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
236 
240  inline ImportWorkspaceImageRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
241 
245  inline ImportWorkspaceImageRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
246 
247 
256  inline const Aws::Vector<Application>& GetApplications() const{ return m_applications; }
257 
266  inline bool ApplicationsHasBeenSet() const { return m_applicationsHasBeenSet; }
267 
276  inline void SetApplications(const Aws::Vector<Application>& value) { m_applicationsHasBeenSet = true; m_applications = value; }
277 
286  inline void SetApplications(Aws::Vector<Application>&& value) { m_applicationsHasBeenSet = true; m_applications = std::move(value); }
287 
296  inline ImportWorkspaceImageRequest& WithApplications(const Aws::Vector<Application>& value) { SetApplications(value); return *this;}
297 
306  inline ImportWorkspaceImageRequest& WithApplications(Aws::Vector<Application>&& value) { SetApplications(std::move(value)); return *this;}
307 
316  inline ImportWorkspaceImageRequest& AddApplications(const Application& value) { m_applicationsHasBeenSet = true; m_applications.push_back(value); return *this; }
317 
326  inline ImportWorkspaceImageRequest& AddApplications(Application&& value) { m_applicationsHasBeenSet = true; m_applications.push_back(std::move(value)); return *this; }
327 
328  private:
329 
330  Aws::String m_ec2ImageId;
331  bool m_ec2ImageIdHasBeenSet;
332 
333  WorkspaceImageIngestionProcess m_ingestionProcess;
334  bool m_ingestionProcessHasBeenSet;
335 
336  Aws::String m_imageName;
337  bool m_imageNameHasBeenSet;
338 
339  Aws::String m_imageDescription;
340  bool m_imageDescriptionHasBeenSet;
341 
342  Aws::Vector<Tag> m_tags;
343  bool m_tagsHasBeenSet;
344 
345  Aws::Vector<Application> m_applications;
346  bool m_applicationsHasBeenSet;
347  };
348 
349 } // namespace Model
350 } // namespace WorkSpaces
351 } // namespace Aws
ImportWorkspaceImageRequest & WithApplications(const Aws::Vector< Application > &value)
ImportWorkspaceImageRequest & WithEc2ImageId(const Aws::String &value)
void SetIngestionProcess(const WorkspaceImageIngestionProcess &value)
ImportWorkspaceImageRequest & AddTags(Tag &&value)
ImportWorkspaceImageRequest & WithImageName(const char *value)
void SetApplications(const Aws::Vector< Application > &value)
ImportWorkspaceImageRequest & WithIngestionProcess(const WorkspaceImageIngestionProcess &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ImportWorkspaceImageRequest & AddApplications(const Application &value)
ImportWorkspaceImageRequest & WithTags(const Aws::Vector< Tag > &value)
const WorkspaceImageIngestionProcess & GetIngestionProcess() const
ImportWorkspaceImageRequest & WithImageName(const Aws::String &value)
void SetApplications(Aws::Vector< Application > &&value)
ImportWorkspaceImageRequest & WithEc2ImageId(Aws::String &&value)
ImportWorkspaceImageRequest & WithImageDescription(const char *value)
ImportWorkspaceImageRequest & WithApplications(Aws::Vector< Application > &&value)
ImportWorkspaceImageRequest & AddTags(const Tag &value)
ImportWorkspaceImageRequest & AddApplications(Application &&value)
ImportWorkspaceImageRequest & WithTags(Aws::Vector< Tag > &&value)
ImportWorkspaceImageRequest & WithImageDescription(Aws::String &&value)
ImportWorkspaceImageRequest & WithImageName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetIngestionProcess(WorkspaceImageIngestionProcess &&value)
virtual const char * GetServiceRequestName() const override
ImportWorkspaceImageRequest & WithImageDescription(const Aws::String &value)
const Aws::Vector< Application > & GetApplications() const
ImportWorkspaceImageRequest & WithEc2ImageId(const char *value)
ImportWorkspaceImageRequest & WithIngestionProcess(WorkspaceImageIngestionProcess &&value)
#define AWS_WORKSPACES_API