AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
DescribeAnomalyResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
9#include <aws/devops-guru/model/ProactiveAnomaly.h>
10#include <aws/devops-guru/model/ReactiveAnomaly.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace DevOpsGuru {
24namespace Model {
26 public:
27 AWS_DEVOPSGURU_API DescribeAnomalyResult() = default;
30
32
36 inline const ProactiveAnomaly& GetProactiveAnomaly() const { return m_proactiveAnomaly; }
37 template <typename ProactiveAnomalyT = ProactiveAnomaly>
38 void SetProactiveAnomaly(ProactiveAnomalyT&& value) {
39 m_proactiveAnomalyHasBeenSet = true;
40 m_proactiveAnomaly = std::forward<ProactiveAnomalyT>(value);
41 }
42 template <typename ProactiveAnomalyT = ProactiveAnomaly>
43 DescribeAnomalyResult& WithProactiveAnomaly(ProactiveAnomalyT&& value) {
44 SetProactiveAnomaly(std::forward<ProactiveAnomalyT>(value));
45 return *this;
46 }
48
50
54 inline const ReactiveAnomaly& GetReactiveAnomaly() const { return m_reactiveAnomaly; }
55 template <typename ReactiveAnomalyT = ReactiveAnomaly>
56 void SetReactiveAnomaly(ReactiveAnomalyT&& value) {
57 m_reactiveAnomalyHasBeenSet = true;
58 m_reactiveAnomaly = std::forward<ReactiveAnomalyT>(value);
59 }
60 template <typename ReactiveAnomalyT = ReactiveAnomaly>
61 DescribeAnomalyResult& WithReactiveAnomaly(ReactiveAnomalyT&& value) {
62 SetReactiveAnomaly(std::forward<ReactiveAnomalyT>(value));
63 return *this;
64 }
66
68
69 inline const Aws::String& GetRequestId() const { return m_requestId; }
70 template <typename RequestIdT = Aws::String>
71 void SetRequestId(RequestIdT&& value) {
72 m_requestIdHasBeenSet = true;
73 m_requestId = std::forward<RequestIdT>(value);
74 }
75 template <typename RequestIdT = Aws::String>
76 DescribeAnomalyResult& WithRequestId(RequestIdT&& value) {
77 SetRequestId(std::forward<RequestIdT>(value));
78 return *this;
79 }
81 private:
82 ProactiveAnomaly m_proactiveAnomaly;
83
84 ReactiveAnomaly m_reactiveAnomaly;
85
86 Aws::String m_requestId;
87 bool m_proactiveAnomalyHasBeenSet = false;
88 bool m_reactiveAnomalyHasBeenSet = false;
89 bool m_requestIdHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace DevOpsGuru
94} // 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)
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