AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListLogGroupsRequest.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/AWSString.h>
10#include <aws/logs/model/LogGroupClass.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudWatchLogs
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDWATCHLOGS_API ListLogGroupsRequest() = 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 "ListLogGroups"; }
33
34 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
35
36 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
54 inline const Aws::String& GetLogGroupNamePattern() const { return m_logGroupNamePattern; }
55 inline bool LogGroupNamePatternHasBeenSet() const { return m_logGroupNamePatternHasBeenSet; }
56 template<typename LogGroupNamePatternT = Aws::String>
57 void SetLogGroupNamePattern(LogGroupNamePatternT&& value) { m_logGroupNamePatternHasBeenSet = true; m_logGroupNamePattern = std::forward<LogGroupNamePatternT>(value); }
58 template<typename LogGroupNamePatternT = Aws::String>
59 ListLogGroupsRequest& WithLogGroupNamePattern(LogGroupNamePatternT&& value) { SetLogGroupNamePattern(std::forward<LogGroupNamePatternT>(value)); return *this;}
61
63
68 inline LogGroupClass GetLogGroupClass() const { return m_logGroupClass; }
69 inline bool LogGroupClassHasBeenSet() const { return m_logGroupClassHasBeenSet; }
70 inline void SetLogGroupClass(LogGroupClass value) { m_logGroupClassHasBeenSet = true; m_logGroupClass = value; }
73
75
84 inline bool GetIncludeLinkedAccounts() const { return m_includeLinkedAccounts; }
85 inline bool IncludeLinkedAccountsHasBeenSet() const { return m_includeLinkedAccountsHasBeenSet; }
86 inline void SetIncludeLinkedAccounts(bool value) { m_includeLinkedAccountsHasBeenSet = true; m_includeLinkedAccounts = value; }
87 inline ListLogGroupsRequest& WithIncludeLinkedAccounts(bool value) { SetIncludeLinkedAccounts(value); return *this;}
89
91
96 inline const Aws::Vector<Aws::String>& GetAccountIdentifiers() const { return m_accountIdentifiers; }
97 inline bool AccountIdentifiersHasBeenSet() const { return m_accountIdentifiersHasBeenSet; }
98 template<typename AccountIdentifiersT = Aws::Vector<Aws::String>>
99 void SetAccountIdentifiers(AccountIdentifiersT&& value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers = std::forward<AccountIdentifiersT>(value); }
100 template<typename AccountIdentifiersT = Aws::Vector<Aws::String>>
101 ListLogGroupsRequest& WithAccountIdentifiers(AccountIdentifiersT&& value) { SetAccountIdentifiers(std::forward<AccountIdentifiersT>(value)); return *this;}
102 template<typename AccountIdentifiersT = Aws::String>
103 ListLogGroupsRequest& AddAccountIdentifiers(AccountIdentifiersT&& value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers.emplace_back(std::forward<AccountIdentifiersT>(value)); return *this; }
105
107
108 inline const Aws::String& GetNextToken() const { return m_nextToken; }
109 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
110 template<typename NextTokenT = Aws::String>
111 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
112 template<typename NextTokenT = Aws::String>
113 ListLogGroupsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
115
117
121 inline int GetLimit() const { return m_limit; }
122 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
123 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
124 inline ListLogGroupsRequest& WithLimit(int value) { SetLimit(value); return *this;}
126 private:
127
128 Aws::String m_logGroupNamePattern;
129 bool m_logGroupNamePatternHasBeenSet = false;
130
131 LogGroupClass m_logGroupClass{LogGroupClass::NOT_SET};
132 bool m_logGroupClassHasBeenSet = false;
133
134 bool m_includeLinkedAccounts{false};
135 bool m_includeLinkedAccountsHasBeenSet = false;
136
137 Aws::Vector<Aws::String> m_accountIdentifiers;
138 bool m_accountIdentifiersHasBeenSet = false;
139
140 Aws::String m_nextToken;
141 bool m_nextTokenHasBeenSet = false;
142
143 int m_limit{0};
144 bool m_limitHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace CloudWatchLogs
149} // namespace Aws
ListLogGroupsRequest & WithAccountIdentifiers(AccountIdentifiersT &&value)
const Aws::Vector< Aws::String > & GetAccountIdentifiers() const
ListLogGroupsRequest & WithNextToken(NextTokenT &&value)
ListLogGroupsRequest & WithLogGroupClass(LogGroupClass value)
virtual const char * GetServiceRequestName() const override
ListLogGroupsRequest & AddAccountIdentifiers(AccountIdentifiersT &&value)
void SetLogGroupNamePattern(LogGroupNamePatternT &&value)
AWS_CLOUDWATCHLOGS_API ListLogGroupsRequest()=default
ListLogGroupsRequest & WithLogGroupNamePattern(LogGroupNamePatternT &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetAccountIdentifiers(AccountIdentifiersT &&value)
ListLogGroupsRequest & WithIncludeLinkedAccounts(bool 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