AWS SDK for C++  1.9.109
AWS SDK for C++
DescribeQueryDefinitionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CloudWatchLogs
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "DescribeQueryDefinitions"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetQueryDefinitionNamePrefix() const{ return m_queryDefinitionNamePrefix; }
42 
47  inline bool QueryDefinitionNamePrefixHasBeenSet() const { return m_queryDefinitionNamePrefixHasBeenSet; }
48 
53  inline void SetQueryDefinitionNamePrefix(const Aws::String& value) { m_queryDefinitionNamePrefixHasBeenSet = true; m_queryDefinitionNamePrefix = value; }
54 
59  inline void SetQueryDefinitionNamePrefix(Aws::String&& value) { m_queryDefinitionNamePrefixHasBeenSet = true; m_queryDefinitionNamePrefix = std::move(value); }
60 
65  inline void SetQueryDefinitionNamePrefix(const char* value) { m_queryDefinitionNamePrefixHasBeenSet = true; m_queryDefinitionNamePrefix.assign(value); }
66 
71  inline DescribeQueryDefinitionsRequest& WithQueryDefinitionNamePrefix(const Aws::String& value) { SetQueryDefinitionNamePrefix(value); return *this;}
72 
77  inline DescribeQueryDefinitionsRequest& WithQueryDefinitionNamePrefix(Aws::String&& value) { SetQueryDefinitionNamePrefix(std::move(value)); return *this;}
78 
83  inline DescribeQueryDefinitionsRequest& WithQueryDefinitionNamePrefix(const char* value) { SetQueryDefinitionNamePrefix(value); return *this;}
84 
85 
89  inline int GetMaxResults() const{ return m_maxResults; }
90 
94  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
95 
99  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
100 
104  inline DescribeQueryDefinitionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
105 
106 
107 
108  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
109 
110 
111  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
112 
113 
114  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
115 
116 
117  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
118 
119 
120  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
121 
122 
123  inline DescribeQueryDefinitionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
124 
125 
126  inline DescribeQueryDefinitionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
127 
128 
129  inline DescribeQueryDefinitionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
130 
131  private:
132 
133  Aws::String m_queryDefinitionNamePrefix;
134  bool m_queryDefinitionNamePrefixHasBeenSet;
135 
136  int m_maxResults;
137  bool m_maxResultsHasBeenSet;
138 
139  Aws::String m_nextToken;
140  bool m_nextTokenHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace CloudWatchLogs
145 } // namespace Aws
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeQueryDefinitionsRequest.h:30
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::SetQueryDefinitionNamePrefix
void SetQueryDefinitionNamePrefix(const char *value)
Definition: DescribeQueryDefinitionsRequest.h:65
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::SetQueryDefinitionNamePrefix
void SetQueryDefinitionNamePrefix(const Aws::String &value)
Definition: DescribeQueryDefinitionsRequest.h:53
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::WithNextToken
DescribeQueryDefinitionsRequest & WithNextToken(const char *value)
Definition: DescribeQueryDefinitionsRequest.h:129
AWS_CLOUDWATCHLOGS_API
#define AWS_CLOUDWATCHLOGS_API
Definition: CloudWatchLogs_EXPORTS.h:28
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::WithNextToken
DescribeQueryDefinitionsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeQueryDefinitionsRequest.h:126
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeQueryDefinitionsRequest.h:108
CloudWatchLogs_EXPORTS.h
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeQueryDefinitionsRequest.h:89
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::WithNextToken
DescribeQueryDefinitionsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeQueryDefinitionsRequest.h:123
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeQueryDefinitionsRequest.h:111
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::WithQueryDefinitionNamePrefix
DescribeQueryDefinitionsRequest & WithQueryDefinitionNamePrefix(Aws::String &&value)
Definition: DescribeQueryDefinitionsRequest.h:77
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::QueryDefinitionNamePrefixHasBeenSet
bool QueryDefinitionNamePrefixHasBeenSet() const
Definition: DescribeQueryDefinitionsRequest.h:47
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeQueryDefinitionsRequest.h:99
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeQueryDefinitionsRequest.h:94
Aws::CloudWatchLogs::CloudWatchLogsRequest
Definition: CloudWatchLogsRequest.h:17
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::GetQueryDefinitionNamePrefix
const Aws::String & GetQueryDefinitionNamePrefix() const
Definition: DescribeQueryDefinitionsRequest.h:41
AWSString.h
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeQueryDefinitionsRequest.h:117
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::WithQueryDefinitionNamePrefix
DescribeQueryDefinitionsRequest & WithQueryDefinitionNamePrefix(const Aws::String &value)
Definition: DescribeQueryDefinitionsRequest.h:71
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::WithQueryDefinitionNamePrefix
DescribeQueryDefinitionsRequest & WithQueryDefinitionNamePrefix(const char *value)
Definition: DescribeQueryDefinitionsRequest.h:83
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest
Definition: DescribeQueryDefinitionsRequest.h:22
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeQueryDefinitionsRequest.h:120
Aws
Definition: AccessManagementClient.h:15
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::DescribeQueryDefinitionsRequest
DescribeQueryDefinitionsRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::SetQueryDefinitionNamePrefix
void SetQueryDefinitionNamePrefix(Aws::String &&value)
Definition: DescribeQueryDefinitionsRequest.h:59
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::WithMaxResults
DescribeQueryDefinitionsRequest & WithMaxResults(int value)
Definition: DescribeQueryDefinitionsRequest.h:104
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeQueryDefinitionsRequest.h:114
CloudWatchLogsRequest.h
Aws::CloudWatchLogs::Model::DescribeQueryDefinitionsRequest::SerializePayload
Aws::String SerializePayload() const override