AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeLogStreamsRequest.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/OrderBy.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudWatchLogs
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDWATCHLOGS_API DescribeLogStreamsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "DescribeLogStreams"; }
32
33 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
34
35 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
44 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
45 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
46 template<typename LogGroupNameT = Aws::String>
47 void SetLogGroupName(LogGroupNameT&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::forward<LogGroupNameT>(value); }
48 template<typename LogGroupNameT = Aws::String>
49 DescribeLogStreamsRequest& WithLogGroupName(LogGroupNameT&& value) { SetLogGroupName(std::forward<LogGroupNameT>(value)); return *this;}
51
53
60 inline const Aws::String& GetLogGroupIdentifier() const { return m_logGroupIdentifier; }
61 inline bool LogGroupIdentifierHasBeenSet() const { return m_logGroupIdentifierHasBeenSet; }
62 template<typename LogGroupIdentifierT = Aws::String>
63 void SetLogGroupIdentifier(LogGroupIdentifierT&& value) { m_logGroupIdentifierHasBeenSet = true; m_logGroupIdentifier = std::forward<LogGroupIdentifierT>(value); }
64 template<typename LogGroupIdentifierT = Aws::String>
65 DescribeLogStreamsRequest& WithLogGroupIdentifier(LogGroupIdentifierT&& value) { SetLogGroupIdentifier(std::forward<LogGroupIdentifierT>(value)); return *this;}
67
69
73 inline const Aws::String& GetLogStreamNamePrefix() const { return m_logStreamNamePrefix; }
74 inline bool LogStreamNamePrefixHasBeenSet() const { return m_logStreamNamePrefixHasBeenSet; }
75 template<typename LogStreamNamePrefixT = Aws::String>
76 void SetLogStreamNamePrefix(LogStreamNamePrefixT&& value) { m_logStreamNamePrefixHasBeenSet = true; m_logStreamNamePrefix = std::forward<LogStreamNamePrefixT>(value); }
77 template<typename LogStreamNamePrefixT = Aws::String>
78 DescribeLogStreamsRequest& WithLogStreamNamePrefix(LogStreamNamePrefixT&& value) { SetLogStreamNamePrefix(std::forward<LogStreamNamePrefixT>(value)); return *this;}
80
82
95 inline OrderBy GetOrderBy() const { return m_orderBy; }
96 inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
97 inline void SetOrderBy(OrderBy value) { m_orderByHasBeenSet = true; m_orderBy = value; }
98 inline DescribeLogStreamsRequest& WithOrderBy(OrderBy value) { SetOrderBy(value); return *this;}
100
102
107 inline bool GetDescending() const { return m_descending; }
108 inline bool DescendingHasBeenSet() const { return m_descendingHasBeenSet; }
109 inline void SetDescending(bool value) { m_descendingHasBeenSet = true; m_descending = value; }
110 inline DescribeLogStreamsRequest& WithDescending(bool value) { SetDescending(value); return *this;}
112
114
118 inline const Aws::String& GetNextToken() const { return m_nextToken; }
119 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
120 template<typename NextTokenT = Aws::String>
121 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
122 template<typename NextTokenT = Aws::String>
123 DescribeLogStreamsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
125
127
131 inline int GetLimit() const { return m_limit; }
132 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
133 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
134 inline DescribeLogStreamsRequest& WithLimit(int value) { SetLimit(value); return *this;}
136 private:
137
138 Aws::String m_logGroupName;
139 bool m_logGroupNameHasBeenSet = false;
140
141 Aws::String m_logGroupIdentifier;
142 bool m_logGroupIdentifierHasBeenSet = false;
143
144 Aws::String m_logStreamNamePrefix;
145 bool m_logStreamNamePrefixHasBeenSet = false;
146
147 OrderBy m_orderBy{OrderBy::NOT_SET};
148 bool m_orderByHasBeenSet = false;
149
150 bool m_descending{false};
151 bool m_descendingHasBeenSet = false;
152
153 Aws::String m_nextToken;
154 bool m_nextTokenHasBeenSet = false;
155
156 int m_limit{0};
157 bool m_limitHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace CloudWatchLogs
162} // 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