AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SearchViewsResult.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/View.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Connect {
24namespace Model {
26 public:
27 AWS_CONNECT_API SearchViewsResult() = default;
30
32
35 inline const Aws::Vector<View>& GetViews() const { return m_views; }
36 template <typename ViewsT = Aws::Vector<View>>
37 void SetViews(ViewsT&& value) {
38 m_viewsHasBeenSet = true;
39 m_views = std::forward<ViewsT>(value);
40 }
41 template <typename ViewsT = Aws::Vector<View>>
42 SearchViewsResult& WithViews(ViewsT&& value) {
43 SetViews(std::forward<ViewsT>(value));
44 return *this;
45 }
46 template <typename ViewsT = View>
47 SearchViewsResult& AddViews(ViewsT&& value) {
48 m_viewsHasBeenSet = true;
49 m_views.emplace_back(std::forward<ViewsT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetNextToken() const { return m_nextToken; }
60 template <typename NextTokenT = Aws::String>
61 void SetNextToken(NextTokenT&& value) {
62 m_nextTokenHasBeenSet = true;
63 m_nextToken = std::forward<NextTokenT>(value);
64 }
65 template <typename NextTokenT = Aws::String>
66 SearchViewsResult& WithNextToken(NextTokenT&& value) {
67 SetNextToken(std::forward<NextTokenT>(value));
68 return *this;
69 }
71
73
76 inline long long GetApproximateTotalCount() const { return m_approximateTotalCount; }
77 inline void SetApproximateTotalCount(long long value) {
78 m_approximateTotalCountHasBeenSet = true;
79 m_approximateTotalCount = value;
80 }
83 return *this;
84 }
86
88
89 inline const Aws::String& GetRequestId() const { return m_requestId; }
90 template <typename RequestIdT = Aws::String>
91 void SetRequestId(RequestIdT&& value) {
92 m_requestIdHasBeenSet = true;
93 m_requestId = std::forward<RequestIdT>(value);
94 }
95 template <typename RequestIdT = Aws::String>
96 SearchViewsResult& WithRequestId(RequestIdT&& value) {
97 SetRequestId(std::forward<RequestIdT>(value));
98 return *this;
99 }
101 private:
102 Aws::Vector<View> m_views;
103
104 Aws::String m_nextToken;
105
106 long long m_approximateTotalCount{0};
107
108 Aws::String m_requestId;
109 bool m_viewsHasBeenSet = false;
110 bool m_nextTokenHasBeenSet = false;
111 bool m_approximateTotalCountHasBeenSet = false;
112 bool m_requestIdHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace Connect
117} // namespace Aws
SearchViewsResult & WithRequestId(RequestIdT &&value)
SearchViewsResult & AddViews(ViewsT &&value)
SearchViewsResult & WithNextToken(NextTokenT &&value)
AWS_CONNECT_API SearchViewsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetNextToken() const
AWS_CONNECT_API SearchViewsResult()=default
const Aws::Vector< View > & GetViews() const
const Aws::String & GetRequestId() const
AWS_CONNECT_API SearchViewsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchViewsResult & WithApproximateTotalCount(long long value)
SearchViewsResult & WithViews(ViewsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue