AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetChannelResult.h
1
6#pragma once
7#include <aws/repostspace/Repostspace_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/repostspace/model/ChannelStatus.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/repostspace/model/ChannelRole.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace repostspace
29{
30namespace Model
31{
33 {
34 public:
35 AWS_REPOSTSPACE_API GetChannelResult() = default;
38
39
41
44 inline const Aws::String& GetSpaceId() const { return m_spaceId; }
45 template<typename SpaceIdT = Aws::String>
46 void SetSpaceId(SpaceIdT&& value) { m_spaceIdHasBeenSet = true; m_spaceId = std::forward<SpaceIdT>(value); }
47 template<typename SpaceIdT = Aws::String>
48 GetChannelResult& WithSpaceId(SpaceIdT&& value) { SetSpaceId(std::forward<SpaceIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetChannelId() const { return m_channelId; }
56 template<typename ChannelIdT = Aws::String>
57 void SetChannelId(ChannelIdT&& value) { m_channelIdHasBeenSet = true; m_channelId = std::forward<ChannelIdT>(value); }
58 template<typename ChannelIdT = Aws::String>
59 GetChannelResult& WithChannelId(ChannelIdT&& value) { SetChannelId(std::forward<ChannelIdT>(value)); return *this;}
61
63
66 inline const Aws::String& GetChannelName() const { return m_channelName; }
67 template<typename ChannelNameT = Aws::String>
68 void SetChannelName(ChannelNameT&& value) { m_channelNameHasBeenSet = true; m_channelName = std::forward<ChannelNameT>(value); }
69 template<typename ChannelNameT = Aws::String>
70 GetChannelResult& WithChannelName(ChannelNameT&& value) { SetChannelName(std::forward<ChannelNameT>(value)); return *this;}
72
74
78 inline const Aws::String& GetChannelDescription() const { return m_channelDescription; }
79 template<typename ChannelDescriptionT = Aws::String>
80 void SetChannelDescription(ChannelDescriptionT&& value) { m_channelDescriptionHasBeenSet = true; m_channelDescription = std::forward<ChannelDescriptionT>(value); }
81 template<typename ChannelDescriptionT = Aws::String>
82 GetChannelResult& WithChannelDescription(ChannelDescriptionT&& value) { SetChannelDescription(std::forward<ChannelDescriptionT>(value)); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetCreateDateTime() const { return m_createDateTime; }
90 template<typename CreateDateTimeT = Aws::Utils::DateTime>
91 void SetCreateDateTime(CreateDateTimeT&& value) { m_createDateTimeHasBeenSet = true; m_createDateTime = std::forward<CreateDateTimeT>(value); }
92 template<typename CreateDateTimeT = Aws::Utils::DateTime>
93 GetChannelResult& WithCreateDateTime(CreateDateTimeT&& value) { SetCreateDateTime(std::forward<CreateDateTimeT>(value)); return *this;}
95
97
100 inline const Aws::Utils::DateTime& GetDeleteDateTime() const { return m_deleteDateTime; }
101 template<typename DeleteDateTimeT = Aws::Utils::DateTime>
102 void SetDeleteDateTime(DeleteDateTimeT&& value) { m_deleteDateTimeHasBeenSet = true; m_deleteDateTime = std::forward<DeleteDateTimeT>(value); }
103 template<typename DeleteDateTimeT = Aws::Utils::DateTime>
104 GetChannelResult& WithDeleteDateTime(DeleteDateTimeT&& value) { SetDeleteDateTime(std::forward<DeleteDateTimeT>(value)); return *this;}
106
108
111 inline const Aws::Map<Aws::String, Aws::Vector<ChannelRole>>& GetChannelRoles() const { return m_channelRoles; }
112 template<typename ChannelRolesT = Aws::Map<Aws::String, Aws::Vector<ChannelRole>>>
113 void SetChannelRoles(ChannelRolesT&& value) { m_channelRolesHasBeenSet = true; m_channelRoles = std::forward<ChannelRolesT>(value); }
114 template<typename ChannelRolesT = Aws::Map<Aws::String, Aws::Vector<ChannelRole>>>
115 GetChannelResult& WithChannelRoles(ChannelRolesT&& value) { SetChannelRoles(std::forward<ChannelRolesT>(value)); return *this;}
116 template<typename ChannelRolesKeyT = Aws::String, typename ChannelRolesValueT = Aws::Vector<ChannelRole>>
117 GetChannelResult& AddChannelRoles(ChannelRolesKeyT&& key, ChannelRolesValueT&& value) {
118 m_channelRolesHasBeenSet = true; m_channelRoles.emplace(std::forward<ChannelRolesKeyT>(key), std::forward<ChannelRolesValueT>(value)); return *this;
119 }
121
123
126 inline ChannelStatus GetChannelStatus() const { return m_channelStatus; }
127 inline void SetChannelStatus(ChannelStatus value) { m_channelStatusHasBeenSet = true; m_channelStatus = value; }
128 inline GetChannelResult& WithChannelStatus(ChannelStatus value) { SetChannelStatus(value); return *this;}
130
132
133 inline const Aws::String& GetRequestId() const { return m_requestId; }
134 template<typename RequestIdT = Aws::String>
135 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
136 template<typename RequestIdT = Aws::String>
137 GetChannelResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
139 private:
140
141 Aws::String m_spaceId;
142 bool m_spaceIdHasBeenSet = false;
143
144 Aws::String m_channelId;
145 bool m_channelIdHasBeenSet = false;
146
147 Aws::String m_channelName;
148 bool m_channelNameHasBeenSet = false;
149
150 Aws::String m_channelDescription;
151 bool m_channelDescriptionHasBeenSet = false;
152
153 Aws::Utils::DateTime m_createDateTime{};
154 bool m_createDateTimeHasBeenSet = false;
155
156 Aws::Utils::DateTime m_deleteDateTime{};
157 bool m_deleteDateTimeHasBeenSet = false;
158
160 bool m_channelRolesHasBeenSet = false;
161
162 ChannelStatus m_channelStatus{ChannelStatus::NOT_SET};
163 bool m_channelStatusHasBeenSet = false;
164
165 Aws::String m_requestId;
166 bool m_requestIdHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace repostspace
171} // 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