AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
DescribeInsightResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
10#include <aws/devops-guru/model/ProactiveInsight.h>
11#include <aws/devops-guru/model/ReactiveInsight.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 DescribeInsightResult() = default;
31
33
37 inline const ProactiveInsight& GetProactiveInsight() const { return m_proactiveInsight; }
38 template <typename ProactiveInsightT = ProactiveInsight>
39 void SetProactiveInsight(ProactiveInsightT&& value) {
40 m_proactiveInsightHasBeenSet = true;
41 m_proactiveInsight = std::forward<ProactiveInsightT>(value);
42 }
43 template <typename ProactiveInsightT = ProactiveInsight>
44 DescribeInsightResult& WithProactiveInsight(ProactiveInsightT&& value) {
45 SetProactiveInsight(std::forward<ProactiveInsightT>(value));
46 return *this;
47 }
49
51
55 inline const ReactiveInsight& GetReactiveInsight() const { return m_reactiveInsight; }
56 template <typename ReactiveInsightT = ReactiveInsight>
57 void SetReactiveInsight(ReactiveInsightT&& value) {
58 m_reactiveInsightHasBeenSet = true;
59 m_reactiveInsight = std::forward<ReactiveInsightT>(value);
60 }
61 template <typename ReactiveInsightT = ReactiveInsight>
62 DescribeInsightResult& WithReactiveInsight(ReactiveInsightT&& value) {
63 SetReactiveInsight(std::forward<ReactiveInsightT>(value));
64 return *this;
65 }
67
69
70 inline const Aws::String& GetRequestId() const { return m_requestId; }
71 template <typename RequestIdT = Aws::String>
72 void SetRequestId(RequestIdT&& value) {
73 m_requestIdHasBeenSet = true;
74 m_requestId = std::forward<RequestIdT>(value);
75 }
76 template <typename RequestIdT = Aws::String>
77 DescribeInsightResult& WithRequestId(RequestIdT&& value) {
78 SetRequestId(std::forward<RequestIdT>(value));
79 return *this;
80 }
82 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
83
84 private:
85 ProactiveInsight m_proactiveInsight;
86
87 ReactiveInsight m_reactiveInsight;
88
89 Aws::String m_requestId;
90 Aws::Http::HttpResponseCode m_HttpResponseCode;
91 bool m_proactiveInsightHasBeenSet = false;
92 bool m_reactiveInsightHasBeenSet = false;
93 bool m_requestIdHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace DevOpsGuru
98} // namespace Aws
const ReactiveInsight & GetReactiveInsight() const
void SetProactiveInsight(ProactiveInsightT &&value)
DescribeInsightResult & WithRequestId(RequestIdT &&value)
AWS_DEVOPSGURU_API DescribeInsightResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DEVOPSGURU_API DescribeInsightResult()=default
const ProactiveInsight & GetProactiveInsight() const
DescribeInsightResult & WithProactiveInsight(ProactiveInsightT &&value)
AWS_DEVOPSGURU_API DescribeInsightResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeInsightResult & WithReactiveInsight(ReactiveInsightT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue