AWS SDK for C++  1.9.40
AWS SDK for C++
DescribeLogGroupsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CloudWatchLogs
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "DescribeLogGroups"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetLogGroupNamePrefix() const{ return m_logGroupNamePrefix; }
41 
45  inline bool LogGroupNamePrefixHasBeenSet() const { return m_logGroupNamePrefixHasBeenSet; }
46 
50  inline void SetLogGroupNamePrefix(const Aws::String& value) { m_logGroupNamePrefixHasBeenSet = true; m_logGroupNamePrefix = value; }
51 
55  inline void SetLogGroupNamePrefix(Aws::String&& value) { m_logGroupNamePrefixHasBeenSet = true; m_logGroupNamePrefix = std::move(value); }
56 
60  inline void SetLogGroupNamePrefix(const char* value) { m_logGroupNamePrefixHasBeenSet = true; m_logGroupNamePrefix.assign(value); }
61 
65  inline DescribeLogGroupsRequest& WithLogGroupNamePrefix(const Aws::String& value) { SetLogGroupNamePrefix(value); return *this;}
66 
70  inline DescribeLogGroupsRequest& WithLogGroupNamePrefix(Aws::String&& value) { SetLogGroupNamePrefix(std::move(value)); return *this;}
71 
75  inline DescribeLogGroupsRequest& WithLogGroupNamePrefix(const char* value) { SetLogGroupNamePrefix(value); return *this;}
76 
77 
82  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
83 
88  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
89 
94  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
95 
100  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
101 
106  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
107 
112  inline DescribeLogGroupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
113 
118  inline DescribeLogGroupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
119 
124  inline DescribeLogGroupsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
125 
126 
131  inline int GetLimit() const{ return m_limit; }
132 
137  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
138 
143  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
144 
149  inline DescribeLogGroupsRequest& WithLimit(int value) { SetLimit(value); return *this;}
150 
151  private:
152 
153  Aws::String m_logGroupNamePrefix;
154  bool m_logGroupNamePrefixHasBeenSet;
155 
156  Aws::String m_nextToken;
157  bool m_nextTokenHasBeenSet;
158 
159  int m_limit;
160  bool m_limitHasBeenSet;
161  };
162 
163 } // namespace Model
164 } // namespace CloudWatchLogs
165 } // namespace Aws
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::WithNextToken
DescribeLogGroupsRequest & WithNextToken(const char *value)
Definition: DescribeLogGroupsRequest.h:124
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::WithNextToken
DescribeLogGroupsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeLogGroupsRequest.h:118
AWS_CLOUDWATCHLOGS_API
#define AWS_CLOUDWATCHLOGS_API
Definition: CloudWatchLogs_EXPORTS.h:28
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::SetLimit
void SetLimit(int value)
Definition: DescribeLogGroupsRequest.h:143
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::WithLogGroupNamePrefix
DescribeLogGroupsRequest & WithLogGroupNamePrefix(const char *value)
Definition: DescribeLogGroupsRequest.h:75
CloudWatchLogs_EXPORTS.h
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeLogGroupsRequest.h:88
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::SetLogGroupNamePrefix
void SetLogGroupNamePrefix(const Aws::String &value)
Definition: DescribeLogGroupsRequest.h:50
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest
Definition: DescribeLogGroupsRequest.h:22
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::SetLogGroupNamePrefix
void SetLogGroupNamePrefix(Aws::String &&value)
Definition: DescribeLogGroupsRequest.h:55
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::DescribeLogGroupsRequest
DescribeLogGroupsRequest()
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::LogGroupNamePrefixHasBeenSet
bool LogGroupNamePrefixHasBeenSet() const
Definition: DescribeLogGroupsRequest.h:45
Aws::CloudWatchLogs::CloudWatchLogsRequest
Definition: CloudWatchLogsRequest.h:17
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeLogGroupsRequest.h:30
AWSString.h
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::GetLogGroupNamePrefix
const Aws::String & GetLogGroupNamePrefix() const
Definition: DescribeLogGroupsRequest.h:40
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeLogGroupsRequest.h:106
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeLogGroupsRequest.h:94
Aws
Definition: AccessManagementClient.h:15
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::WithLogGroupNamePrefix
DescribeLogGroupsRequest & WithLogGroupNamePrefix(const Aws::String &value)
Definition: DescribeLogGroupsRequest.h:65
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::SetLogGroupNamePrefix
void SetLogGroupNamePrefix(const char *value)
Definition: DescribeLogGroupsRequest.h:60
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeLogGroupsRequest.h:100
CloudWatchLogsRequest.h
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: DescribeLogGroupsRequest.h:137
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::GetLimit
int GetLimit() const
Definition: DescribeLogGroupsRequest.h:131
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeLogGroupsRequest.h:82
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::WithLimit
DescribeLogGroupsRequest & WithLimit(int value)
Definition: DescribeLogGroupsRequest.h:149
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::WithLogGroupNamePrefix
DescribeLogGroupsRequest & WithLogGroupNamePrefix(Aws::String &&value)
Definition: DescribeLogGroupsRequest.h:70
Aws::CloudWatchLogs::Model::DescribeLogGroupsRequest::WithNextToken
DescribeLogGroupsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeLogGroupsRequest.h:112