AWS SDK for C++

AWS SDK for C++ Version 1.11.783

Loading...
Searching...
No Matches
ListNamespacesResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/NamespaceInfoV2.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 QuickSight {
25namespace Model {
27 public:
28 AWS_QUICKSIGHT_API ListNamespacesResult() = default;
31
33
38 inline const Aws::Vector<NamespaceInfoV2>& GetNamespaces() const { return m_namespaces; }
39 template <typename NamespacesT = Aws::Vector<NamespaceInfoV2>>
40 void SetNamespaces(NamespacesT&& value) {
41 m_namespacesHasBeenSet = true;
42 m_namespaces = std::forward<NamespacesT>(value);
43 }
44 template <typename NamespacesT = Aws::Vector<NamespaceInfoV2>>
45 ListNamespacesResult& WithNamespaces(NamespacesT&& value) {
46 SetNamespaces(std::forward<NamespacesT>(value));
47 return *this;
48 }
49 template <typename NamespacesT = NamespaceInfoV2>
50 ListNamespacesResult& AddNamespaces(NamespacesT&& value) {
51 m_namespacesHasBeenSet = true;
52 m_namespaces.emplace_back(std::forward<NamespacesT>(value));
53 return *this;
54 }
56
58
67 inline const Aws::String& GetNextToken() const { return m_nextToken; }
68 template <typename NextTokenT = Aws::String>
69 void SetNextToken(NextTokenT&& value) {
70 m_nextTokenHasBeenSet = true;
71 m_nextToken = std::forward<NextTokenT>(value);
72 }
73 template <typename NextTokenT = Aws::String>
74 ListNamespacesResult& WithNextToken(NextTokenT&& value) {
75 SetNextToken(std::forward<NextTokenT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
89 ListNamespacesResult& WithRequestId(RequestIdT&& value) {
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94
96
99 inline int GetStatus() const { return m_status; }
100 inline void SetStatus(int value) {
101 m_statusHasBeenSet = true;
102 m_status = value;
103 }
104 inline ListNamespacesResult& WithStatus(int value) {
105 SetStatus(value);
106 return *this;
107 }
109 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
110
111 private:
112 Aws::Vector<NamespaceInfoV2> m_namespaces;
113
114 Aws::String m_nextToken;
115
116 Aws::String m_requestId;
117
118 int m_status{0};
119 Aws::Http::HttpResponseCode m_HttpResponseCode;
120 bool m_namespacesHasBeenSet = false;
121 bool m_nextTokenHasBeenSet = false;
122 bool m_requestIdHasBeenSet = false;
123 bool m_statusHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace QuickSight
128} // namespace Aws
ListNamespacesResult & WithStatus(int value)
AWS_QUICKSIGHT_API ListNamespacesResult()=default
AWS_QUICKSIGHT_API ListNamespacesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListNamespacesResult & WithNextToken(NextTokenT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ListNamespacesResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< NamespaceInfoV2 > & GetNamespaces() const
AWS_QUICKSIGHT_API ListNamespacesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListNamespacesResult & AddNamespaces(NamespacesT &&value)
ListNamespacesResult & WithNamespaces(NamespacesT &&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