AWS SDK for C++  1.9.109
AWS SDK for C++
PutQueryDefinitionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CloudWatchLogs
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "PutQueryDefinition"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
45  inline const Aws::String& GetName() const{ return m_name; }
46 
54  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 
63  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 
72  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
73 
81  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
82 
90  inline PutQueryDefinitionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
91 
99  inline PutQueryDefinitionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
100 
108  inline PutQueryDefinitionRequest& WithName(const char* value) { SetName(value); return *this;}
109 
110 
120  inline const Aws::String& GetQueryDefinitionId() const{ return m_queryDefinitionId; }
121 
131  inline bool QueryDefinitionIdHasBeenSet() const { return m_queryDefinitionIdHasBeenSet; }
132 
142  inline void SetQueryDefinitionId(const Aws::String& value) { m_queryDefinitionIdHasBeenSet = true; m_queryDefinitionId = value; }
143 
153  inline void SetQueryDefinitionId(Aws::String&& value) { m_queryDefinitionIdHasBeenSet = true; m_queryDefinitionId = std::move(value); }
154 
164  inline void SetQueryDefinitionId(const char* value) { m_queryDefinitionIdHasBeenSet = true; m_queryDefinitionId.assign(value); }
165 
175  inline PutQueryDefinitionRequest& WithQueryDefinitionId(const Aws::String& value) { SetQueryDefinitionId(value); return *this;}
176 
186  inline PutQueryDefinitionRequest& WithQueryDefinitionId(Aws::String&& value) { SetQueryDefinitionId(std::move(value)); return *this;}
187 
197  inline PutQueryDefinitionRequest& WithQueryDefinitionId(const char* value) { SetQueryDefinitionId(value); return *this;}
198 
199 
205  inline const Aws::Vector<Aws::String>& GetLogGroupNames() const{ return m_logGroupNames; }
206 
212  inline bool LogGroupNamesHasBeenSet() const { return m_logGroupNamesHasBeenSet; }
213 
219  inline void SetLogGroupNames(const Aws::Vector<Aws::String>& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames = value; }
220 
226  inline void SetLogGroupNames(Aws::Vector<Aws::String>&& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames = std::move(value); }
227 
233  inline PutQueryDefinitionRequest& WithLogGroupNames(const Aws::Vector<Aws::String>& value) { SetLogGroupNames(value); return *this;}
234 
240  inline PutQueryDefinitionRequest& WithLogGroupNames(Aws::Vector<Aws::String>&& value) { SetLogGroupNames(std::move(value)); return *this;}
241 
247  inline PutQueryDefinitionRequest& AddLogGroupNames(const Aws::String& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames.push_back(value); return *this; }
248 
254  inline PutQueryDefinitionRequest& AddLogGroupNames(Aws::String&& value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames.push_back(std::move(value)); return *this; }
255 
261  inline PutQueryDefinitionRequest& AddLogGroupNames(const char* value) { m_logGroupNamesHasBeenSet = true; m_logGroupNames.push_back(value); return *this; }
262 
263 
269  inline const Aws::String& GetQueryString() const{ return m_queryString; }
270 
276  inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
277 
283  inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
284 
290  inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
291 
297  inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
298 
304  inline PutQueryDefinitionRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
305 
311  inline PutQueryDefinitionRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
312 
318  inline PutQueryDefinitionRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
319 
320  private:
321 
322  Aws::String m_name;
323  bool m_nameHasBeenSet;
324 
325  Aws::String m_queryDefinitionId;
326  bool m_queryDefinitionIdHasBeenSet;
327 
328  Aws::Vector<Aws::String> m_logGroupNames;
329  bool m_logGroupNamesHasBeenSet;
330 
331  Aws::String m_queryString;
332  bool m_queryStringHasBeenSet;
333  };
334 
335 } // namespace Model
336 } // namespace CloudWatchLogs
337 } // namespace Aws
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::WithName
PutQueryDefinitionRequest & WithName(const char *value)
Definition: PutQueryDefinitionRequest.h:108
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::SetName
void SetName(const char *value)
Definition: PutQueryDefinitionRequest.h:81
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::GetLogGroupNames
const Aws::Vector< Aws::String > & GetLogGroupNames() const
Definition: PutQueryDefinitionRequest.h:205
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::LogGroupNamesHasBeenSet
bool LogGroupNamesHasBeenSet() const
Definition: PutQueryDefinitionRequest.h:212
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::WithName
PutQueryDefinitionRequest & WithName(const Aws::String &value)
Definition: PutQueryDefinitionRequest.h:90
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::WithName
PutQueryDefinitionRequest & WithName(Aws::String &&value)
Definition: PutQueryDefinitionRequest.h:99
AWS_CLOUDWATCHLOGS_API
#define AWS_CLOUDWATCHLOGS_API
Definition: CloudWatchLogs_EXPORTS.h:28
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::WithQueryString
PutQueryDefinitionRequest & WithQueryString(Aws::String &&value)
Definition: PutQueryDefinitionRequest.h:311
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::AddLogGroupNames
PutQueryDefinitionRequest & AddLogGroupNames(Aws::String &&value)
Definition: PutQueryDefinitionRequest.h:254
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::WithQueryString
PutQueryDefinitionRequest & WithQueryString(const Aws::String &value)
Definition: PutQueryDefinitionRequest.h:304
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::QueryStringHasBeenSet
bool QueryStringHasBeenSet() const
Definition: PutQueryDefinitionRequest.h:276
CloudWatchLogs_EXPORTS.h
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::SetQueryString
void SetQueryString(const Aws::String &value)
Definition: PutQueryDefinitionRequest.h:283
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: PutQueryDefinitionRequest.h:54
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest
Definition: PutQueryDefinitionRequest.h:23
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::WithQueryDefinitionId
PutQueryDefinitionRequest & WithQueryDefinitionId(Aws::String &&value)
Definition: PutQueryDefinitionRequest.h:186
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::SetLogGroupNames
void SetLogGroupNames(const Aws::Vector< Aws::String > &value)
Definition: PutQueryDefinitionRequest.h:219
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutQueryDefinitionRequest.h:31
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::QueryDefinitionIdHasBeenSet
bool QueryDefinitionIdHasBeenSet() const
Definition: PutQueryDefinitionRequest.h:131
Aws::CloudWatchLogs::CloudWatchLogsRequest
Definition: CloudWatchLogsRequest.h:17
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::GetQueryString
const Aws::String & GetQueryString() const
Definition: PutQueryDefinitionRequest.h:269
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::WithLogGroupNames
PutQueryDefinitionRequest & WithLogGroupNames(Aws::Vector< Aws::String > &&value)
Definition: PutQueryDefinitionRequest.h:240
AWSString.h
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::SetQueryDefinitionId
void SetQueryDefinitionId(const Aws::String &value)
Definition: PutQueryDefinitionRequest.h:142
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::GetQueryDefinitionId
const Aws::String & GetQueryDefinitionId() const
Definition: PutQueryDefinitionRequest.h:120
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::SetLogGroupNames
void SetLogGroupNames(Aws::Vector< Aws::String > &&value)
Definition: PutQueryDefinitionRequest.h:226
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::WithQueryString
PutQueryDefinitionRequest & WithQueryString(const char *value)
Definition: PutQueryDefinitionRequest.h:318
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::AddLogGroupNames
PutQueryDefinitionRequest & AddLogGroupNames(const char *value)
Definition: PutQueryDefinitionRequest.h:261
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::WithQueryDefinitionId
PutQueryDefinitionRequest & WithQueryDefinitionId(const char *value)
Definition: PutQueryDefinitionRequest.h:197
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::SetName
void SetName(const Aws::String &value)
Definition: PutQueryDefinitionRequest.h:63
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::SetName
void SetName(Aws::String &&value)
Definition: PutQueryDefinitionRequest.h:72
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::SetQueryString
void SetQueryString(Aws::String &&value)
Definition: PutQueryDefinitionRequest.h:290
Aws
Definition: AccessManagementClient.h:15
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::GetName
const Aws::String & GetName() const
Definition: PutQueryDefinitionRequest.h:45
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::AddLogGroupNames
PutQueryDefinitionRequest & AddLogGroupNames(const Aws::String &value)
Definition: PutQueryDefinitionRequest.h:247
CloudWatchLogsRequest.h
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::SetQueryDefinitionId
void SetQueryDefinitionId(const char *value)
Definition: PutQueryDefinitionRequest.h:164
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::SetQueryDefinitionId
void SetQueryDefinitionId(Aws::String &&value)
Definition: PutQueryDefinitionRequest.h:153
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::WithQueryDefinitionId
PutQueryDefinitionRequest & WithQueryDefinitionId(const Aws::String &value)
Definition: PutQueryDefinitionRequest.h:175
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::WithLogGroupNames
PutQueryDefinitionRequest & WithLogGroupNames(const Aws::Vector< Aws::String > &value)
Definition: PutQueryDefinitionRequest.h:233
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::PutQueryDefinitionRequest
PutQueryDefinitionRequest()
Aws::CloudWatchLogs::Model::PutQueryDefinitionRequest::SetQueryString
void SetQueryString(const char *value)
Definition: PutQueryDefinitionRequest.h:297