AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
SearchNotificationsResult.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/NotificationSearchSummary.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Connect {
25namespace Model {
27 public:
28 AWS_CONNECT_API SearchNotificationsResult() = default;
31
33
36 inline const Aws::Vector<NotificationSearchSummary>& GetNotifications() const { return m_notifications; }
37 template <typename NotificationsT = Aws::Vector<NotificationSearchSummary>>
38 void SetNotifications(NotificationsT&& value) {
39 m_notificationsHasBeenSet = true;
40 m_notifications = std::forward<NotificationsT>(value);
41 }
42 template <typename NotificationsT = Aws::Vector<NotificationSearchSummary>>
44 SetNotifications(std::forward<NotificationsT>(value));
45 return *this;
46 }
47 template <typename NotificationsT = NotificationSearchSummary>
49 m_notificationsHasBeenSet = true;
50 m_notifications.emplace_back(std::forward<NotificationsT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetNextToken() const { return m_nextToken; }
61 template <typename NextTokenT = Aws::String>
62 void SetNextToken(NextTokenT&& value) {
63 m_nextTokenHasBeenSet = true;
64 m_nextToken = std::forward<NextTokenT>(value);
65 }
66 template <typename NextTokenT = Aws::String>
68 SetNextToken(std::forward<NextTokenT>(value));
69 return *this;
70 }
72
74
78 inline long long GetApproximateTotalCount() const { return m_approximateTotalCount; }
79 inline void SetApproximateTotalCount(long long value) {
80 m_approximateTotalCountHasBeenSet = true;
81 m_approximateTotalCount = value;
82 }
85 return *this;
86 }
88
90
91 inline const Aws::String& GetRequestId() const { return m_requestId; }
92 template <typename RequestIdT = Aws::String>
93 void SetRequestId(RequestIdT&& value) {
94 m_requestIdHasBeenSet = true;
95 m_requestId = std::forward<RequestIdT>(value);
96 }
97 template <typename RequestIdT = Aws::String>
99 SetRequestId(std::forward<RequestIdT>(value));
100 return *this;
101 }
103 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
104
105 private:
107
108 Aws::String m_nextToken;
109
110 long long m_approximateTotalCount{0};
111
112 Aws::String m_requestId;
113 Aws::Http::HttpResponseCode m_HttpResponseCode;
114 bool m_notificationsHasBeenSet = false;
115 bool m_nextTokenHasBeenSet = false;
116 bool m_approximateTotalCountHasBeenSet = false;
117 bool m_requestIdHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace Connect
122} // namespace Aws
SearchNotificationsResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< NotificationSearchSummary > & GetNotifications() const
SearchNotificationsResult & WithApproximateTotalCount(long long value)
SearchNotificationsResult & AddNotifications(NotificationsT &&value)
SearchNotificationsResult & WithNextToken(NextTokenT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
SearchNotificationsResult & WithNotifications(NotificationsT &&value)
AWS_CONNECT_API SearchNotificationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CONNECT_API SearchNotificationsResult()=default
AWS_CONNECT_API SearchNotificationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue