AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeLogGroupsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/logs/CloudWatchLogs_EXPORTS.h>
11#include <aws/logs/model/LogGroup.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CloudWatchLogs {
25namespace Model {
27 public:
28 AWS_CLOUDWATCHLOGS_API DescribeLogGroupsResult() = default;
31
33
37 inline const Aws::Vector<LogGroup>& GetLogGroups() const { return m_logGroups; }
38 template <typename LogGroupsT = Aws::Vector<LogGroup>>
39 void SetLogGroups(LogGroupsT&& value) {
40 m_logGroupsHasBeenSet = true;
41 m_logGroups = std::forward<LogGroupsT>(value);
42 }
43 template <typename LogGroupsT = Aws::Vector<LogGroup>>
45 SetLogGroups(std::forward<LogGroupsT>(value));
46 return *this;
47 }
48 template <typename LogGroupsT = LogGroup>
50 m_logGroupsHasBeenSet = true;
51 m_logGroups.emplace_back(std::forward<LogGroupsT>(value));
52 return *this;
53 }
55
57
58 inline const Aws::String& GetNextToken() const { return m_nextToken; }
59 template <typename NextTokenT = Aws::String>
60 void SetNextToken(NextTokenT&& value) {
61 m_nextTokenHasBeenSet = true;
62 m_nextToken = std::forward<NextTokenT>(value);
63 }
64 template <typename NextTokenT = Aws::String>
66 SetNextToken(std::forward<NextTokenT>(value));
67 return *this;
68 }
70
72
73 inline const Aws::String& GetRequestId() const { return m_requestId; }
74 template <typename RequestIdT = Aws::String>
75 void SetRequestId(RequestIdT&& value) {
76 m_requestIdHasBeenSet = true;
77 m_requestId = std::forward<RequestIdT>(value);
78 }
79 template <typename RequestIdT = Aws::String>
81 SetRequestId(std::forward<RequestIdT>(value));
82 return *this;
83 }
85 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
86
87 private:
88 Aws::Vector<LogGroup> m_logGroups;
89
90 Aws::String m_nextToken;
91
92 Aws::String m_requestId;
93 Aws::Http::HttpResponseCode m_HttpResponseCode;
94 bool m_logGroupsHasBeenSet = false;
95 bool m_nextTokenHasBeenSet = false;
96 bool m_requestIdHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace CloudWatchLogs
101} // namespace Aws
DescribeLogGroupsResult & WithRequestId(RequestIdT &&value)
AWS_CLOUDWATCHLOGS_API DescribeLogGroupsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CLOUDWATCHLOGS_API DescribeLogGroupsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeLogGroupsResult & WithNextToken(NextTokenT &&value)
const Aws::Vector< LogGroup > & GetLogGroups() const
AWS_CLOUDWATCHLOGS_API DescribeLogGroupsResult()=default
DescribeLogGroupsResult & WithLogGroups(LogGroupsT &&value)
DescribeLogGroupsResult & AddLogGroups(LogGroupsT &&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