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/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/logs/model/QueryStatistics.h>
10#include <aws/logs/model/QueryStatus.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/logs/model/ResultField.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 CloudWatchLogs
28{
29namespace Model
30{
32 {
33 public:
34 AWS_CLOUDWATCHLOGS_API GetQueryResultsResult();
37
38
40
46 inline const Aws::Vector<Aws::Vector<ResultField>>& GetResults() const{ return m_results; }
47 inline void SetResults(const Aws::Vector<Aws::Vector<ResultField>>& value) { m_results = value; }
48 inline void SetResults(Aws::Vector<Aws::Vector<ResultField>>&& value) { m_results = std::move(value); }
50 inline GetQueryResultsResult& WithResults(Aws::Vector<Aws::Vector<ResultField>>&& value) { SetResults(std::move(value)); return *this;}
51 inline GetQueryResultsResult& AddResults(const Aws::Vector<ResultField>& value) { m_results.push_back(value); return *this; }
52 inline GetQueryResultsResult& AddResults(Aws::Vector<ResultField>&& value) { m_results.push_back(std::move(value)); return *this; }
54
56
61 inline const QueryStatistics& GetStatistics() const{ return m_statistics; }
62 inline void SetStatistics(const QueryStatistics& value) { m_statistics = value; }
63 inline void SetStatistics(QueryStatistics&& value) { m_statistics = std::move(value); }
64 inline GetQueryResultsResult& WithStatistics(const QueryStatistics& value) { SetStatistics(value); return *this;}
65 inline GetQueryResultsResult& WithStatistics(QueryStatistics&& value) { SetStatistics(std::move(value)); return *this;}
67
69
77 inline const QueryStatus& GetStatus() const{ return m_status; }
78 inline void SetStatus(const QueryStatus& value) { m_status = value; }
79 inline void SetStatus(QueryStatus&& value) { m_status = std::move(value); }
80 inline GetQueryResultsResult& WithStatus(const QueryStatus& value) { SetStatus(value); return *this;}
81 inline GetQueryResultsResult& WithStatus(QueryStatus&& value) { SetStatus(std::move(value)); return *this;}
83
85
92 inline const Aws::String& GetEncryptionKey() const{ return m_encryptionKey; }
93 inline void SetEncryptionKey(const Aws::String& value) { m_encryptionKey = value; }
94 inline void SetEncryptionKey(Aws::String&& value) { m_encryptionKey = std::move(value); }
95 inline void SetEncryptionKey(const char* value) { m_encryptionKey.assign(value); }
96 inline GetQueryResultsResult& WithEncryptionKey(const Aws::String& value) { SetEncryptionKey(value); return *this;}
97 inline GetQueryResultsResult& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;}
98 inline GetQueryResultsResult& WithEncryptionKey(const char* value) { SetEncryptionKey(value); return *this;}
100
102
103 inline const Aws::String& GetRequestId() const{ return m_requestId; }
104 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
105 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
106 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
107 inline GetQueryResultsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
108 inline GetQueryResultsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
109 inline GetQueryResultsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
111 private:
112
114
115 QueryStatistics m_statistics;
116
117 QueryStatus m_status;
118
119 Aws::String m_encryptionKey;
120
121 Aws::String m_requestId;
122 };
123
124} // namespace Model
125} // namespace CloudWatchLogs
126} // namespace Aws
AWS_CLOUDWATCHLOGS_API GetQueryResultsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetQueryResultsResult & WithRequestId(const char *value)
GetQueryResultsResult & WithStatistics(QueryStatistics &&value)
void SetResults(const Aws::Vector< Aws::Vector< ResultField > > &value)
GetQueryResultsResult & WithStatus(const QueryStatus &value)
GetQueryResultsResult & WithRequestId(Aws::String &&value)
GetQueryResultsResult & WithStatus(QueryStatus &&value)
GetQueryResultsResult & WithStatistics(const QueryStatistics &value)
GetQueryResultsResult & WithResults(const Aws::Vector< Aws::Vector< ResultField > > &value)
GetQueryResultsResult & WithEncryptionKey(const char *value)
GetQueryResultsResult & AddResults(const Aws::Vector< ResultField > &value)
GetQueryResultsResult & WithEncryptionKey(const Aws::String &value)
GetQueryResultsResult & AddResults(Aws::Vector< ResultField > &&value)
const Aws::Vector< Aws::Vector< ResultField > > & GetResults() const
GetQueryResultsResult & WithRequestId(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API GetQueryResultsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetQueryResultsResult & WithEncryptionKey(Aws::String &&value)
GetQueryResultsResult & WithResults(Aws::Vector< Aws::Vector< ResultField > > &&value)
void SetResults(Aws::Vector< Aws::Vector< ResultField > > &&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