AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DescribeLogGroupsRequest.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/logs/model/LogGroupClass.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudWatchLogs
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDWATCHLOGS_API DescribeLogGroupsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeLogGroups"; }
33
34 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
35
36 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
45 inline const Aws::Vector<Aws::String>& GetAccountIdentifiers() const { return m_accountIdentifiers; }
46 inline bool AccountIdentifiersHasBeenSet() const { return m_accountIdentifiersHasBeenSet; }
47 template<typename AccountIdentifiersT = Aws::Vector<Aws::String>>
48 void SetAccountIdentifiers(AccountIdentifiersT&& value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers = std::forward<AccountIdentifiersT>(value); }
49 template<typename AccountIdentifiersT = Aws::Vector<Aws::String>>
50 DescribeLogGroupsRequest& WithAccountIdentifiers(AccountIdentifiersT&& value) { SetAccountIdentifiers(std::forward<AccountIdentifiersT>(value)); return *this;}
51 template<typename AccountIdentifiersT = Aws::String>
52 DescribeLogGroupsRequest& AddAccountIdentifiers(AccountIdentifiersT&& value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers.emplace_back(std::forward<AccountIdentifiersT>(value)); return *this; }
54
56
61 inline const Aws::String& GetLogGroupNamePrefix() const { return m_logGroupNamePrefix; }
62 inline bool LogGroupNamePrefixHasBeenSet() const { return m_logGroupNamePrefixHasBeenSet; }
63 template<typename LogGroupNamePrefixT = Aws::String>
64 void SetLogGroupNamePrefix(LogGroupNamePrefixT&& value) { m_logGroupNamePrefixHasBeenSet = true; m_logGroupNamePrefix = std::forward<LogGroupNamePrefixT>(value); }
65 template<typename LogGroupNamePrefixT = Aws::String>
66 DescribeLogGroupsRequest& WithLogGroupNamePrefix(LogGroupNamePrefixT&& value) { SetLogGroupNamePrefix(std::forward<LogGroupNamePrefixT>(value)); return *this;}
68
70
83 inline const Aws::String& GetLogGroupNamePattern() const { return m_logGroupNamePattern; }
84 inline bool LogGroupNamePatternHasBeenSet() const { return m_logGroupNamePatternHasBeenSet; }
85 template<typename LogGroupNamePatternT = Aws::String>
86 void SetLogGroupNamePattern(LogGroupNamePatternT&& value) { m_logGroupNamePatternHasBeenSet = true; m_logGroupNamePattern = std::forward<LogGroupNamePatternT>(value); }
87 template<typename LogGroupNamePatternT = Aws::String>
88 DescribeLogGroupsRequest& WithLogGroupNamePattern(LogGroupNamePatternT&& value) { SetLogGroupNamePattern(std::forward<LogGroupNamePatternT>(value)); return *this;}
90
92
96 inline const Aws::String& GetNextToken() const { return m_nextToken; }
97 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
98 template<typename NextTokenT = Aws::String>
99 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
100 template<typename NextTokenT = Aws::String>
101 DescribeLogGroupsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
103
105
109 inline int GetLimit() const { return m_limit; }
110 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
111 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
112 inline DescribeLogGroupsRequest& WithLimit(int value) { SetLimit(value); return *this;}
114
116
125 inline bool GetIncludeLinkedAccounts() const { return m_includeLinkedAccounts; }
126 inline bool IncludeLinkedAccountsHasBeenSet() const { return m_includeLinkedAccountsHasBeenSet; }
127 inline void SetIncludeLinkedAccounts(bool value) { m_includeLinkedAccountsHasBeenSet = true; m_includeLinkedAccounts = value; }
130
132
148 inline LogGroupClass GetLogGroupClass() const { return m_logGroupClass; }
149 inline bool LogGroupClassHasBeenSet() const { return m_logGroupClassHasBeenSet; }
150 inline void SetLogGroupClass(LogGroupClass value) { m_logGroupClassHasBeenSet = true; m_logGroupClass = value; }
153
155
164 inline const Aws::Vector<Aws::String>& GetLogGroupIdentifiers() const { return m_logGroupIdentifiers; }
165 inline bool LogGroupIdentifiersHasBeenSet() const { return m_logGroupIdentifiersHasBeenSet; }
166 template<typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
167 void SetLogGroupIdentifiers(LogGroupIdentifiersT&& value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers = std::forward<LogGroupIdentifiersT>(value); }
168 template<typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
169 DescribeLogGroupsRequest& WithLogGroupIdentifiers(LogGroupIdentifiersT&& value) { SetLogGroupIdentifiers(std::forward<LogGroupIdentifiersT>(value)); return *this;}
170 template<typename LogGroupIdentifiersT = Aws::String>
171 DescribeLogGroupsRequest& AddLogGroupIdentifiers(LogGroupIdentifiersT&& value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers.emplace_back(std::forward<LogGroupIdentifiersT>(value)); return *this; }
173 private:
174
175 Aws::Vector<Aws::String> m_accountIdentifiers;
176 bool m_accountIdentifiersHasBeenSet = false;
177
178 Aws::String m_logGroupNamePrefix;
179 bool m_logGroupNamePrefixHasBeenSet = false;
180
181 Aws::String m_logGroupNamePattern;
182 bool m_logGroupNamePatternHasBeenSet = false;
183
184 Aws::String m_nextToken;
185 bool m_nextTokenHasBeenSet = false;
186
187 int m_limit{0};
188 bool m_limitHasBeenSet = false;
189
190 bool m_includeLinkedAccounts{false};
191 bool m_includeLinkedAccountsHasBeenSet = false;
192
193 LogGroupClass m_logGroupClass{LogGroupClass::NOT_SET};
194 bool m_logGroupClassHasBeenSet = false;
195
196 Aws::Vector<Aws::String> m_logGroupIdentifiers;
197 bool m_logGroupIdentifiersHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace CloudWatchLogs
202} // 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