AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeLogGroupsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/logs/CloudWatchLogsRequest.h>
10#include <aws/logs/CloudWatchLogs_EXPORTS.h>
11#include <aws/logs/model/LogGroupClass.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CloudWatchLogs {
17namespace Model {
18
22 public:
23 AWS_CLOUDWATCHLOGS_API DescribeLogGroupsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeLogGroups"; }
30
31 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
32
33 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
41 inline const Aws::Vector<Aws::String>& GetAccountIdentifiers() const { return m_accountIdentifiers; }
42 inline bool AccountIdentifiersHasBeenSet() const { return m_accountIdentifiersHasBeenSet; }
43 template <typename AccountIdentifiersT = Aws::Vector<Aws::String>>
44 void SetAccountIdentifiers(AccountIdentifiersT&& value) {
45 m_accountIdentifiersHasBeenSet = true;
46 m_accountIdentifiers = std::forward<AccountIdentifiersT>(value);
47 }
48 template <typename AccountIdentifiersT = Aws::Vector<Aws::String>>
49 DescribeLogGroupsRequest& WithAccountIdentifiers(AccountIdentifiersT&& value) {
50 SetAccountIdentifiers(std::forward<AccountIdentifiersT>(value));
51 return *this;
52 }
53 template <typename AccountIdentifiersT = Aws::String>
54 DescribeLogGroupsRequest& AddAccountIdentifiers(AccountIdentifiersT&& value) {
55 m_accountIdentifiersHasBeenSet = true;
56 m_accountIdentifiers.emplace_back(std::forward<AccountIdentifiersT>(value));
57 return *this;
58 }
60
62
67 inline const Aws::String& GetLogGroupNamePrefix() const { return m_logGroupNamePrefix; }
68 inline bool LogGroupNamePrefixHasBeenSet() const { return m_logGroupNamePrefixHasBeenSet; }
69 template <typename LogGroupNamePrefixT = Aws::String>
70 void SetLogGroupNamePrefix(LogGroupNamePrefixT&& value) {
71 m_logGroupNamePrefixHasBeenSet = true;
72 m_logGroupNamePrefix = std::forward<LogGroupNamePrefixT>(value);
73 }
74 template <typename LogGroupNamePrefixT = Aws::String>
75 DescribeLogGroupsRequest& WithLogGroupNamePrefix(LogGroupNamePrefixT&& value) {
76 SetLogGroupNamePrefix(std::forward<LogGroupNamePrefixT>(value));
77 return *this;
78 }
80
82
95 inline const Aws::String& GetLogGroupNamePattern() const { return m_logGroupNamePattern; }
96 inline bool LogGroupNamePatternHasBeenSet() const { return m_logGroupNamePatternHasBeenSet; }
97 template <typename LogGroupNamePatternT = Aws::String>
98 void SetLogGroupNamePattern(LogGroupNamePatternT&& value) {
99 m_logGroupNamePatternHasBeenSet = true;
100 m_logGroupNamePattern = std::forward<LogGroupNamePatternT>(value);
101 }
102 template <typename LogGroupNamePatternT = Aws::String>
103 DescribeLogGroupsRequest& WithLogGroupNamePattern(LogGroupNamePatternT&& value) {
104 SetLogGroupNamePattern(std::forward<LogGroupNamePatternT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetNextToken() const { return m_nextToken; }
115 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
116 template <typename NextTokenT = Aws::String>
117 void SetNextToken(NextTokenT&& value) {
118 m_nextTokenHasBeenSet = true;
119 m_nextToken = std::forward<NextTokenT>(value);
120 }
121 template <typename NextTokenT = Aws::String>
123 SetNextToken(std::forward<NextTokenT>(value));
124 return *this;
125 }
127
129
133 inline int GetLimit() const { return m_limit; }
134 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
135 inline void SetLimit(int value) {
136 m_limitHasBeenSet = true;
137 m_limit = value;
138 }
140 SetLimit(value);
141 return *this;
142 }
144
146
155 inline bool GetIncludeLinkedAccounts() const { return m_includeLinkedAccounts; }
156 inline bool IncludeLinkedAccountsHasBeenSet() const { return m_includeLinkedAccountsHasBeenSet; }
157 inline void SetIncludeLinkedAccounts(bool value) {
158 m_includeLinkedAccountsHasBeenSet = true;
159 m_includeLinkedAccounts = value;
160 }
163 return *this;
164 }
166
168
184 inline LogGroupClass GetLogGroupClass() const { return m_logGroupClass; }
185 inline bool LogGroupClassHasBeenSet() const { return m_logGroupClassHasBeenSet; }
186 inline void SetLogGroupClass(LogGroupClass value) {
187 m_logGroupClassHasBeenSet = true;
188 m_logGroupClass = value;
189 }
191 SetLogGroupClass(value);
192 return *this;
193 }
195
197
206 inline const Aws::Vector<Aws::String>& GetLogGroupIdentifiers() const { return m_logGroupIdentifiers; }
207 inline bool LogGroupIdentifiersHasBeenSet() const { return m_logGroupIdentifiersHasBeenSet; }
208 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
209 void SetLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
210 m_logGroupIdentifiersHasBeenSet = true;
211 m_logGroupIdentifiers = std::forward<LogGroupIdentifiersT>(value);
212 }
213 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
214 DescribeLogGroupsRequest& WithLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
215 SetLogGroupIdentifiers(std::forward<LogGroupIdentifiersT>(value));
216 return *this;
217 }
218 template <typename LogGroupIdentifiersT = Aws::String>
219 DescribeLogGroupsRequest& AddLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
220 m_logGroupIdentifiersHasBeenSet = true;
221 m_logGroupIdentifiers.emplace_back(std::forward<LogGroupIdentifiersT>(value));
222 return *this;
223 }
225 private:
226 Aws::Vector<Aws::String> m_accountIdentifiers;
227
228 Aws::String m_logGroupNamePrefix;
229
230 Aws::String m_logGroupNamePattern;
231
232 Aws::String m_nextToken;
233
234 int m_limit{0};
235
236 bool m_includeLinkedAccounts{false};
237
238 LogGroupClass m_logGroupClass{LogGroupClass::NOT_SET};
239
240 Aws::Vector<Aws::String> m_logGroupIdentifiers;
241 bool m_accountIdentifiersHasBeenSet = false;
242 bool m_logGroupNamePrefixHasBeenSet = false;
243 bool m_logGroupNamePatternHasBeenSet = false;
244 bool m_nextTokenHasBeenSet = false;
245 bool m_limitHasBeenSet = false;
246 bool m_includeLinkedAccountsHasBeenSet = false;
247 bool m_logGroupClassHasBeenSet = false;
248 bool m_logGroupIdentifiersHasBeenSet = false;
249};
250
251} // namespace Model
252} // namespace CloudWatchLogs
253} // namespace Aws
DescribeLogGroupsRequest & WithAccountIdentifiers(AccountIdentifiersT &&value)
const Aws::Vector< Aws::String > & GetAccountIdentifiers() const
DescribeLogGroupsRequest & WithLogGroupIdentifiers(LogGroupIdentifiersT &&value)
DescribeLogGroupsRequest & WithIncludeLinkedAccounts(bool value)
DescribeLogGroupsRequest & WithLogGroupNamePrefix(LogGroupNamePrefixT &&value)
const Aws::Vector< Aws::String > & GetLogGroupIdentifiers() const
virtual const char * GetServiceRequestName() const override
AWS_CLOUDWATCHLOGS_API DescribeLogGroupsRequest()=default
DescribeLogGroupsRequest & WithLogGroupClass(LogGroupClass value)
DescribeLogGroupsRequest & AddAccountIdentifiers(AccountIdentifiersT &&value)
DescribeLogGroupsRequest & WithNextToken(NextTokenT &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
DescribeLogGroupsRequest & WithLogGroupNamePattern(LogGroupNamePatternT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeLogGroupsRequest & AddLogGroupIdentifiers(LogGroupIdentifiersT &&value)
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