AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
DescribeAnomalyDetectorResult.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/AnomalyDetectorDescription.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.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 PrometheusService {
24namespace Model {
26 public:
27 AWS_PROMETHEUSSERVICE_API DescribeAnomalyDetectorResult() = default;
29 AWS_PROMETHEUSSERVICE_API DescribeAnomalyDetectorResult& operator=(
31
33
36 inline const AnomalyDetectorDescription& GetAnomalyDetector() const { return m_anomalyDetector; }
37 template <typename AnomalyDetectorT = AnomalyDetectorDescription>
38 void SetAnomalyDetector(AnomalyDetectorT&& value) {
39 m_anomalyDetectorHasBeenSet = true;
40 m_anomalyDetector = std::forward<AnomalyDetectorT>(value);
41 }
42 template <typename AnomalyDetectorT = AnomalyDetectorDescription>
44 SetAnomalyDetector(std::forward<AnomalyDetectorT>(value));
45 return *this;
46 }
48
50
51 inline const Aws::String& GetRequestId() const { return m_requestId; }
52 template <typename RequestIdT = Aws::String>
53 void SetRequestId(RequestIdT&& value) {
54 m_requestIdHasBeenSet = true;
55 m_requestId = std::forward<RequestIdT>(value);
56 }
57 template <typename RequestIdT = Aws::String>
59 SetRequestId(std::forward<RequestIdT>(value));
60 return *this;
61 }
63 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
64
65 private:
66 AnomalyDetectorDescription m_anomalyDetector;
67
68 Aws::String m_requestId;
69 Aws::Http::HttpResponseCode m_HttpResponseCode;
70 bool m_anomalyDetectorHasBeenSet = false;
71 bool m_requestIdHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace PrometheusService
76} // namespace Aws
AWS_PROMETHEUSSERVICE_API DescribeAnomalyDetectorResult()=default
AWS_PROMETHEUSSERVICE_API DescribeAnomalyDetectorResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeAnomalyDetectorResult & WithAnomalyDetector(AnomalyDetectorT &&value)
AWS_PROMETHEUSSERVICE_API DescribeAnomalyDetectorResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeAnomalyDetectorResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue