AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeInsightRulesResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/monitoring/CloudWatch_EXPORTS.h>
11#include <aws/monitoring/model/InsightRule.h>
12#include <aws/monitoring/model/ResponseMetadata.h>
13
14#include <utility>
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Cbor {
21class CborValue;
22} // namespace Cbor
23} // namespace Utils
24namespace CloudWatch {
25namespace Model {
27 public:
28 AWS_CLOUDWATCH_API DescribeInsightRulesResult() = default;
31
33
37 inline const Aws::String& GetNextToken() const { return m_nextToken; }
38 template <typename NextTokenT = Aws::String>
39 void SetNextToken(NextTokenT&& value) {
40 m_nextTokenHasBeenSet = true;
41 m_nextToken = std::forward<NextTokenT>(value);
42 }
43 template <typename NextTokenT = Aws::String>
45 SetNextToken(std::forward<NextTokenT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::Vector<InsightRule>& GetInsightRules() const { return m_insightRules; }
55 template <typename InsightRulesT = Aws::Vector<InsightRule>>
56 void SetInsightRules(InsightRulesT&& value) {
57 m_insightRulesHasBeenSet = true;
58 m_insightRules = std::forward<InsightRulesT>(value);
59 }
60 template <typename InsightRulesT = Aws::Vector<InsightRule>>
62 SetInsightRules(std::forward<InsightRulesT>(value));
63 return *this;
64 }
65 template <typename InsightRulesT = InsightRule>
67 m_insightRulesHasBeenSet = true;
68 m_insightRules.emplace_back(std::forward<InsightRulesT>(value));
69 return *this;
70 }
72
74
75 inline const Aws::String& GetRequestId() const { return m_requestId; }
76 template <typename RequestIdT = Aws::String>
77 void SetRequestId(RequestIdT&& value) {
78 m_requestIdHasBeenSet = true;
79 m_requestId = std::forward<RequestIdT>(value);
80 }
81 template <typename RequestIdT = Aws::String>
83 SetRequestId(std::forward<RequestIdT>(value));
84 return *this;
85 }
87
89
90 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
91 template <typename ResponseMetadataT = ResponseMetadata>
92 void SetResponseMetadata(ResponseMetadataT&& value) {
93 m_responseMetadataHasBeenSet = true;
94 m_responseMetadata = std::forward<ResponseMetadataT>(value);
95 }
96 template <typename ResponseMetadataT = ResponseMetadata>
98 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_nextToken;
104
105 Aws::Vector<InsightRule> m_insightRules;
106
107 Aws::String m_requestId;
108
109 ResponseMetadata m_responseMetadata;
110 bool m_nextTokenHasBeenSet = false;
111 bool m_insightRulesHasBeenSet = false;
112 bool m_requestIdHasBeenSet = false;
113 bool m_responseMetadataHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace CloudWatch
118} // namespace Aws
DescribeInsightRulesResult & WithResponseMetadata(ResponseMetadataT &&value)
AWS_CLOUDWATCH_API DescribeInsightRulesResult()=default
DescribeInsightRulesResult & WithRequestId(RequestIdT &&value)
AWS_CLOUDWATCH_API DescribeInsightRulesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
const Aws::Vector< InsightRule > & GetInsightRules() const
DescribeInsightRulesResult & WithInsightRules(InsightRulesT &&value)
AWS_CLOUDWATCH_API DescribeInsightRulesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
DescribeInsightRulesResult & WithNextToken(NextTokenT &&value)
DescribeInsightRulesResult & AddInsightRules(InsightRulesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector