AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudWatchLogs
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDWATCHLOGS_API StartQueryRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "StartQuery"; }
32
33 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
34
35 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
45 inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
46 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
47 inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
48 inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
49 inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
50 inline StartQueryRequest& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
51 inline StartQueryRequest& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
52 inline StartQueryRequest& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
54
56
62 inline const Aws::Vector<Aws::String>& GetLogGroupNames() const{ return m_logGroupNames; }
63 inline bool LogGroupNamesHasBeenSet() const { return m_logGroupNamesHasBeenSet; }
64 inline void SetLogGroupNames(const Aws::Vector<Aws::String>& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames = value; }
65 inline void SetLogGroupNames(Aws::Vector<Aws::String>&& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames = std::move(value); }
67 inline StartQueryRequest& WithLogGroupNames(Aws::Vector<Aws::String>&& value) { SetLogGroupNames(std::move(value)); return *this;}
68 inline StartQueryRequest& AddLogGroupNames(const Aws::String& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames.push_back(value); return *this; }
69 inline StartQueryRequest& AddLogGroupNames(Aws::String&& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames.push_back(std::move(value)); return *this; }
70 inline StartQueryRequest& AddLogGroupNames(const char* value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames.push_back(value); return *this; }
72
74
84 inline const Aws::Vector<Aws::String>& GetLogGroupIdentifiers() const{ return m_logGroupIdentifiers; }
85 inline bool LogGroupIdentifiersHasBeenSet() const { return m_logGroupIdentifiersHasBeenSet; }
86 inline void SetLogGroupIdentifiers(const Aws::Vector<Aws::String>& value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers = value; }
87 inline void SetLogGroupIdentifiers(Aws::Vector<Aws::String>&& value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers = std::move(value); }
90 inline StartQueryRequest& AddLogGroupIdentifiers(const Aws::String& value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers.push_back(value); return *this; }
91 inline StartQueryRequest& AddLogGroupIdentifiers(Aws::String&& value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers.push_back(std::move(value)); return *this; }
92 inline StartQueryRequest& AddLogGroupIdentifiers(const char* value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers.push_back(value); return *this; }
94
96
101 inline long long GetStartTime() const{ return m_startTime; }
102 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
103 inline void SetStartTime(long long value) { m_startTimeHasBeenSet = true; m_startTime = value; }
104 inline StartQueryRequest& WithStartTime(long long value) { SetStartTime(value); return *this;}
106
108
113 inline long long GetEndTime() const{ return m_endTime; }
114 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
115 inline void SetEndTime(long long value) { m_endTimeHasBeenSet = true; m_endTime = value; }
116 inline StartQueryRequest& WithEndTime(long long value) { SetEndTime(value); return *this;}
118
120
125 inline const Aws::String& GetQueryString() const{ return m_queryString; }
126 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
127 inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
128 inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
129 inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
130 inline StartQueryRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
131 inline StartQueryRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
132 inline StartQueryRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
134
136
141 inline int GetLimit() const{ return m_limit; }
142 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
143 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
144 inline StartQueryRequest& WithLimit(int value) { SetLimit(value); return *this;}
146 private:
147
148 Aws::String m_logGroupName;
149 bool m_logGroupNameHasBeenSet = false;
150
151 Aws::Vector<Aws::String> m_logGroupNames;
152 bool m_logGroupNamesHasBeenSet = false;
153
154 Aws::Vector<Aws::String> m_logGroupIdentifiers;
155 bool m_logGroupIdentifiersHasBeenSet = false;
156
157 long long m_startTime;
158 bool m_startTimeHasBeenSet = false;
159
160 long long m_endTime;
161 bool m_endTimeHasBeenSet = false;
162
163 Aws::String m_queryString;
164 bool m_queryStringHasBeenSet = false;
165
166 int m_limit;
167 bool m_limitHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace CloudWatchLogs
172} // namespace Aws
void SetQueryString(const Aws::String &value)
void SetLogGroupNames(Aws::Vector< Aws::String > &&value)
StartQueryRequest & WithLogGroupNames(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetLogGroupIdentifiers() const
StartQueryRequest & WithQueryString(const char *value)
StartQueryRequest & WithLogGroupName(const Aws::String &value)
StartQueryRequest & WithLogGroupName(const char *value)
StartQueryRequest & WithLogGroupIdentifiers(const Aws::Vector< Aws::String > &value)
void SetLogGroupName(const Aws::String &value)
StartQueryRequest & WithLogGroupIdentifiers(Aws::Vector< Aws::String > &&value)
void SetLogGroupNames(const Aws::Vector< Aws::String > &value)
StartQueryRequest & WithQueryString(Aws::String &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
StartQueryRequest & WithEndTime(long long value)
StartQueryRequest & WithLogGroupName(Aws::String &&value)
StartQueryRequest & WithLogGroupNames(const Aws::Vector< Aws::String > &value)
void SetLogGroupIdentifiers(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetLogGroupNames() const
StartQueryRequest & AddLogGroupNames(const Aws::String &value)
void SetLogGroupIdentifiers(Aws::Vector< Aws::String > &&value)
StartQueryRequest & WithStartTime(long long value)
StartQueryRequest & AddLogGroupNames(Aws::String &&value)
StartQueryRequest & AddLogGroupIdentifiers(const char *value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartQueryRequest & AddLogGroupIdentifiers(const Aws::String &value)
StartQueryRequest & WithQueryString(const Aws::String &value)
StartQueryRequest & AddLogGroupIdentifiers(Aws::String &&value)
StartQueryRequest & AddLogGroupNames(const char *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