AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
ListChannelsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/notifications/Notifications_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace Notifications {
23namespace Model {
25 public:
26 AWS_NOTIFICATIONS_API ListChannelsResult() = default;
29
31
35 inline const Aws::String& GetNextToken() const { return m_nextToken; }
36 template <typename NextTokenT = Aws::String>
37 void SetNextToken(NextTokenT&& value) {
38 m_nextTokenHasBeenSet = true;
39 m_nextToken = std::forward<NextTokenT>(value);
40 }
41 template <typename NextTokenT = Aws::String>
42 ListChannelsResult& WithNextToken(NextTokenT&& value) {
43 SetNextToken(std::forward<NextTokenT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::Vector<Aws::String>& GetChannels() const { return m_channels; }
53 template <typename ChannelsT = Aws::Vector<Aws::String>>
54 void SetChannels(ChannelsT&& value) {
55 m_channelsHasBeenSet = true;
56 m_channels = std::forward<ChannelsT>(value);
57 }
58 template <typename ChannelsT = Aws::Vector<Aws::String>>
59 ListChannelsResult& WithChannels(ChannelsT&& value) {
60 SetChannels(std::forward<ChannelsT>(value));
61 return *this;
62 }
63 template <typename ChannelsT = Aws::String>
64 ListChannelsResult& AddChannels(ChannelsT&& value) {
65 m_channelsHasBeenSet = true;
66 m_channels.emplace_back(std::forward<ChannelsT>(value));
67 return *this;
68 }
70
72
73 inline const Aws::String& GetRequestId() const { return m_requestId; }
74 template <typename RequestIdT = Aws::String>
75 void SetRequestId(RequestIdT&& value) {
76 m_requestIdHasBeenSet = true;
77 m_requestId = std::forward<RequestIdT>(value);
78 }
79 template <typename RequestIdT = Aws::String>
80 ListChannelsResult& WithRequestId(RequestIdT&& value) {
81 SetRequestId(std::forward<RequestIdT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_nextToken;
87
88 Aws::Vector<Aws::String> m_channels;
89
90 Aws::String m_requestId;
91 bool m_nextTokenHasBeenSet = false;
92 bool m_channelsHasBeenSet = false;
93 bool m_requestIdHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace Notifications
98} // namespace Aws
ListChannelsResult & WithChannels(ChannelsT &&value)
ListChannelsResult & WithRequestId(RequestIdT &&value)
ListChannelsResult & WithNextToken(NextTokenT &&value)
AWS_NOTIFICATIONS_API ListChannelsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_NOTIFICATIONS_API ListChannelsResult()=default
ListChannelsResult & AddChannels(ChannelsT &&value)
AWS_NOTIFICATIONS_API ListChannelsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Aws::String > & GetChannels() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue