AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetChannelResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/repostspace/Repostspace_EXPORTS.h>
12#include <aws/repostspace/model/ChannelRole.h>
13#include <aws/repostspace/model/ChannelStatus.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace repostspace {
27namespace Model {
29 public:
30 AWS_REPOSTSPACE_API GetChannelResult() = default;
33
35
38 inline const Aws::String& GetSpaceId() const { return m_spaceId; }
39 template <typename SpaceIdT = Aws::String>
40 void SetSpaceId(SpaceIdT&& value) {
41 m_spaceIdHasBeenSet = true;
42 m_spaceId = std::forward<SpaceIdT>(value);
43 }
44 template <typename SpaceIdT = Aws::String>
45 GetChannelResult& WithSpaceId(SpaceIdT&& value) {
46 SetSpaceId(std::forward<SpaceIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetChannelId() const { return m_channelId; }
56 template <typename ChannelIdT = Aws::String>
57 void SetChannelId(ChannelIdT&& value) {
58 m_channelIdHasBeenSet = true;
59 m_channelId = std::forward<ChannelIdT>(value);
60 }
61 template <typename ChannelIdT = Aws::String>
62 GetChannelResult& WithChannelId(ChannelIdT&& value) {
63 SetChannelId(std::forward<ChannelIdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetChannelName() const { return m_channelName; }
73 template <typename ChannelNameT = Aws::String>
74 void SetChannelName(ChannelNameT&& value) {
75 m_channelNameHasBeenSet = true;
76 m_channelName = std::forward<ChannelNameT>(value);
77 }
78 template <typename ChannelNameT = Aws::String>
79 GetChannelResult& WithChannelName(ChannelNameT&& value) {
80 SetChannelName(std::forward<ChannelNameT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::String& GetChannelDescription() const { return m_channelDescription; }
91 template <typename ChannelDescriptionT = Aws::String>
92 void SetChannelDescription(ChannelDescriptionT&& value) {
93 m_channelDescriptionHasBeenSet = true;
94 m_channelDescription = std::forward<ChannelDescriptionT>(value);
95 }
96 template <typename ChannelDescriptionT = Aws::String>
97 GetChannelResult& WithChannelDescription(ChannelDescriptionT&& value) {
98 SetChannelDescription(std::forward<ChannelDescriptionT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Utils::DateTime& GetCreateDateTime() const { return m_createDateTime; }
108 template <typename CreateDateTimeT = Aws::Utils::DateTime>
109 void SetCreateDateTime(CreateDateTimeT&& value) {
110 m_createDateTimeHasBeenSet = true;
111 m_createDateTime = std::forward<CreateDateTimeT>(value);
112 }
113 template <typename CreateDateTimeT = Aws::Utils::DateTime>
114 GetChannelResult& WithCreateDateTime(CreateDateTimeT&& value) {
115 SetCreateDateTime(std::forward<CreateDateTimeT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::Utils::DateTime& GetDeleteDateTime() const { return m_deleteDateTime; }
125 template <typename DeleteDateTimeT = Aws::Utils::DateTime>
126 void SetDeleteDateTime(DeleteDateTimeT&& value) {
127 m_deleteDateTimeHasBeenSet = true;
128 m_deleteDateTime = std::forward<DeleteDateTimeT>(value);
129 }
130 template <typename DeleteDateTimeT = Aws::Utils::DateTime>
131 GetChannelResult& WithDeleteDateTime(DeleteDateTimeT&& value) {
132 SetDeleteDateTime(std::forward<DeleteDateTimeT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::Map<Aws::String, Aws::Vector<ChannelRole>>& GetChannelRoles() const { return m_channelRoles; }
142 template <typename ChannelRolesT = Aws::Map<Aws::String, Aws::Vector<ChannelRole>>>
143 void SetChannelRoles(ChannelRolesT&& value) {
144 m_channelRolesHasBeenSet = true;
145 m_channelRoles = std::forward<ChannelRolesT>(value);
146 }
147 template <typename ChannelRolesT = Aws::Map<Aws::String, Aws::Vector<ChannelRole>>>
148 GetChannelResult& WithChannelRoles(ChannelRolesT&& value) {
149 SetChannelRoles(std::forward<ChannelRolesT>(value));
150 return *this;
151 }
152 template <typename ChannelRolesKeyT = Aws::String, typename ChannelRolesValueT = Aws::Vector<ChannelRole>>
153 GetChannelResult& AddChannelRoles(ChannelRolesKeyT&& key, ChannelRolesValueT&& value) {
154 m_channelRolesHasBeenSet = true;
155 m_channelRoles.emplace(std::forward<ChannelRolesKeyT>(key), std::forward<ChannelRolesValueT>(value));
156 return *this;
157 }
159
161
164 inline ChannelStatus GetChannelStatus() const { return m_channelStatus; }
165 inline void SetChannelStatus(ChannelStatus value) {
166 m_channelStatusHasBeenSet = true;
167 m_channelStatus = value;
168 }
170 SetChannelStatus(value);
171 return *this;
172 }
174
176
177 inline const Aws::String& GetRequestId() const { return m_requestId; }
178 template <typename RequestIdT = Aws::String>
179 void SetRequestId(RequestIdT&& value) {
180 m_requestIdHasBeenSet = true;
181 m_requestId = std::forward<RequestIdT>(value);
182 }
183 template <typename RequestIdT = Aws::String>
184 GetChannelResult& WithRequestId(RequestIdT&& value) {
185 SetRequestId(std::forward<RequestIdT>(value));
186 return *this;
187 }
189 private:
190 Aws::String m_spaceId;
191
192 Aws::String m_channelId;
193
194 Aws::String m_channelName;
195
196 Aws::String m_channelDescription;
197
198 Aws::Utils::DateTime m_createDateTime{};
199
200 Aws::Utils::DateTime m_deleteDateTime{};
201
203
204 ChannelStatus m_channelStatus{ChannelStatus::NOT_SET};
205
206 Aws::String m_requestId;
207 bool m_spaceIdHasBeenSet = false;
208 bool m_channelIdHasBeenSet = false;
209 bool m_channelNameHasBeenSet = false;
210 bool m_channelDescriptionHasBeenSet = false;
211 bool m_createDateTimeHasBeenSet = false;
212 bool m_deleteDateTimeHasBeenSet = false;
213 bool m_channelRolesHasBeenSet = false;
214 bool m_channelStatusHasBeenSet = false;
215 bool m_requestIdHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace repostspace
220} // namespace Aws
GetChannelResult & WithCreateDateTime(CreateDateTimeT &&value)
GetChannelResult & WithChannelStatus(ChannelStatus value)
GetChannelResult & WithSpaceId(SpaceIdT &&value)
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