AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartQueryRequest.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/logs/model/QueryLanguage.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudWatchLogs
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDWATCHLOGS_API StartQueryRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "StartQuery"; }
33
34 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
35
36 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
47 inline QueryLanguage GetQueryLanguage() const { return m_queryLanguage; }
48 inline bool QueryLanguageHasBeenSet() const { return m_queryLanguageHasBeenSet; }
49 inline void SetQueryLanguage(QueryLanguage value) { m_queryLanguageHasBeenSet = true; m_queryLanguage = value; }
50 inline StartQueryRequest& WithQueryLanguage(QueryLanguage value) { SetQueryLanguage(value); return *this;}
52
54
62 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
63 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
64 template<typename LogGroupNameT = Aws::String>
65 void SetLogGroupName(LogGroupNameT&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::forward<LogGroupNameT>(value); }
66 template<typename LogGroupNameT = Aws::String>
67 StartQueryRequest& WithLogGroupName(LogGroupNameT&& value) { SetLogGroupName(std::forward<LogGroupNameT>(value)); return *this;}
69
71
80 inline const Aws::Vector<Aws::String>& GetLogGroupNames() const { return m_logGroupNames; }
81 inline bool LogGroupNamesHasBeenSet() const { return m_logGroupNamesHasBeenSet; }
82 template<typename LogGroupNamesT = Aws::Vector<Aws::String>>
83 void SetLogGroupNames(LogGroupNamesT&& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames = std::forward<LogGroupNamesT>(value); }
84 template<typename LogGroupNamesT = Aws::Vector<Aws::String>>
85 StartQueryRequest& WithLogGroupNames(LogGroupNamesT&& value) { SetLogGroupNames(std::forward<LogGroupNamesT>(value)); return *this;}
86 template<typename LogGroupNamesT = Aws::String>
87 StartQueryRequest& AddLogGroupNames(LogGroupNamesT&& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames.emplace_back(std::forward<LogGroupNamesT>(value)); return *this; }
89
91
104 inline const Aws::Vector<Aws::String>& GetLogGroupIdentifiers() const { return m_logGroupIdentifiers; }
105 inline bool LogGroupIdentifiersHasBeenSet() const { return m_logGroupIdentifiersHasBeenSet; }
106 template<typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
107 void SetLogGroupIdentifiers(LogGroupIdentifiersT&& value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers = std::forward<LogGroupIdentifiersT>(value); }
108 template<typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
109 StartQueryRequest& WithLogGroupIdentifiers(LogGroupIdentifiersT&& value) { SetLogGroupIdentifiers(std::forward<LogGroupIdentifiersT>(value)); return *this;}
110 template<typename LogGroupIdentifiersT = Aws::String>
111 StartQueryRequest& AddLogGroupIdentifiers(LogGroupIdentifiersT&& value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers.emplace_back(std::forward<LogGroupIdentifiersT>(value)); return *this; }
113
115
120 inline long long GetStartTime() const { return m_startTime; }
121 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
122 inline void SetStartTime(long long value) { m_startTimeHasBeenSet = true; m_startTime = value; }
123 inline StartQueryRequest& WithStartTime(long long value) { SetStartTime(value); return *this;}
125
127
132 inline long long GetEndTime() const { return m_endTime; }
133 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
134 inline void SetEndTime(long long value) { m_endTimeHasBeenSet = true; m_endTime = value; }
135 inline StartQueryRequest& WithEndTime(long long value) { SetEndTime(value); return *this;}
137
139
144 inline const Aws::String& GetQueryString() const { return m_queryString; }
145 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
146 template<typename QueryStringT = Aws::String>
147 void SetQueryString(QueryStringT&& value) { m_queryStringHasBeenSet = true; m_queryString = std::forward<QueryStringT>(value); }
148 template<typename QueryStringT = Aws::String>
149 StartQueryRequest& WithQueryString(QueryStringT&& value) { SetQueryString(std::forward<QueryStringT>(value)); return *this;}
151
153
158 inline int GetLimit() const { return m_limit; }
159 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
160 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
161 inline StartQueryRequest& WithLimit(int value) { SetLimit(value); return *this;}
163 private:
164
165 QueryLanguage m_queryLanguage{QueryLanguage::NOT_SET};
166 bool m_queryLanguageHasBeenSet = false;
167
168 Aws::String m_logGroupName;
169 bool m_logGroupNameHasBeenSet = false;
170
171 Aws::Vector<Aws::String> m_logGroupNames;
172 bool m_logGroupNamesHasBeenSet = false;
173
174 Aws::Vector<Aws::String> m_logGroupIdentifiers;
175 bool m_logGroupIdentifiersHasBeenSet = false;
176
177 long long m_startTime{0};
178 bool m_startTimeHasBeenSet = false;
179
180 long long m_endTime{0};
181 bool m_endTimeHasBeenSet = false;
182
183 Aws::String m_queryString;
184 bool m_queryStringHasBeenSet = false;
185
186 int m_limit{0};
187 bool m_limitHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace CloudWatchLogs
192} // namespace Aws
AWS_CLOUDWATCHLOGS_API StartQueryRequest()=default
StartQueryRequest & WithQueryString(QueryStringT &&value)
const Aws::Vector< Aws::String > & GetLogGroupIdentifiers() const
void SetLogGroupIdentifiers(LogGroupIdentifiersT &&value)
StartQueryRequest & WithQueryLanguage(QueryLanguage value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
StartQueryRequest & WithEndTime(long long value)
const Aws::Vector< Aws::String > & GetLogGroupNames() const
StartQueryRequest & WithLogGroupNames(LogGroupNamesT &&value)
StartQueryRequest & WithLogGroupName(LogGroupNameT &&value)
StartQueryRequest & WithStartTime(long long value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartQueryRequest & WithLogGroupIdentifiers(LogGroupIdentifiersT &&value)
StartQueryRequest & AddLogGroupIdentifiers(LogGroupIdentifiersT &&value)
StartQueryRequest & AddLogGroupNames(LogGroupNamesT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector