AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListLogGroupsResult.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/logs/model/LogGroupSummary.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CloudWatchLogs
26{
27namespace Model
28{
30 {
31 public:
32 AWS_CLOUDWATCHLOGS_API ListLogGroupsResult() = default;
35
36
38
42 inline const Aws::Vector<LogGroupSummary>& GetLogGroups() const { return m_logGroups; }
43 template<typename LogGroupsT = Aws::Vector<LogGroupSummary>>
44 void SetLogGroups(LogGroupsT&& value) { m_logGroupsHasBeenSet = true; m_logGroups = std::forward<LogGroupsT>(value); }
45 template<typename LogGroupsT = Aws::Vector<LogGroupSummary>>
46 ListLogGroupsResult& WithLogGroups(LogGroupsT&& value) { SetLogGroups(std::forward<LogGroupsT>(value)); return *this;}
47 template<typename LogGroupsT = LogGroupSummary>
48 ListLogGroupsResult& AddLogGroups(LogGroupsT&& value) { m_logGroupsHasBeenSet = true; m_logGroups.emplace_back(std::forward<LogGroupsT>(value)); return *this; }
50
52
53 inline const Aws::String& GetNextToken() const { return m_nextToken; }
54 template<typename NextTokenT = Aws::String>
55 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
56 template<typename NextTokenT = Aws::String>
57 ListLogGroupsResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
59
61
62 inline const Aws::String& GetRequestId() const { return m_requestId; }
63 template<typename RequestIdT = Aws::String>
64 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
65 template<typename RequestIdT = Aws::String>
66 ListLogGroupsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
68 private:
69
71 bool m_logGroupsHasBeenSet = false;
72
73 Aws::String m_nextToken;
74 bool m_nextTokenHasBeenSet = false;
75
76 Aws::String m_requestId;
77 bool m_requestIdHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace CloudWatchLogs
82} // namespace Aws
AWS_CLOUDWATCHLOGS_API ListLogGroupsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListLogGroupsResult & WithNextToken(NextTokenT &&value)
AWS_CLOUDWATCHLOGS_API ListLogGroupsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListLogGroupsResult & WithLogGroups(LogGroupsT &&value)
AWS_CLOUDWATCHLOGS_API ListLogGroupsResult()=default
ListLogGroupsResult & AddLogGroups(LogGroupsT &&value)
const Aws::Vector< LogGroupSummary > & GetLogGroups() const
ListLogGroupsResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue