AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeQueryDefinitionsRequest.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 <utility>
12
13namespace Aws
14{
15namespace CloudWatchLogs
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDWATCHLOGS_API DescribeQueryDefinitionsRequest() = default;
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 "DescribeQueryDefinitions"; }
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 QueryLanguage GetQueryLanguage() const { return m_queryLanguage; }
46 inline bool QueryLanguageHasBeenSet() const { return m_queryLanguageHasBeenSet; }
47 inline void SetQueryLanguage(QueryLanguage value) { m_queryLanguageHasBeenSet = true; m_queryLanguage = value; }
50
52
56 inline const Aws::String& GetQueryDefinitionNamePrefix() const { return m_queryDefinitionNamePrefix; }
57 inline bool QueryDefinitionNamePrefixHasBeenSet() const { return m_queryDefinitionNamePrefixHasBeenSet; }
58 template<typename QueryDefinitionNamePrefixT = Aws::String>
59 void SetQueryDefinitionNamePrefix(QueryDefinitionNamePrefixT&& value) { m_queryDefinitionNamePrefixHasBeenSet = true; m_queryDefinitionNamePrefix = std::forward<QueryDefinitionNamePrefixT>(value); }
60 template<typename QueryDefinitionNamePrefixT = Aws::String>
61 DescribeQueryDefinitionsRequest& WithQueryDefinitionNamePrefix(QueryDefinitionNamePrefixT&& value) { SetQueryDefinitionNamePrefix(std::forward<QueryDefinitionNamePrefixT>(value)); return *this;}
63
65
68 inline int GetMaxResults() const { return m_maxResults; }
69 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
70 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
71 inline DescribeQueryDefinitionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
73
75
76 inline const Aws::String& GetNextToken() const { return m_nextToken; }
77 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
78 template<typename NextTokenT = Aws::String>
79 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
80 template<typename NextTokenT = Aws::String>
81 DescribeQueryDefinitionsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
83 private:
84
86 bool m_queryLanguageHasBeenSet = false;
87
88 Aws::String m_queryDefinitionNamePrefix;
89 bool m_queryDefinitionNamePrefixHasBeenSet = false;
90
91 int m_maxResults{0};
92 bool m_maxResultsHasBeenSet = false;
93
94 Aws::String m_nextToken;
95 bool m_nextTokenHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace CloudWatchLogs
100} // 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