AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeLogStreamsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 #include <aws/logs/model/OrderBy.h>
20 
21 namespace Aws
22 {
23 namespace CloudWatchLogs
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
41  inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
42 
46  inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
47 
51  inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
52 
56  inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
57 
61  inline DescribeLogStreamsRequest& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
62 
66  inline DescribeLogStreamsRequest& WithLogGroupName(Aws::String&& value) { SetLogGroupName(value); return *this;}
67 
71  inline DescribeLogStreamsRequest& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
72 
77  inline const Aws::String& GetLogStreamNamePrefix() const{ return m_logStreamNamePrefix; }
78 
83  inline void SetLogStreamNamePrefix(const Aws::String& value) { m_logStreamNamePrefixHasBeenSet = true; m_logStreamNamePrefix = value; }
84 
89  inline void SetLogStreamNamePrefix(Aws::String&& value) { m_logStreamNamePrefixHasBeenSet = true; m_logStreamNamePrefix = value; }
90 
95  inline void SetLogStreamNamePrefix(const char* value) { m_logStreamNamePrefixHasBeenSet = true; m_logStreamNamePrefix.assign(value); }
96 
101  inline DescribeLogStreamsRequest& WithLogStreamNamePrefix(const Aws::String& value) { SetLogStreamNamePrefix(value); return *this;}
102 
107  inline DescribeLogStreamsRequest& WithLogStreamNamePrefix(Aws::String&& value) { SetLogStreamNamePrefix(value); return *this;}
108 
113  inline DescribeLogStreamsRequest& WithLogStreamNamePrefix(const char* value) { SetLogStreamNamePrefix(value); return *this;}
114 
121  inline const OrderBy& GetOrderBy() const{ return m_orderBy; }
122 
129  inline void SetOrderBy(const OrderBy& value) { m_orderByHasBeenSet = true; m_orderBy = value; }
130 
137  inline void SetOrderBy(OrderBy&& value) { m_orderByHasBeenSet = true; m_orderBy = value; }
138 
145  inline DescribeLogStreamsRequest& WithOrderBy(const OrderBy& value) { SetOrderBy(value); return *this;}
146 
153  inline DescribeLogStreamsRequest& WithOrderBy(OrderBy&& value) { SetOrderBy(value); return *this;}
154 
159  inline bool GetDescending() const{ return m_descending; }
160 
165  inline void SetDescending(bool value) { m_descendingHasBeenSet = true; m_descending = value; }
166 
171  inline DescribeLogStreamsRequest& WithDescending(bool value) { SetDescending(value); return *this;}
172 
178  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
179 
185  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
186 
192  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
193 
199  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
200 
206  inline DescribeLogStreamsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
207 
213  inline DescribeLogStreamsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
214 
220  inline DescribeLogStreamsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
221 
226  inline int GetLimit() const{ return m_limit; }
227 
232  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
233 
238  inline DescribeLogStreamsRequest& WithLimit(int value) { SetLimit(value); return *this;}
239 
240  private:
241  Aws::String m_logGroupName;
242  bool m_logGroupNameHasBeenSet;
243  Aws::String m_logStreamNamePrefix;
244  bool m_logStreamNamePrefixHasBeenSet;
245  OrderBy m_orderBy;
246  bool m_orderByHasBeenSet;
247  bool m_descending;
248  bool m_descendingHasBeenSet;
249  Aws::String m_nextToken;
250  bool m_nextTokenHasBeenSet;
251  int m_limit;
252  bool m_limitHasBeenSet;
253  };
254 
255 } // namespace Model
256 } // namespace CloudWatchLogs
257 } // namespace Aws
DescribeLogStreamsRequest & WithOrderBy(const OrderBy &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
#define AWS_CLOUDWATCHLOGS_API
DescribeLogStreamsRequest & WithNextToken(const char *value)
DescribeLogStreamsRequest & WithLogGroupName(const Aws::String &value)
DescribeLogStreamsRequest & WithLogGroupName(Aws::String &&value)
DescribeLogStreamsRequest & WithLogGroupName(const char *value)
DescribeLogStreamsRequest & WithNextToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeLogStreamsRequest & WithLogStreamNamePrefix(const char *value)
DescribeLogStreamsRequest & WithNextToken(const Aws::String &value)
DescribeLogStreamsRequest & WithLogStreamNamePrefix(const Aws::String &value)
DescribeLogStreamsRequest & WithOrderBy(OrderBy &&value)
JSON (JavaScript Object Notation).
DescribeLogStreamsRequest & WithLogStreamNamePrefix(Aws::String &&value)