AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CopyWorkspaceImageRequest.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/workspaces/WorkSpacesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/workspaces/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WorkSpaces
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WORKSPACES_API CopyWorkspaceImageRequest();
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_WORKSPACES_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetName() const{ return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
46 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
47 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
48 inline CopyWorkspaceImageRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
49 inline CopyWorkspaceImageRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
50 inline CopyWorkspaceImageRequest& WithName(const char* value) { SetName(value); return *this;}
52
54
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
62 inline CopyWorkspaceImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
63 inline CopyWorkspaceImageRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline CopyWorkspaceImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
66
68
71 inline const Aws::String& GetSourceImageId() const{ return m_sourceImageId; }
72 inline bool SourceImageIdHasBeenSet() const { return m_sourceImageIdHasBeenSet; }
73 inline void SetSourceImageId(const Aws::String& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = value; }
74 inline void SetSourceImageId(Aws::String&& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = std::move(value); }
75 inline void SetSourceImageId(const char* value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId.assign(value); }
76 inline CopyWorkspaceImageRequest& WithSourceImageId(const Aws::String& value) { SetSourceImageId(value); return *this;}
77 inline CopyWorkspaceImageRequest& WithSourceImageId(Aws::String&& value) { SetSourceImageId(std::move(value)); return *this;}
78 inline CopyWorkspaceImageRequest& WithSourceImageId(const char* value) { SetSourceImageId(value); return *this;}
80
82
85 inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; }
86 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
87 inline void SetSourceRegion(const Aws::String& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
88 inline void SetSourceRegion(Aws::String&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::move(value); }
89 inline void SetSourceRegion(const char* value) { m_sourceRegionHasBeenSet = true; m_sourceRegion.assign(value); }
90 inline CopyWorkspaceImageRequest& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;}
91 inline CopyWorkspaceImageRequest& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;}
92 inline CopyWorkspaceImageRequest& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;}
94
96
99 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
102 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
103 inline CopyWorkspaceImageRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
104 inline CopyWorkspaceImageRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
105 inline CopyWorkspaceImageRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
106 inline CopyWorkspaceImageRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
108 private:
109
110 Aws::String m_name;
111 bool m_nameHasBeenSet = false;
112
113 Aws::String m_description;
114 bool m_descriptionHasBeenSet = false;
115
116 Aws::String m_sourceImageId;
117 bool m_sourceImageIdHasBeenSet = false;
118
119 Aws::String m_sourceRegion;
120 bool m_sourceRegionHasBeenSet = false;
121
122 Aws::Vector<Tag> m_tags;
123 bool m_tagsHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace WorkSpaces
128} // namespace Aws
CopyWorkspaceImageRequest & WithDescription(Aws::String &&value)
CopyWorkspaceImageRequest & WithSourceRegion(const char *value)
CopyWorkspaceImageRequest & AddTags(const Tag &value)
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CopyWorkspaceImageRequest & WithSourceImageId(const Aws::String &value)
CopyWorkspaceImageRequest & WithSourceRegion(const Aws::String &value)
CopyWorkspaceImageRequest & WithTags(const Aws::Vector< Tag > &value)
CopyWorkspaceImageRequest & WithSourceImageId(Aws::String &&value)
CopyWorkspaceImageRequest & WithSourceRegion(Aws::String &&value)
CopyWorkspaceImageRequest & WithName(Aws::String &&value)
CopyWorkspaceImageRequest & WithName(const Aws::String &value)
CopyWorkspaceImageRequest & WithSourceImageId(const char *value)
CopyWorkspaceImageRequest & WithDescription(const char *value)
CopyWorkspaceImageRequest & WithName(const char *value)
CopyWorkspaceImageRequest & WithDescription(const Aws::String &value)
CopyWorkspaceImageRequest & WithTags(Aws::Vector< Tag > &&value)
virtual const char * GetServiceRequestName() const override
AWS_WORKSPACES_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector