AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetQueryResultsResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/QueryStatus.h>
9#include <aws/cloudtrail/model/QueryStatistics.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace CloudTrail
28{
29namespace Model
30{
32 {
33 public:
34 AWS_CLOUDTRAIL_API GetQueryResultsResult();
37
38
40
45 inline const QueryStatus& GetQueryStatus() const{ return m_queryStatus; }
46 inline void SetQueryStatus(const QueryStatus& value) { m_queryStatus = value; }
47 inline void SetQueryStatus(QueryStatus&& value) { m_queryStatus = std::move(value); }
48 inline GetQueryResultsResult& WithQueryStatus(const QueryStatus& value) { SetQueryStatus(value); return *this;}
49 inline GetQueryResultsResult& WithQueryStatus(QueryStatus&& value) { SetQueryStatus(std::move(value)); return *this;}
51
53
56 inline const QueryStatistics& GetQueryStatistics() const{ return m_queryStatistics; }
57 inline void SetQueryStatistics(const QueryStatistics& value) { m_queryStatistics = value; }
58 inline void SetQueryStatistics(QueryStatistics&& value) { m_queryStatistics = std::move(value); }
59 inline GetQueryResultsResult& WithQueryStatistics(const QueryStatistics& value) { SetQueryStatistics(value); return *this;}
60 inline GetQueryResultsResult& WithQueryStatistics(QueryStatistics&& value) { SetQueryStatistics(std::move(value)); return *this;}
62
64
67 inline const Aws::Vector<Aws::Vector<Aws::Map<Aws::String, Aws::String>>>& GetQueryResultRows() const{ return m_queryResultRows; }
68 inline void SetQueryResultRows(const Aws::Vector<Aws::Vector<Aws::Map<Aws::String, Aws::String>>>& value) { m_queryResultRows = value; }
69 inline void SetQueryResultRows(Aws::Vector<Aws::Vector<Aws::Map<Aws::String, Aws::String>>>&& value) { m_queryResultRows = std::move(value); }
72 inline GetQueryResultsResult& AddQueryResultRows(const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& value) { m_queryResultRows.push_back(value); return *this; }
73 inline GetQueryResultsResult& AddQueryResultRows(Aws::Vector<Aws::Map<Aws::String, Aws::String>>&& value) { m_queryResultRows.push_back(std::move(value)); return *this; }
75
77
80 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
81 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
82 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
83 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
84 inline GetQueryResultsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
85 inline GetQueryResultsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
86 inline GetQueryResultsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
88
90
93 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
94 inline void SetErrorMessage(const Aws::String& value) { m_errorMessage = value; }
95 inline void SetErrorMessage(Aws::String&& value) { m_errorMessage = std::move(value); }
96 inline void SetErrorMessage(const char* value) { m_errorMessage.assign(value); }
97 inline GetQueryResultsResult& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
98 inline GetQueryResultsResult& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
99 inline GetQueryResultsResult& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
101
103
104 inline const Aws::String& GetRequestId() const{ return m_requestId; }
105 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
106 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
107 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
108 inline GetQueryResultsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
109 inline GetQueryResultsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
110 inline GetQueryResultsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
112 private:
113
114 QueryStatus m_queryStatus;
115
116 QueryStatistics m_queryStatistics;
117
119
120 Aws::String m_nextToken;
121
122 Aws::String m_errorMessage;
123
124 Aws::String m_requestId;
125 };
126
127} // namespace Model
128} // namespace CloudTrail
129} // namespace Aws
GetQueryResultsResult & WithQueryStatus(QueryStatus &&value)
GetQueryResultsResult & WithErrorMessage(const char *value)
GetQueryResultsResult & WithQueryStatistics(const QueryStatistics &value)
GetQueryResultsResult & WithNextToken(Aws::String &&value)
GetQueryResultsResult & AddQueryResultRows(Aws::Vector< Aws::Map< Aws::String, Aws::String > > &&value)
GetQueryResultsResult & WithErrorMessage(Aws::String &&value)
GetQueryResultsResult & WithRequestId(const char *value)
GetQueryResultsResult & WithQueryStatistics(QueryStatistics &&value)
GetQueryResultsResult & WithQueryResultRows(const Aws::Vector< Aws::Vector< Aws::Map< Aws::String, Aws::String > > > &value)
GetQueryResultsResult & WithQueryResultRows(Aws::Vector< Aws::Vector< Aws::Map< Aws::String, Aws::String > > > &&value)
void SetQueryResultRows(const Aws::Vector< Aws::Vector< Aws::Map< Aws::String, Aws::String > > > &value)
GetQueryResultsResult & WithNextToken(const Aws::String &value)
GetQueryResultsResult & WithNextToken(const char *value)
GetQueryResultsResult & WithQueryStatus(const QueryStatus &value)
GetQueryResultsResult & WithErrorMessage(const Aws::String &value)
GetQueryResultsResult & WithRequestId(const Aws::String &value)
const Aws::Vector< Aws::Vector< Aws::Map< Aws::String, Aws::String > > > & GetQueryResultRows() const
AWS_CLOUDTRAIL_API GetQueryResultsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CLOUDTRAIL_API GetQueryResultsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const QueryStatistics & GetQueryStatistics() const
void SetQueryStatistics(const QueryStatistics &value)
GetQueryResultsResult & WithRequestId(Aws::String &&value)
GetQueryResultsResult & AddQueryResultRows(const Aws::Vector< Aws::Map< Aws::String, Aws::String > > &value)
void SetQueryResultRows(Aws::Vector< Aws::Vector< Aws::Map< Aws::String, Aws::String > > > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue