AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
SearchInsightsResult.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/devops-guru/DevOpsGuru_EXPORTS.h>
11#include <aws/devops-guru/model/ProactiveInsightSummary.h>
12#include <aws/devops-guru/model/ReactiveInsightSummary.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace DevOpsGuru {
26namespace Model {
28 public:
29 AWS_DEVOPSGURU_API SearchInsightsResult() = default;
32
34
37 inline const Aws::Vector<ProactiveInsightSummary>& GetProactiveInsights() const { return m_proactiveInsights; }
38 template <typename ProactiveInsightsT = Aws::Vector<ProactiveInsightSummary>>
39 void SetProactiveInsights(ProactiveInsightsT&& value) {
40 m_proactiveInsightsHasBeenSet = true;
41 m_proactiveInsights = std::forward<ProactiveInsightsT>(value);
42 }
43 template <typename ProactiveInsightsT = Aws::Vector<ProactiveInsightSummary>>
44 SearchInsightsResult& WithProactiveInsights(ProactiveInsightsT&& value) {
45 SetProactiveInsights(std::forward<ProactiveInsightsT>(value));
46 return *this;
47 }
48 template <typename ProactiveInsightsT = ProactiveInsightSummary>
49 SearchInsightsResult& AddProactiveInsights(ProactiveInsightsT&& value) {
50 m_proactiveInsightsHasBeenSet = true;
51 m_proactiveInsights.emplace_back(std::forward<ProactiveInsightsT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<ReactiveInsightSummary>& GetReactiveInsights() const { return m_reactiveInsights; }
61 template <typename ReactiveInsightsT = Aws::Vector<ReactiveInsightSummary>>
62 void SetReactiveInsights(ReactiveInsightsT&& value) {
63 m_reactiveInsightsHasBeenSet = true;
64 m_reactiveInsights = std::forward<ReactiveInsightsT>(value);
65 }
66 template <typename ReactiveInsightsT = Aws::Vector<ReactiveInsightSummary>>
67 SearchInsightsResult& WithReactiveInsights(ReactiveInsightsT&& value) {
68 SetReactiveInsights(std::forward<ReactiveInsightsT>(value));
69 return *this;
70 }
71 template <typename ReactiveInsightsT = ReactiveInsightSummary>
72 SearchInsightsResult& AddReactiveInsights(ReactiveInsightsT&& value) {
73 m_reactiveInsightsHasBeenSet = true;
74 m_reactiveInsights.emplace_back(std::forward<ReactiveInsightsT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetNextToken() const { return m_nextToken; }
85 template <typename NextTokenT = Aws::String>
86 void SetNextToken(NextTokenT&& value) {
87 m_nextTokenHasBeenSet = true;
88 m_nextToken = std::forward<NextTokenT>(value);
89 }
90 template <typename NextTokenT = Aws::String>
91 SearchInsightsResult& WithNextToken(NextTokenT&& value) {
92 SetNextToken(std::forward<NextTokenT>(value));
93 return *this;
94 }
96
98
99 inline const Aws::String& GetRequestId() const { return m_requestId; }
100 template <typename RequestIdT = Aws::String>
101 void SetRequestId(RequestIdT&& value) {
102 m_requestIdHasBeenSet = true;
103 m_requestId = std::forward<RequestIdT>(value);
104 }
105 template <typename RequestIdT = Aws::String>
106 SearchInsightsResult& WithRequestId(RequestIdT&& value) {
107 SetRequestId(std::forward<RequestIdT>(value));
108 return *this;
109 }
111 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
112
113 private:
114 Aws::Vector<ProactiveInsightSummary> m_proactiveInsights;
115
116 Aws::Vector<ReactiveInsightSummary> m_reactiveInsights;
117
118 Aws::String m_nextToken;
119
120 Aws::String m_requestId;
121 Aws::Http::HttpResponseCode m_HttpResponseCode;
122 bool m_proactiveInsightsHasBeenSet = false;
123 bool m_reactiveInsightsHasBeenSet = false;
124 bool m_nextTokenHasBeenSet = false;
125 bool m_requestIdHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace DevOpsGuru
130} // namespace Aws
SearchInsightsResult & AddReactiveInsights(ReactiveInsightsT &&value)
const Aws::Vector< ReactiveInsightSummary > & GetReactiveInsights() const
void SetProactiveInsights(ProactiveInsightsT &&value)
SearchInsightsResult & WithNextToken(NextTokenT &&value)
AWS_DEVOPSGURU_API SearchInsightsResult()=default
AWS_DEVOPSGURU_API SearchInsightsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchInsightsResult & WithProactiveInsights(ProactiveInsightsT &&value)
SearchInsightsResult & WithRequestId(RequestIdT &&value)
AWS_DEVOPSGURU_API SearchInsightsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetReactiveInsights(ReactiveInsightsT &&value)
SearchInsightsResult & WithReactiveInsights(ReactiveInsightsT &&value)
const Aws::Vector< ProactiveInsightSummary > & GetProactiveInsights() const
SearchInsightsResult & AddProactiveInsights(ProactiveInsightsT &&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