AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
CreateAnomalyDetectorResult.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/AnomalyDetectorStatus.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.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 PrometheusService {
25namespace Model {
27 public:
28 AWS_PROMETHEUSSERVICE_API CreateAnomalyDetectorResult() = default;
31
33
36 inline const Aws::String& GetAnomalyDetectorId() const { return m_anomalyDetectorId; }
37 template <typename AnomalyDetectorIdT = Aws::String>
38 void SetAnomalyDetectorId(AnomalyDetectorIdT&& value) {
39 m_anomalyDetectorIdHasBeenSet = true;
40 m_anomalyDetectorId = std::forward<AnomalyDetectorIdT>(value);
41 }
42 template <typename AnomalyDetectorIdT = Aws::String>
44 SetAnomalyDetectorId(std::forward<AnomalyDetectorIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetArn() const { return m_arn; }
54 template <typename ArnT = Aws::String>
55 void SetArn(ArnT&& value) {
56 m_arnHasBeenSet = true;
57 m_arn = std::forward<ArnT>(value);
58 }
59 template <typename ArnT = Aws::String>
61 SetArn(std::forward<ArnT>(value));
62 return *this;
63 }
65
67
70 inline const AnomalyDetectorStatus& GetStatus() const { return m_status; }
71 template <typename StatusT = AnomalyDetectorStatus>
72 void SetStatus(StatusT&& value) {
73 m_statusHasBeenSet = true;
74 m_status = std::forward<StatusT>(value);
75 }
76 template <typename StatusT = AnomalyDetectorStatus>
78 SetStatus(std::forward<StatusT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
88 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
89 void SetTags(TagsT&& value) {
90 m_tagsHasBeenSet = true;
91 m_tags = std::forward<TagsT>(value);
92 }
93 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
95 SetTags(std::forward<TagsT>(value));
96 return *this;
97 }
98 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
99 CreateAnomalyDetectorResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
100 m_tagsHasBeenSet = true;
101 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
102 return *this;
103 }
105
107
108 inline const Aws::String& GetRequestId() const { return m_requestId; }
109 template <typename RequestIdT = Aws::String>
110 void SetRequestId(RequestIdT&& value) {
111 m_requestIdHasBeenSet = true;
112 m_requestId = std::forward<RequestIdT>(value);
113 }
114 template <typename RequestIdT = Aws::String>
116 SetRequestId(std::forward<RequestIdT>(value));
117 return *this;
118 }
120 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
121
122 private:
123 Aws::String m_anomalyDetectorId;
124
125 Aws::String m_arn;
126
127 AnomalyDetectorStatus m_status;
128
130
131 Aws::String m_requestId;
132 Aws::Http::HttpResponseCode m_HttpResponseCode;
133 bool m_anomalyDetectorIdHasBeenSet = false;
134 bool m_arnHasBeenSet = false;
135 bool m_statusHasBeenSet = false;
136 bool m_tagsHasBeenSet = false;
137 bool m_requestIdHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace PrometheusService
142} // namespace Aws
CreateAnomalyDetectorResult & WithAnomalyDetectorId(AnomalyDetectorIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_PROMETHEUSSERVICE_API CreateAnomalyDetectorResult()=default
CreateAnomalyDetectorResult & WithRequestId(RequestIdT &&value)
CreateAnomalyDetectorResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_PROMETHEUSSERVICE_API CreateAnomalyDetectorResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateAnomalyDetectorResult & WithStatus(StatusT &&value)
AWS_PROMETHEUSSERVICE_API CreateAnomalyDetectorResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue