AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountIdentifiers(const Aws::Vector<Aws::String>& value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers = value; }
48 inline void SetAccountIdentifiers(Aws::Vector<Aws::String>&& value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers = std::move(value); }
51 inline DescribeLogGroupsRequest& AddAccountIdentifiers(const Aws::String& value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers.push_back(value); return *this; }
52 inline DescribeLogGroupsRequest& AddAccountIdentifiers(Aws::String&& value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers.push_back(std::move(value)); return *this; }
53 inline DescribeLogGroupsRequest& AddAccountIdentifiers(const char* value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers.push_back(value); return *this; }
55
57
62 inline const Aws::String& GetLogGroupNamePrefix() const{ return m_logGroupNamePrefix; }
63 inline bool LogGroupNamePrefixHasBeenSet() const { return m_logGroupNamePrefixHasBeenSet; }
64 inline void SetLogGroupNamePrefix(const Aws::String& value) { m_logGroupNamePrefixHasBeenSet = true; m_logGroupNamePrefix = value; }
65 inline void SetLogGroupNamePrefix(Aws::String&& value) { m_logGroupNamePrefixHasBeenSet = true; m_logGroupNamePrefix = std::move(value); }
66 inline void SetLogGroupNamePrefix(const char* value) { m_logGroupNamePrefixHasBeenSet = true; m_logGroupNamePrefix.assign(value); }
68 inline DescribeLogGroupsRequest& WithLogGroupNamePrefix(Aws::String&& value) { SetLogGroupNamePrefix(std::move(value)); return *this;}
69 inline DescribeLogGroupsRequest& WithLogGroupNamePrefix(const char* value) { SetLogGroupNamePrefix(value); return *this;}
71
73
85 inline const Aws::String& GetLogGroupNamePattern() const{ return m_logGroupNamePattern; }
86 inline bool LogGroupNamePatternHasBeenSet() const { return m_logGroupNamePatternHasBeenSet; }
87 inline void SetLogGroupNamePattern(const Aws::String& value) { m_logGroupNamePatternHasBeenSet = true; m_logGroupNamePattern = value; }
88 inline void SetLogGroupNamePattern(Aws::String&& value) { m_logGroupNamePatternHasBeenSet = true; m_logGroupNamePattern = std::move(value); }
89 inline void SetLogGroupNamePattern(const char* value) { m_logGroupNamePatternHasBeenSet = true; m_logGroupNamePattern.assign(value); }
91 inline DescribeLogGroupsRequest& WithLogGroupNamePattern(Aws::String&& value) { SetLogGroupNamePattern(std::move(value)); return *this;}
92 inline DescribeLogGroupsRequest& WithLogGroupNamePattern(const char* value) { SetLogGroupNamePattern(value); return *this;}
94
96
100 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
101 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
102 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
103 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
104 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
105 inline DescribeLogGroupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
106 inline DescribeLogGroupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
107 inline DescribeLogGroupsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
109
111
115 inline int GetLimit() const{ return m_limit; }
116 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
117 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
118 inline DescribeLogGroupsRequest& WithLimit(int value) { SetLimit(value); return *this;}
120
122
130 inline bool GetIncludeLinkedAccounts() const{ return m_includeLinkedAccounts; }
131 inline bool IncludeLinkedAccountsHasBeenSet() const { return m_includeLinkedAccountsHasBeenSet; }
132 inline void SetIncludeLinkedAccounts(bool value) { m_includeLinkedAccountsHasBeenSet = true; m_includeLinkedAccounts = value; }
135
137
146 inline const LogGroupClass& GetLogGroupClass() const{ return m_logGroupClass; }
147 inline bool LogGroupClassHasBeenSet() const { return m_logGroupClassHasBeenSet; }
148 inline void SetLogGroupClass(const LogGroupClass& value) { m_logGroupClassHasBeenSet = true; m_logGroupClass = value; }
149 inline void SetLogGroupClass(LogGroupClass&& value) { m_logGroupClassHasBeenSet = true; m_logGroupClass = std::move(value); }
150 inline DescribeLogGroupsRequest& WithLogGroupClass(const LogGroupClass& value) { SetLogGroupClass(value); return *this;}
151 inline DescribeLogGroupsRequest& WithLogGroupClass(LogGroupClass&& value) { SetLogGroupClass(std::move(value)); return *this;}
153 private:
154
155 Aws::Vector<Aws::String> m_accountIdentifiers;
156 bool m_accountIdentifiersHasBeenSet = false;
157
158 Aws::String m_logGroupNamePrefix;
159 bool m_logGroupNamePrefixHasBeenSet = false;
160
161 Aws::String m_logGroupNamePattern;
162 bool m_logGroupNamePatternHasBeenSet = false;
163
164 Aws::String m_nextToken;
165 bool m_nextTokenHasBeenSet = false;
166
167 int m_limit;
168 bool m_limitHasBeenSet = false;
169
170 bool m_includeLinkedAccounts;
171 bool m_includeLinkedAccountsHasBeenSet = false;
172
173 LogGroupClass m_logGroupClass;
174 bool m_logGroupClassHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace CloudWatchLogs
179} // namespace Aws
const Aws::Vector< Aws::String > & GetAccountIdentifiers() const
DescribeLogGroupsRequest & WithNextToken(const char *value)
DescribeLogGroupsRequest & WithLogGroupClass(LogGroupClass &&value)
DescribeLogGroupsRequest & WithLogGroupNamePrefix(const char *value)
DescribeLogGroupsRequest & WithLogGroupNamePattern(Aws::String &&value)
DescribeLogGroupsRequest & WithIncludeLinkedAccounts(bool value)
DescribeLogGroupsRequest & WithNextToken(Aws::String &&value)
DescribeLogGroupsRequest & AddAccountIdentifiers(const Aws::String &value)
DescribeLogGroupsRequest & WithLogGroupClass(const LogGroupClass &value)
virtual const char * GetServiceRequestName() const override
void SetAccountIdentifiers(Aws::Vector< Aws::String > &&value)
DescribeLogGroupsRequest & WithLogGroupNamePrefix(const Aws::String &value)
DescribeLogGroupsRequest & WithAccountIdentifiers(Aws::Vector< Aws::String > &&value)
DescribeLogGroupsRequest & AddAccountIdentifiers(const char *value)
DescribeLogGroupsRequest & WithLogGroupNamePattern(const char *value)
DescribeLogGroupsRequest & AddAccountIdentifiers(Aws::String &&value)
DescribeLogGroupsRequest & WithNextToken(const Aws::String &value)
DescribeLogGroupsRequest & WithLogGroupNamePrefix(Aws::String &&value)
DescribeLogGroupsRequest & WithAccountIdentifiers(const Aws::Vector< Aws::String > &value)
DescribeLogGroupsRequest & WithLogGroupNamePattern(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetAccountIdentifiers(const Aws::Vector< Aws::String > &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