AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeLogStreamsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10#include <aws/logs/model/OrderBy.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudWatchLogs {
16namespace Model {
17
21 public:
22 AWS_CLOUDWATCHLOGS_API DescribeLogStreamsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DescribeLogStreams"; }
29
30 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
31
32 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
40 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
41 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
42 template <typename LogGroupNameT = Aws::String>
43 void SetLogGroupName(LogGroupNameT&& value) {
44 m_logGroupNameHasBeenSet = true;
45 m_logGroupName = std::forward<LogGroupNameT>(value);
46 }
47 template <typename LogGroupNameT = Aws::String>
49 SetLogGroupName(std::forward<LogGroupNameT>(value));
50 return *this;
51 }
53
55
62 inline const Aws::String& GetLogGroupIdentifier() const { return m_logGroupIdentifier; }
63 inline bool LogGroupIdentifierHasBeenSet() const { return m_logGroupIdentifierHasBeenSet; }
64 template <typename LogGroupIdentifierT = Aws::String>
65 void SetLogGroupIdentifier(LogGroupIdentifierT&& value) {
66 m_logGroupIdentifierHasBeenSet = true;
67 m_logGroupIdentifier = std::forward<LogGroupIdentifierT>(value);
68 }
69 template <typename LogGroupIdentifierT = Aws::String>
70 DescribeLogStreamsRequest& WithLogGroupIdentifier(LogGroupIdentifierT&& value) {
71 SetLogGroupIdentifier(std::forward<LogGroupIdentifierT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetLogStreamNamePrefix() const { return m_logStreamNamePrefix; }
82 inline bool LogStreamNamePrefixHasBeenSet() const { return m_logStreamNamePrefixHasBeenSet; }
83 template <typename LogStreamNamePrefixT = Aws::String>
84 void SetLogStreamNamePrefix(LogStreamNamePrefixT&& value) {
85 m_logStreamNamePrefixHasBeenSet = true;
86 m_logStreamNamePrefix = std::forward<LogStreamNamePrefixT>(value);
87 }
88 template <typename LogStreamNamePrefixT = Aws::String>
89 DescribeLogStreamsRequest& WithLogStreamNamePrefix(LogStreamNamePrefixT&& value) {
90 SetLogStreamNamePrefix(std::forward<LogStreamNamePrefixT>(value));
91 return *this;
92 }
94
96
109 inline OrderBy GetOrderBy() const { return m_orderBy; }
110 inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
111 inline void SetOrderBy(OrderBy value) {
112 m_orderByHasBeenSet = true;
113 m_orderBy = value;
114 }
116 SetOrderBy(value);
117 return *this;
118 }
120
122
127 inline bool GetDescending() const { return m_descending; }
128 inline bool DescendingHasBeenSet() const { return m_descendingHasBeenSet; }
129 inline void SetDescending(bool value) {
130 m_descendingHasBeenSet = true;
131 m_descending = value;
132 }
134 SetDescending(value);
135 return *this;
136 }
138
140
144 inline const Aws::String& GetNextToken() const { return m_nextToken; }
145 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
146 template <typename NextTokenT = Aws::String>
147 void SetNextToken(NextTokenT&& value) {
148 m_nextTokenHasBeenSet = true;
149 m_nextToken = std::forward<NextTokenT>(value);
150 }
151 template <typename NextTokenT = Aws::String>
153 SetNextToken(std::forward<NextTokenT>(value));
154 return *this;
155 }
157
159
163 inline int GetLimit() const { return m_limit; }
164 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
165 inline void SetLimit(int value) {
166 m_limitHasBeenSet = true;
167 m_limit = value;
168 }
170 SetLimit(value);
171 return *this;
172 }
174 private:
175 Aws::String m_logGroupName;
176
177 Aws::String m_logGroupIdentifier;
178
179 Aws::String m_logStreamNamePrefix;
180
181 OrderBy m_orderBy{OrderBy::NOT_SET};
182
183 bool m_descending{false};
184
185 Aws::String m_nextToken;
186
187 int m_limit{0};
188 bool m_logGroupNameHasBeenSet = false;
189 bool m_logGroupIdentifierHasBeenSet = false;
190 bool m_logStreamNamePrefixHasBeenSet = false;
191 bool m_orderByHasBeenSet = false;
192 bool m_descendingHasBeenSet = false;
193 bool m_nextTokenHasBeenSet = false;
194 bool m_limitHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace CloudWatchLogs
199} // namespace Aws
DescribeLogStreamsRequest & WithLogGroupName(LogGroupNameT &&value)
DescribeLogStreamsRequest & WithNextToken(NextTokenT &&value)
DescribeLogStreamsRequest & WithLogGroupIdentifier(LogGroupIdentifierT &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeLogStreamsRequest & WithLogStreamNamePrefix(LogStreamNamePrefixT &&value)
AWS_CLOUDWATCHLOGS_API DescribeLogStreamsRequest()=default
DescribeLogStreamsRequest & WithOrderBy(OrderBy value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String