AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
DescribeAnomalyResult.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/ProactiveAnomaly.h>
11#include <aws/devops-guru/model/ReactiveAnomaly.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 DescribeAnomalyResult() = default;
31
33
37 inline const ProactiveAnomaly& GetProactiveAnomaly() const { return m_proactiveAnomaly; }
38 template <typename ProactiveAnomalyT = ProactiveAnomaly>
39 void SetProactiveAnomaly(ProactiveAnomalyT&& value) {
40 m_proactiveAnomalyHasBeenSet = true;
41 m_proactiveAnomaly = std::forward<ProactiveAnomalyT>(value);
42 }
43 template <typename ProactiveAnomalyT = ProactiveAnomaly>
44 DescribeAnomalyResult& WithProactiveAnomaly(ProactiveAnomalyT&& value) {
45 SetProactiveAnomaly(std::forward<ProactiveAnomalyT>(value));
46 return *this;
47 }
49
51
55 inline const ReactiveAnomaly& GetReactiveAnomaly() const { return m_reactiveAnomaly; }
56 template <typename ReactiveAnomalyT = ReactiveAnomaly>
57 void SetReactiveAnomaly(ReactiveAnomalyT&& value) {
58 m_reactiveAnomalyHasBeenSet = true;
59 m_reactiveAnomaly = std::forward<ReactiveAnomalyT>(value);
60 }
61 template <typename ReactiveAnomalyT = ReactiveAnomaly>
62 DescribeAnomalyResult& WithReactiveAnomaly(ReactiveAnomalyT&& value) {
63 SetReactiveAnomaly(std::forward<ReactiveAnomalyT>(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 DescribeAnomalyResult& 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 ProactiveAnomaly m_proactiveAnomaly;
86
87 ReactiveAnomaly m_reactiveAnomaly;
88
89 Aws::String m_requestId;
90 Aws::Http::HttpResponseCode m_HttpResponseCode;
91 bool m_proactiveAnomalyHasBeenSet = false;
92 bool m_reactiveAnomalyHasBeenSet = false;
93 bool m_requestIdHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace DevOpsGuru
98} // namespace Aws
const ProactiveAnomaly & GetProactiveAnomaly() const
AWS_DEVOPSGURU_API DescribeAnomalyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeAnomalyResult & WithRequestId(RequestIdT &&value)
AWS_DEVOPSGURU_API DescribeAnomalyResult()=default
DescribeAnomalyResult & WithProactiveAnomaly(ProactiveAnomalyT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeAnomalyResult & WithReactiveAnomaly(ReactiveAnomalyT &&value)
const ReactiveAnomaly & GetReactiveAnomaly() const
AWS_DEVOPSGURU_API DescribeAnomalyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetProactiveAnomaly(ProactiveAnomalyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue