AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetChannelResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/repostspace/Repostspace_EXPORTS.h>
13#include <aws/repostspace/model/ChannelRole.h>
14#include <aws/repostspace/model/ChannelStatus.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace repostspace {
28namespace Model {
30 public:
31 AWS_REPOSTSPACE_API GetChannelResult() = default;
34
36
39 inline const Aws::String& GetSpaceId() const { return m_spaceId; }
40 template <typename SpaceIdT = Aws::String>
41 void SetSpaceId(SpaceIdT&& value) {
42 m_spaceIdHasBeenSet = true;
43 m_spaceId = std::forward<SpaceIdT>(value);
44 }
45 template <typename SpaceIdT = Aws::String>
46 GetChannelResult& WithSpaceId(SpaceIdT&& value) {
47 SetSpaceId(std::forward<SpaceIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetChannelId() const { return m_channelId; }
57 template <typename ChannelIdT = Aws::String>
58 void SetChannelId(ChannelIdT&& value) {
59 m_channelIdHasBeenSet = true;
60 m_channelId = std::forward<ChannelIdT>(value);
61 }
62 template <typename ChannelIdT = Aws::String>
63 GetChannelResult& WithChannelId(ChannelIdT&& value) {
64 SetChannelId(std::forward<ChannelIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetChannelName() const { return m_channelName; }
74 template <typename ChannelNameT = Aws::String>
75 void SetChannelName(ChannelNameT&& value) {
76 m_channelNameHasBeenSet = true;
77 m_channelName = std::forward<ChannelNameT>(value);
78 }
79 template <typename ChannelNameT = Aws::String>
80 GetChannelResult& WithChannelName(ChannelNameT&& value) {
81 SetChannelName(std::forward<ChannelNameT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::String& GetChannelDescription() const { return m_channelDescription; }
92 template <typename ChannelDescriptionT = Aws::String>
93 void SetChannelDescription(ChannelDescriptionT&& value) {
94 m_channelDescriptionHasBeenSet = true;
95 m_channelDescription = std::forward<ChannelDescriptionT>(value);
96 }
97 template <typename ChannelDescriptionT = Aws::String>
98 GetChannelResult& WithChannelDescription(ChannelDescriptionT&& value) {
99 SetChannelDescription(std::forward<ChannelDescriptionT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::Utils::DateTime& GetCreateDateTime() const { return m_createDateTime; }
109 template <typename CreateDateTimeT = Aws::Utils::DateTime>
110 void SetCreateDateTime(CreateDateTimeT&& value) {
111 m_createDateTimeHasBeenSet = true;
112 m_createDateTime = std::forward<CreateDateTimeT>(value);
113 }
114 template <typename CreateDateTimeT = Aws::Utils::DateTime>
115 GetChannelResult& WithCreateDateTime(CreateDateTimeT&& value) {
116 SetCreateDateTime(std::forward<CreateDateTimeT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Utils::DateTime& GetDeleteDateTime() const { return m_deleteDateTime; }
126 template <typename DeleteDateTimeT = Aws::Utils::DateTime>
127 void SetDeleteDateTime(DeleteDateTimeT&& value) {
128 m_deleteDateTimeHasBeenSet = true;
129 m_deleteDateTime = std::forward<DeleteDateTimeT>(value);
130 }
131 template <typename DeleteDateTimeT = Aws::Utils::DateTime>
132 GetChannelResult& WithDeleteDateTime(DeleteDateTimeT&& value) {
133 SetDeleteDateTime(std::forward<DeleteDateTimeT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Map<Aws::String, Aws::Vector<ChannelRole>>& GetChannelRoles() const { return m_channelRoles; }
143 template <typename ChannelRolesT = Aws::Map<Aws::String, Aws::Vector<ChannelRole>>>
144 void SetChannelRoles(ChannelRolesT&& value) {
145 m_channelRolesHasBeenSet = true;
146 m_channelRoles = std::forward<ChannelRolesT>(value);
147 }
148 template <typename ChannelRolesT = Aws::Map<Aws::String, Aws::Vector<ChannelRole>>>
149 GetChannelResult& WithChannelRoles(ChannelRolesT&& value) {
150 SetChannelRoles(std::forward<ChannelRolesT>(value));
151 return *this;
152 }
153 template <typename ChannelRolesKeyT = Aws::String, typename ChannelRolesValueT = Aws::Vector<ChannelRole>>
154 GetChannelResult& AddChannelRoles(ChannelRolesKeyT&& key, ChannelRolesValueT&& value) {
155 m_channelRolesHasBeenSet = true;
156 m_channelRoles.emplace(std::forward<ChannelRolesKeyT>(key), std::forward<ChannelRolesValueT>(value));
157 return *this;
158 }
160
162
165 inline ChannelStatus GetChannelStatus() const { return m_channelStatus; }
166 inline void SetChannelStatus(ChannelStatus value) {
167 m_channelStatusHasBeenSet = true;
168 m_channelStatus = value;
169 }
171 SetChannelStatus(value);
172 return *this;
173 }
175
177
178 inline const Aws::String& GetRequestId() const { return m_requestId; }
179 template <typename RequestIdT = Aws::String>
180 void SetRequestId(RequestIdT&& value) {
181 m_requestIdHasBeenSet = true;
182 m_requestId = std::forward<RequestIdT>(value);
183 }
184 template <typename RequestIdT = Aws::String>
185 GetChannelResult& WithRequestId(RequestIdT&& value) {
186 SetRequestId(std::forward<RequestIdT>(value));
187 return *this;
188 }
190 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
191
192 private:
193 Aws::String m_spaceId;
194
195 Aws::String m_channelId;
196
197 Aws::String m_channelName;
198
199 Aws::String m_channelDescription;
200
201 Aws::Utils::DateTime m_createDateTime{};
202
203 Aws::Utils::DateTime m_deleteDateTime{};
204
206
207 ChannelStatus m_channelStatus{ChannelStatus::NOT_SET};
208
209 Aws::String m_requestId;
210 Aws::Http::HttpResponseCode m_HttpResponseCode;
211 bool m_spaceIdHasBeenSet = false;
212 bool m_channelIdHasBeenSet = false;
213 bool m_channelNameHasBeenSet = false;
214 bool m_channelDescriptionHasBeenSet = false;
215 bool m_createDateTimeHasBeenSet = false;
216 bool m_deleteDateTimeHasBeenSet = false;
217 bool m_channelRolesHasBeenSet = false;
218 bool m_channelStatusHasBeenSet = false;
219 bool m_requestIdHasBeenSet = false;
220};
221
222} // namespace Model
223} // namespace repostspace
224} // namespace Aws
GetChannelResult & WithCreateDateTime(CreateDateTimeT &&value)
GetChannelResult & WithChannelStatus(ChannelStatus value)
GetChannelResult & WithSpaceId(SpaceIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_REPOSTSPACE_API GetChannelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetCreateDateTime(CreateDateTimeT &&value)
void SetDeleteDateTime(DeleteDateTimeT &&value)
GetChannelResult & WithChannelId(ChannelIdT &&value)
GetChannelResult & WithChannelRoles(ChannelRolesT &&value)
void SetChannelName(ChannelNameT &&value)
void SetChannelDescription(ChannelDescriptionT &&value)
AWS_REPOSTSPACE_API GetChannelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetChannelResult & WithRequestId(RequestIdT &&value)
void SetChannelRoles(ChannelRolesT &&value)
const Aws::Utils::DateTime & GetCreateDateTime() const
const Aws::Map< Aws::String, Aws::Vector< ChannelRole > > & GetChannelRoles() const
const Aws::String & GetChannelName() const
GetChannelResult & WithChannelDescription(ChannelDescriptionT &&value)
const Aws::Utils::DateTime & GetDeleteDateTime() const
GetChannelResult & WithDeleteDateTime(DeleteDateTimeT &&value)
const Aws::String & GetChannelDescription() const
const Aws::String & GetChannelId() const
AWS_REPOSTSPACE_API GetChannelResult()=default
GetChannelResult & AddChannelRoles(ChannelRolesKeyT &&key, ChannelRolesValueT &&value)
GetChannelResult & WithChannelName(ChannelNameT &&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
Aws::Utils::Json::JsonValue JsonValue