AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
DescribeQueriesResult.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/logs/CloudWatchLogs_EXPORTS.h>
11#include <aws/logs/model/QueryInfo.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 CloudWatchLogs {
25namespace Model {
27 public:
28 AWS_CLOUDWATCHLOGS_API DescribeQueriesResult() = default;
31
33
36 inline const Aws::Vector<QueryInfo>& GetQueries() const { return m_queries; }
37 template <typename QueriesT = Aws::Vector<QueryInfo>>
38 void SetQueries(QueriesT&& value) {
39 m_queriesHasBeenSet = true;
40 m_queries = std::forward<QueriesT>(value);
41 }
42 template <typename QueriesT = Aws::Vector<QueryInfo>>
44 SetQueries(std::forward<QueriesT>(value));
45 return *this;
46 }
47 template <typename QueriesT = QueryInfo>
48 DescribeQueriesResult& AddQueries(QueriesT&& value) {
49 m_queriesHasBeenSet = true;
50 m_queries.emplace_back(std::forward<QueriesT>(value));
51 return *this;
52 }
54
56
57 inline const Aws::String& GetNextToken() const { return m_nextToken; }
58 template <typename NextTokenT = Aws::String>
59 void SetNextToken(NextTokenT&& value) {
60 m_nextTokenHasBeenSet = true;
61 m_nextToken = std::forward<NextTokenT>(value);
62 }
63 template <typename NextTokenT = Aws::String>
64 DescribeQueriesResult& WithNextToken(NextTokenT&& value) {
65 SetNextToken(std::forward<NextTokenT>(value));
66 return *this;
67 }
69
71
72 inline const Aws::String& GetRequestId() const { return m_requestId; }
73 template <typename RequestIdT = Aws::String>
74 void SetRequestId(RequestIdT&& value) {
75 m_requestIdHasBeenSet = true;
76 m_requestId = std::forward<RequestIdT>(value);
77 }
78 template <typename RequestIdT = Aws::String>
79 DescribeQueriesResult& WithRequestId(RequestIdT&& value) {
80 SetRequestId(std::forward<RequestIdT>(value));
81 return *this;
82 }
84 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
85
86 private:
87 Aws::Vector<QueryInfo> m_queries;
88
89 Aws::String m_nextToken;
90
91 Aws::String m_requestId;
92 Aws::Http::HttpResponseCode m_HttpResponseCode;
93 bool m_queriesHasBeenSet = false;
94 bool m_nextTokenHasBeenSet = false;
95 bool m_requestIdHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace CloudWatchLogs
100} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< QueryInfo > & GetQueries() const
DescribeQueriesResult & WithNextToken(NextTokenT &&value)
AWS_CLOUDWATCHLOGS_API DescribeQueriesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeQueriesResult & WithRequestId(RequestIdT &&value)
AWS_CLOUDWATCHLOGS_API DescribeQueriesResult()=default
DescribeQueriesResult & WithQueries(QueriesT &&value)
AWS_CLOUDWATCHLOGS_API DescribeQueriesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeQueriesResult & AddQueries(QueriesT &&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