AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeQueryDefinitionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10#include <aws/logs/model/QueryLanguage.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudWatchLogs {
16namespace Model {
17
21 public:
22 AWS_CLOUDWATCHLOGS_API DescribeQueryDefinitionsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DescribeQueryDefinitions"; }
29
30 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
31
32 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
41 inline QueryLanguage GetQueryLanguage() const { return m_queryLanguage; }
42 inline bool QueryLanguageHasBeenSet() const { return m_queryLanguageHasBeenSet; }
43 inline void SetQueryLanguage(QueryLanguage value) {
44 m_queryLanguageHasBeenSet = true;
45 m_queryLanguage = value;
46 }
48 SetQueryLanguage(value);
49 return *this;
50 }
52
54
58 inline const Aws::String& GetQueryDefinitionNamePrefix() const { return m_queryDefinitionNamePrefix; }
59 inline bool QueryDefinitionNamePrefixHasBeenSet() const { return m_queryDefinitionNamePrefixHasBeenSet; }
60 template <typename QueryDefinitionNamePrefixT = Aws::String>
61 void SetQueryDefinitionNamePrefix(QueryDefinitionNamePrefixT&& value) {
62 m_queryDefinitionNamePrefixHasBeenSet = true;
63 m_queryDefinitionNamePrefix = std::forward<QueryDefinitionNamePrefixT>(value);
64 }
65 template <typename QueryDefinitionNamePrefixT = Aws::String>
67 SetQueryDefinitionNamePrefix(std::forward<QueryDefinitionNamePrefixT>(value));
68 return *this;
69 }
71
73
76 inline int GetMaxResults() const { return m_maxResults; }
77 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
78 inline void SetMaxResults(int value) {
79 m_maxResultsHasBeenSet = true;
80 m_maxResults = value;
81 }
83 SetMaxResults(value);
84 return *this;
85 }
87
89
90 inline const Aws::String& GetNextToken() const { return m_nextToken; }
91 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
92 template <typename NextTokenT = Aws::String>
93 void SetNextToken(NextTokenT&& value) {
94 m_nextTokenHasBeenSet = true;
95 m_nextToken = std::forward<NextTokenT>(value);
96 }
97 template <typename NextTokenT = Aws::String>
99 SetNextToken(std::forward<NextTokenT>(value));
100 return *this;
101 }
103 private:
104 QueryLanguage m_queryLanguage{QueryLanguage::NOT_SET};
105
106 Aws::String m_queryDefinitionNamePrefix;
107
108 int m_maxResults{0};
109
110 Aws::String m_nextToken;
111 bool m_queryLanguageHasBeenSet = false;
112 bool m_queryDefinitionNamePrefixHasBeenSet = false;
113 bool m_maxResultsHasBeenSet = false;
114 bool m_nextTokenHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace CloudWatchLogs
119} // namespace Aws
DescribeQueryDefinitionsRequest & WithQueryDefinitionNamePrefix(QueryDefinitionNamePrefixT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeQueryDefinitionsRequest & WithNextToken(NextTokenT &&value)
AWS_CLOUDWATCHLOGS_API DescribeQueryDefinitionsRequest()=default
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
DescribeQueryDefinitionsRequest & WithQueryLanguage(QueryLanguage value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String