AWS SDK for C++  1.9.158
AWS SDK for C++
ListNamespacesResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace QuickSight
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
42  inline const Aws::Vector<NamespaceInfoV2>& GetNamespaces() const{ return m_namespaces; }
43 
49  inline void SetNamespaces(const Aws::Vector<NamespaceInfoV2>& value) { m_namespaces = value; }
50 
56  inline void SetNamespaces(Aws::Vector<NamespaceInfoV2>&& value) { m_namespaces = std::move(value); }
57 
63  inline ListNamespacesResult& WithNamespaces(const Aws::Vector<NamespaceInfoV2>& value) { SetNamespaces(value); return *this;}
64 
70  inline ListNamespacesResult& WithNamespaces(Aws::Vector<NamespaceInfoV2>&& value) { SetNamespaces(std::move(value)); return *this;}
71 
77  inline ListNamespacesResult& AddNamespaces(const NamespaceInfoV2& value) { m_namespaces.push_back(value); return *this; }
78 
84  inline ListNamespacesResult& AddNamespaces(NamespaceInfoV2&& value) { m_namespaces.push_back(std::move(value)); return *this; }
85 
86 
90  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
91 
95  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
96 
100  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
101 
105  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
106 
110  inline ListNamespacesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
111 
115  inline ListNamespacesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
116 
120  inline ListNamespacesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122 
126  inline const Aws::String& GetRequestId() const{ return m_requestId; }
127 
131  inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
132 
136  inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
137 
141  inline void SetRequestId(const char* value) { m_requestId.assign(value); }
142 
146  inline ListNamespacesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
147 
151  inline ListNamespacesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
152 
156  inline ListNamespacesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
157 
158 
162  inline int GetStatus() const{ return m_status; }
163 
167  inline void SetStatus(int value) { m_status = value; }
168 
172  inline ListNamespacesResult& WithStatus(int value) { SetStatus(value); return *this;}
173 
174  private:
175 
176  Aws::Vector<NamespaceInfoV2> m_namespaces;
177 
178  Aws::String m_nextToken;
179 
180  Aws::String m_requestId;
181 
182  int m_status;
183  };
184 
185 } // namespace Model
186 } // namespace QuickSight
187 } // namespace Aws
Aws::QuickSight::Model::ListNamespacesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListNamespacesResult.h:95
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::QuickSight::Model::ListNamespacesResult::GetStatus
int GetStatus() const
Definition: ListNamespacesResult.h:162
QuickSight_EXPORTS.h
Aws::QuickSight::Model::ListNamespacesResult::AddNamespaces
ListNamespacesResult & AddNamespaces(const NamespaceInfoV2 &value)
Definition: ListNamespacesResult.h:77
Aws::QuickSight::Model::ListNamespacesResult::ListNamespacesResult
ListNamespacesResult()
NamespaceInfoV2.h
Aws::QuickSight::Model::ListNamespacesResult::SetRequestId
void SetRequestId(const char *value)
Definition: ListNamespacesResult.h:141
Aws::QuickSight::Model::ListNamespacesResult::AddNamespaces
ListNamespacesResult & AddNamespaces(NamespaceInfoV2 &&value)
Definition: ListNamespacesResult.h:84
Aws::QuickSight::Model::NamespaceInfoV2
Definition: NamespaceInfoV2.h:35
Aws::QuickSight::Model::ListNamespacesResult::WithNamespaces
ListNamespacesResult & WithNamespaces(Aws::Vector< NamespaceInfoV2 > &&value)
Definition: ListNamespacesResult.h:70
Aws::QuickSight::Model::ListNamespacesResult::WithRequestId
ListNamespacesResult & WithRequestId(Aws::String &&value)
Definition: ListNamespacesResult.h:151
Aws::QuickSight::Model::ListNamespacesResult::GetRequestId
const Aws::String & GetRequestId() const
Definition: ListNamespacesResult.h:126
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::QuickSight::Model::ListNamespacesResult
Definition: ListNamespacesResult.h:30
Aws::QuickSight::Model::ListNamespacesResult::WithRequestId
ListNamespacesResult & WithRequestId(const Aws::String &value)
Definition: ListNamespacesResult.h:146
Aws::QuickSight::Model::ListNamespacesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListNamespacesResult.h:105
Aws::QuickSight::Model::ListNamespacesResult::SetNamespaces
void SetNamespaces(Aws::Vector< NamespaceInfoV2 > &&value)
Definition: ListNamespacesResult.h:56
Aws::QuickSight::Model::ListNamespacesResult::WithNamespaces
ListNamespacesResult & WithNamespaces(const Aws::Vector< NamespaceInfoV2 > &value)
Definition: ListNamespacesResult.h:63
Aws::QuickSight::Model::ListNamespacesResult::SetRequestId
void SetRequestId(Aws::String &&value)
Definition: ListNamespacesResult.h:136
AWSString.h
Aws::QuickSight::Model::ListNamespacesResult::WithStatus
ListNamespacesResult & WithStatus(int value)
Definition: ListNamespacesResult.h:172
Aws::QuickSight::Model::ListNamespacesResult::SetRequestId
void SetRequestId(const Aws::String &value)
Definition: ListNamespacesResult.h:131
Aws::QuickSight::Model::ListNamespacesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListNamespacesResult.h:90
Aws::QuickSight::Model::ListNamespacesResult::WithNextToken
ListNamespacesResult & WithNextToken(const char *value)
Definition: ListNamespacesResult.h:120
Aws::QuickSight::Model::ListNamespacesResult::WithNextToken
ListNamespacesResult & WithNextToken(Aws::String &&value)
Definition: ListNamespacesResult.h:115
Aws::QuickSight::Model::ListNamespacesResult::SetStatus
void SetStatus(int value)
Definition: ListNamespacesResult.h:167
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::QuickSight::Model::ListNamespacesResult::WithNextToken
ListNamespacesResult & WithNextToken(const Aws::String &value)
Definition: ListNamespacesResult.h:110
AWS_QUICKSIGHT_API
#define AWS_QUICKSIGHT_API
Definition: QuickSight_EXPORTS.h:28
Aws::QuickSight::Model::ListNamespacesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListNamespacesResult.h:100
Aws
Definition: AccessManagementClient.h:15
Aws::QuickSight::Model::ListNamespacesResult::SetNamespaces
void SetNamespaces(const Aws::Vector< NamespaceInfoV2 > &value)
Definition: ListNamespacesResult.h:49
Aws::QuickSight::Model::ListNamespacesResult::WithRequestId
ListNamespacesResult & WithRequestId(const char *value)
Definition: ListNamespacesResult.h:156
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::QuickSight::Model::ListNamespacesResult::GetNamespaces
const Aws::Vector< NamespaceInfoV2 > & GetNamespaces() const
Definition: ListNamespacesResult.h:42
Aws::QuickSight::Model::ListNamespacesResult::ListNamespacesResult
ListNamespacesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::QuickSight::Model::ListNamespacesResult::operator=
ListNamespacesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)