AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
46 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
47 template<typename NameT = Aws::String>
48 CopyWorkspaceImageRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template<typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
59 template<typename DescriptionT = Aws::String>
60 CopyWorkspaceImageRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
62
64
67 inline const Aws::String& GetSourceImageId() const { return m_sourceImageId; }
68 inline bool SourceImageIdHasBeenSet() const { return m_sourceImageIdHasBeenSet; }
69 template<typename SourceImageIdT = Aws::String>
70 void SetSourceImageId(SourceImageIdT&& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = std::forward<SourceImageIdT>(value); }
71 template<typename SourceImageIdT = Aws::String>
72 CopyWorkspaceImageRequest& WithSourceImageId(SourceImageIdT&& value) { SetSourceImageId(std::forward<SourceImageIdT>(value)); return *this;}
74
76
79 inline const Aws::String& GetSourceRegion() const { return m_sourceRegion; }
80 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
81 template<typename SourceRegionT = Aws::String>
82 void SetSourceRegion(SourceRegionT&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::forward<SourceRegionT>(value); }
83 template<typename SourceRegionT = Aws::String>
84 CopyWorkspaceImageRequest& WithSourceRegion(SourceRegionT&& value) { SetSourceRegion(std::forward<SourceRegionT>(value)); return *this;}
86
88
91 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 template<typename TagsT = Aws::Vector<Tag>>
94 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
95 template<typename TagsT = Aws::Vector<Tag>>
96 CopyWorkspaceImageRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
97 template<typename TagsT = Tag>
98 CopyWorkspaceImageRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
100 private:
101
102 Aws::String m_name;
103 bool m_nameHasBeenSet = false;
104
105 Aws::String m_description;
106 bool m_descriptionHasBeenSet = false;
107
108 Aws::String m_sourceImageId;
109 bool m_sourceImageIdHasBeenSet = false;
110
111 Aws::String m_sourceRegion;
112 bool m_sourceRegionHasBeenSet = false;
113
114 Aws::Vector<Tag> m_tags;
115 bool m_tagsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace WorkSpaces
120} // namespace Aws
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_WORKSPACES_API CopyWorkspaceImageRequest()=default
CopyWorkspaceImageRequest & AddTags(TagsT &&value)
CopyWorkspaceImageRequest & WithDescription(DescriptionT &&value)
CopyWorkspaceImageRequest & WithSourceRegion(SourceRegionT &&value)
CopyWorkspaceImageRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_WORKSPACES_API Aws::String SerializePayload() const override
CopyWorkspaceImageRequest & WithTags(TagsT &&value)
CopyWorkspaceImageRequest & WithSourceImageId(SourceImageIdT &&value)
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