AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
SearchInsightsResult.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/devops-guru/DevOpsGuru_EXPORTS.h>
10#include <aws/devops-guru/model/ProactiveInsightSummary.h>
11#include <aws/devops-guru/model/ReactiveInsightSummary.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 DevOpsGuru {
25namespace Model {
27 public:
28 AWS_DEVOPSGURU_API SearchInsightsResult() = default;
31
33
36 inline const Aws::Vector<ProactiveInsightSummary>& GetProactiveInsights() const { return m_proactiveInsights; }
37 template <typename ProactiveInsightsT = Aws::Vector<ProactiveInsightSummary>>
38 void SetProactiveInsights(ProactiveInsightsT&& value) {
39 m_proactiveInsightsHasBeenSet = true;
40 m_proactiveInsights = std::forward<ProactiveInsightsT>(value);
41 }
42 template <typename ProactiveInsightsT = Aws::Vector<ProactiveInsightSummary>>
43 SearchInsightsResult& WithProactiveInsights(ProactiveInsightsT&& value) {
44 SetProactiveInsights(std::forward<ProactiveInsightsT>(value));
45 return *this;
46 }
47 template <typename ProactiveInsightsT = ProactiveInsightSummary>
48 SearchInsightsResult& AddProactiveInsights(ProactiveInsightsT&& value) {
49 m_proactiveInsightsHasBeenSet = true;
50 m_proactiveInsights.emplace_back(std::forward<ProactiveInsightsT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<ReactiveInsightSummary>& GetReactiveInsights() const { return m_reactiveInsights; }
60 template <typename ReactiveInsightsT = Aws::Vector<ReactiveInsightSummary>>
61 void SetReactiveInsights(ReactiveInsightsT&& value) {
62 m_reactiveInsightsHasBeenSet = true;
63 m_reactiveInsights = std::forward<ReactiveInsightsT>(value);
64 }
65 template <typename ReactiveInsightsT = Aws::Vector<ReactiveInsightSummary>>
66 SearchInsightsResult& WithReactiveInsights(ReactiveInsightsT&& value) {
67 SetReactiveInsights(std::forward<ReactiveInsightsT>(value));
68 return *this;
69 }
70 template <typename ReactiveInsightsT = ReactiveInsightSummary>
71 SearchInsightsResult& AddReactiveInsights(ReactiveInsightsT&& value) {
72 m_reactiveInsightsHasBeenSet = true;
73 m_reactiveInsights.emplace_back(std::forward<ReactiveInsightsT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetNextToken() const { return m_nextToken; }
84 template <typename NextTokenT = Aws::String>
85 void SetNextToken(NextTokenT&& value) {
86 m_nextTokenHasBeenSet = true;
87 m_nextToken = std::forward<NextTokenT>(value);
88 }
89 template <typename NextTokenT = Aws::String>
90 SearchInsightsResult& WithNextToken(NextTokenT&& value) {
91 SetNextToken(std::forward<NextTokenT>(value));
92 return *this;
93 }
95
97
98 inline const Aws::String& GetRequestId() const { return m_requestId; }
99 template <typename RequestIdT = Aws::String>
100 void SetRequestId(RequestIdT&& value) {
101 m_requestIdHasBeenSet = true;
102 m_requestId = std::forward<RequestIdT>(value);
103 }
104 template <typename RequestIdT = Aws::String>
105 SearchInsightsResult& WithRequestId(RequestIdT&& value) {
106 SetRequestId(std::forward<RequestIdT>(value));
107 return *this;
108 }
110 private:
111 Aws::Vector<ProactiveInsightSummary> m_proactiveInsights;
112 bool m_proactiveInsightsHasBeenSet = false;
113
114 Aws::Vector<ReactiveInsightSummary> m_reactiveInsights;
115 bool m_reactiveInsightsHasBeenSet = false;
116
117 Aws::String m_nextToken;
118 bool m_nextTokenHasBeenSet = false;
119
120 Aws::String m_requestId;
121 bool m_requestIdHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace DevOpsGuru
126} // 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)
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