AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateViewRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/ViewInputContent.h>
10#include <aws/connect/model/ViewStatus.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Connect {
18namespace Model {
19
23 public:
24 AWS_CONNECT_API CreateViewRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateView"; }
31
32 AWS_CONNECT_API Aws::String SerializePayload() const override;
33
35
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 CreateViewRequest& WithInstanceId(InstanceIdT&& value) {
48 SetInstanceId(std::forward<InstanceIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetClientToken() const { return m_clientToken; }
59 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
60 template <typename ClientTokenT = Aws::String>
61 void SetClientToken(ClientTokenT&& value) {
62 m_clientTokenHasBeenSet = true;
63 m_clientToken = std::forward<ClientTokenT>(value);
64 }
65 template <typename ClientTokenT = Aws::String>
66 CreateViewRequest& WithClientToken(ClientTokenT&& value) {
67 SetClientToken(std::forward<ClientTokenT>(value));
68 return *this;
69 }
71
73
78 inline ViewStatus GetStatus() const { return m_status; }
79 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 inline void SetStatus(ViewStatus value) {
81 m_statusHasBeenSet = true;
82 m_status = value;
83 }
85 SetStatus(value);
86 return *this;
87 }
89
91
96 inline const ViewInputContent& GetContent() const { return m_content; }
97 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
98 template <typename ContentT = ViewInputContent>
99 void SetContent(ContentT&& value) {
100 m_contentHasBeenSet = true;
101 m_content = std::forward<ContentT>(value);
102 }
103 template <typename ContentT = ViewInputContent>
104 CreateViewRequest& WithContent(ContentT&& value) {
105 SetContent(std::forward<ContentT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetDescription() const { return m_description; }
115 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
116 template <typename DescriptionT = Aws::String>
117 void SetDescription(DescriptionT&& value) {
118 m_descriptionHasBeenSet = true;
119 m_description = std::forward<DescriptionT>(value);
120 }
121 template <typename DescriptionT = Aws::String>
122 CreateViewRequest& WithDescription(DescriptionT&& value) {
123 SetDescription(std::forward<DescriptionT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetName() const { return m_name; }
133 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
134 template <typename NameT = Aws::String>
135 void SetName(NameT&& value) {
136 m_nameHasBeenSet = true;
137 m_name = std::forward<NameT>(value);
138 }
139 template <typename NameT = Aws::String>
140 CreateViewRequest& WithName(NameT&& value) {
141 SetName(std::forward<NameT>(value));
142 return *this;
143 }
145
147
152 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
153 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
154 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
155 void SetTags(TagsT&& value) {
156 m_tagsHasBeenSet = true;
157 m_tags = std::forward<TagsT>(value);
158 }
159 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
160 CreateViewRequest& WithTags(TagsT&& value) {
161 SetTags(std::forward<TagsT>(value));
162 return *this;
163 }
164 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
165 CreateViewRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
166 m_tagsHasBeenSet = true;
167 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
168 return *this;
169 }
171 private:
172 Aws::String m_instanceId;
173
174 Aws::String m_clientToken;
175
177
178 ViewInputContent m_content;
179
180 Aws::String m_description;
181
182 Aws::String m_name;
183
185 bool m_instanceIdHasBeenSet = false;
186 bool m_clientTokenHasBeenSet = false;
187 bool m_statusHasBeenSet = false;
188 bool m_contentHasBeenSet = false;
189 bool m_descriptionHasBeenSet = false;
190 bool m_nameHasBeenSet = false;
191 bool m_tagsHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace Connect
196} // namespace Aws
CreateViewRequest & WithInstanceId(InstanceIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetInstanceId(InstanceIdT &&value)
CreateViewRequest & WithClientToken(ClientTokenT &&value)
CreateViewRequest & WithDescription(DescriptionT &&value)
AWS_CONNECT_API CreateViewRequest()=default
CreateViewRequest & WithStatus(ViewStatus value)
void SetClientToken(ClientTokenT &&value)
const Aws::String & GetInstanceId() const
const ViewInputContent & GetContent() const
CreateViewRequest & WithTags(TagsT &&value)
const Aws::String & GetDescription() const
void SetDescription(DescriptionT &&value)
CreateViewRequest & WithContent(ContentT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CONNECT_API Aws::String SerializePayload() const override
const Aws::String & GetClientToken() const
CreateViewRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateViewRequest & WithName(NameT &&value)
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