AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
47 inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
48 inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
49 inline DescribeLogStreamsRequest& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
50 inline DescribeLogStreamsRequest& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
51 inline DescribeLogStreamsRequest& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
53
55
62 inline const Aws::String& GetLogGroupIdentifier() const{ return m_logGroupIdentifier; }
63 inline bool LogGroupIdentifierHasBeenSet() const { return m_logGroupIdentifierHasBeenSet; }
64 inline void SetLogGroupIdentifier(const Aws::String& value) { m_logGroupIdentifierHasBeenSet = true; m_logGroupIdentifier = value; }
65 inline void SetLogGroupIdentifier(Aws::String&& value) { m_logGroupIdentifierHasBeenSet = true; m_logGroupIdentifier = std::move(value); }
66 inline void SetLogGroupIdentifier(const char* value) { m_logGroupIdentifierHasBeenSet = true; m_logGroupIdentifier.assign(value); }
68 inline DescribeLogStreamsRequest& WithLogGroupIdentifier(Aws::String&& value) { SetLogGroupIdentifier(std::move(value)); return *this;}
69 inline DescribeLogStreamsRequest& WithLogGroupIdentifier(const char* value) { SetLogGroupIdentifier(value); return *this;}
71
73
77 inline const Aws::String& GetLogStreamNamePrefix() const{ return m_logStreamNamePrefix; }
78 inline bool LogStreamNamePrefixHasBeenSet() const { return m_logStreamNamePrefixHasBeenSet; }
79 inline void SetLogStreamNamePrefix(const Aws::String& value) { m_logStreamNamePrefixHasBeenSet = true; m_logStreamNamePrefix = value; }
80 inline void SetLogStreamNamePrefix(Aws::String&& value) { m_logStreamNamePrefixHasBeenSet = true; m_logStreamNamePrefix = std::move(value); }
81 inline void SetLogStreamNamePrefix(const char* value) { m_logStreamNamePrefixHasBeenSet = true; m_logStreamNamePrefix.assign(value); }
83 inline DescribeLogStreamsRequest& WithLogStreamNamePrefix(Aws::String&& value) { SetLogStreamNamePrefix(std::move(value)); return *this;}
84 inline DescribeLogStreamsRequest& WithLogStreamNamePrefix(const char* value) { SetLogStreamNamePrefix(value); return *this;}
86
88
101 inline const OrderBy& GetOrderBy() const{ return m_orderBy; }
102 inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
103 inline void SetOrderBy(const OrderBy& value) { m_orderByHasBeenSet = true; m_orderBy = value; }
104 inline void SetOrderBy(OrderBy&& value) { m_orderByHasBeenSet = true; m_orderBy = std::move(value); }
105 inline DescribeLogStreamsRequest& WithOrderBy(const OrderBy& value) { SetOrderBy(value); return *this;}
106 inline DescribeLogStreamsRequest& WithOrderBy(OrderBy&& value) { SetOrderBy(std::move(value)); return *this;}
108
110
115 inline bool GetDescending() const{ return m_descending; }
116 inline bool DescendingHasBeenSet() const { return m_descendingHasBeenSet; }
117 inline void SetDescending(bool value) { m_descendingHasBeenSet = true; m_descending = value; }
118 inline DescribeLogStreamsRequest& WithDescending(bool value) { SetDescending(value); return *this;}
120
122
126 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
127 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
128 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
129 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
130 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
131 inline DescribeLogStreamsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
132 inline DescribeLogStreamsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
133 inline DescribeLogStreamsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
135
137
141 inline int GetLimit() const{ return m_limit; }
142 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
143 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
144 inline DescribeLogStreamsRequest& WithLimit(int value) { SetLimit(value); return *this;}
146 private:
147
148 Aws::String m_logGroupName;
149 bool m_logGroupNameHasBeenSet = false;
150
151 Aws::String m_logGroupIdentifier;
152 bool m_logGroupIdentifierHasBeenSet = false;
153
154 Aws::String m_logStreamNamePrefix;
155 bool m_logStreamNamePrefixHasBeenSet = false;
156
157 OrderBy m_orderBy;
158 bool m_orderByHasBeenSet = false;
159
160 bool m_descending;
161 bool m_descendingHasBeenSet = false;
162
163 Aws::String m_nextToken;
164 bool m_nextTokenHasBeenSet = false;
165
166 int m_limit;
167 bool m_limitHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace CloudWatchLogs
172} // namespace Aws
DescribeLogStreamsRequest & WithOrderBy(const OrderBy &value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
DescribeLogStreamsRequest & WithLogGroupIdentifier(const char *value)
DescribeLogStreamsRequest & WithNextToken(const Aws::String &value)
DescribeLogStreamsRequest & WithLogGroupIdentifier(const Aws::String &value)
DescribeLogStreamsRequest & WithNextToken(Aws::String &&value)
DescribeLogStreamsRequest & WithLogStreamNamePrefix(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeLogStreamsRequest & WithLogGroupIdentifier(Aws::String &&value)
DescribeLogStreamsRequest & WithLogGroupName(const char *value)
DescribeLogStreamsRequest & WithNextToken(const char *value)
DescribeLogStreamsRequest & WithLogGroupName(const Aws::String &value)
DescribeLogStreamsRequest & WithLogStreamNamePrefix(const char *value)
DescribeLogStreamsRequest & WithOrderBy(OrderBy &&value)
DescribeLogStreamsRequest & WithLogStreamNamePrefix(Aws::String &&value)
DescribeLogStreamsRequest & WithLogGroupName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String