AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateWorkspaceRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/WorkspaceTheme.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Connect {
17namespace Model {
18
22 public:
23 AWS_CONNECT_API CreateWorkspaceRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkspace"; }
30
31 AWS_CONNECT_API Aws::String SerializePayload() const override;
32
34
39 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
40 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
41 template <typename InstanceIdT = Aws::String>
42 void SetInstanceId(InstanceIdT&& value) {
43 m_instanceIdHasBeenSet = true;
44 m_instanceId = std::forward<InstanceIdT>(value);
45 }
46 template <typename InstanceIdT = Aws::String>
47 CreateWorkspaceRequest& WithInstanceId(InstanceIdT&& value) {
48 SetInstanceId(std::forward<InstanceIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 CreateWorkspaceRequest& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline const WorkspaceTheme& GetTheme() const { return m_theme; }
95 inline bool ThemeHasBeenSet() const { return m_themeHasBeenSet; }
96 template <typename ThemeT = WorkspaceTheme>
97 void SetTheme(ThemeT&& value) {
98 m_themeHasBeenSet = true;
99 m_theme = std::forward<ThemeT>(value);
100 }
101 template <typename ThemeT = WorkspaceTheme>
103 SetTheme(std::forward<ThemeT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetTitle() const { return m_title; }
113 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
114 template <typename TitleT = Aws::String>
115 void SetTitle(TitleT&& value) {
116 m_titleHasBeenSet = true;
117 m_title = std::forward<TitleT>(value);
118 }
119 template <typename TitleT = Aws::String>
121 SetTitle(std::forward<TitleT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
134 void SetTags(TagsT&& value) {
135 m_tagsHasBeenSet = true;
136 m_tags = std::forward<TagsT>(value);
137 }
138 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
140 SetTags(std::forward<TagsT>(value));
141 return *this;
142 }
143 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
144 CreateWorkspaceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
145 m_tagsHasBeenSet = true;
146 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
147 return *this;
148 }
150 private:
151 Aws::String m_instanceId;
152
153 Aws::String m_name;
154
155 Aws::String m_description;
156
157 WorkspaceTheme m_theme;
158
159 Aws::String m_title;
160
162 bool m_instanceIdHasBeenSet = false;
163 bool m_nameHasBeenSet = false;
164 bool m_descriptionHasBeenSet = false;
165 bool m_themeHasBeenSet = false;
166 bool m_titleHasBeenSet = false;
167 bool m_tagsHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace Connect
172} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateWorkspaceRequest & WithDescription(DescriptionT &&value)
CreateWorkspaceRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CONNECT_API Aws::String SerializePayload() const override
CreateWorkspaceRequest & WithTags(TagsT &&value)
CreateWorkspaceRequest & WithTitle(TitleT &&value)
CreateWorkspaceRequest & WithTheme(ThemeT &&value)
CreateWorkspaceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateWorkspaceRequest & WithInstanceId(InstanceIdT &&value)
AWS_CONNECT_API CreateWorkspaceRequest()=default
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