AWS SDK for C++

AWS SDK for C++ Version 1.11.938

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
188 inline LogGroupClass GetLogGroupClass() const { return m_logGroupClass; }
189 inline bool LogGroupClassHasBeenSet() const { return m_logGroupClassHasBeenSet; }
190 inline void SetLogGroupClass(LogGroupClass value) {
191 m_logGroupClassHasBeenSet = true;
192 m_logGroupClass = value;
193 }
195 SetLogGroupClass(value);
196 return *this;
197 }
199
201
210 inline const Aws::Vector<Aws::String>& GetLogGroupIdentifiers() const { return m_logGroupIdentifiers; }
211 inline bool LogGroupIdentifiersHasBeenSet() const { return m_logGroupIdentifiersHasBeenSet; }
212 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
213 void SetLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
214 m_logGroupIdentifiersHasBeenSet = true;
215 m_logGroupIdentifiers = std::forward<LogGroupIdentifiersT>(value);
216 }
217 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
218 DescribeLogGroupsRequest& WithLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
219 SetLogGroupIdentifiers(std::forward<LogGroupIdentifiersT>(value));
220 return *this;
221 }
222 template <typename LogGroupIdentifiersT = Aws::String>
223 DescribeLogGroupsRequest& AddLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
224 m_logGroupIdentifiersHasBeenSet = true;
225 m_logGroupIdentifiers.emplace_back(std::forward<LogGroupIdentifiersT>(value));
226 return *this;
227 }
229 private:
230 Aws::Vector<Aws::String> m_accountIdentifiers;
231
232 Aws::String m_logGroupNamePrefix;
233
234 Aws::String m_logGroupNamePattern;
235
236 Aws::String m_nextToken;
237
238 int m_limit{0};
239
240 bool m_includeLinkedAccounts{false};
241
242 LogGroupClass m_logGroupClass{LogGroupClass::NOT_SET};
243
244 Aws::Vector<Aws::String> m_logGroupIdentifiers;
245 bool m_accountIdentifiersHasBeenSet = false;
246 bool m_logGroupNamePrefixHasBeenSet = false;
247 bool m_logGroupNamePatternHasBeenSet = false;
248 bool m_nextTokenHasBeenSet = false;
249 bool m_limitHasBeenSet = false;
250 bool m_includeLinkedAccountsHasBeenSet = false;
251 bool m_logGroupClassHasBeenSet = false;
252 bool m_logGroupIdentifiersHasBeenSet = false;
253};
254
255} // namespace Model
256} // namespace CloudWatchLogs
257} // 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