AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AnomalyMonitor.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ce/model/MonitorType.h>
10#include <aws/ce/model/MonitorDimension.h>
11#include <aws/ce/model/Expression.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CostExplorer
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_COSTEXPLORER_API AnomalyMonitor() = default;
41 AWS_COSTEXPLORER_API AnomalyMonitor(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COSTEXPLORER_API AnomalyMonitor& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetMonitorArn() const { return m_monitorArn; }
51 inline bool MonitorArnHasBeenSet() const { return m_monitorArnHasBeenSet; }
52 template<typename MonitorArnT = Aws::String>
53 void SetMonitorArn(MonitorArnT&& value) { m_monitorArnHasBeenSet = true; m_monitorArn = std::forward<MonitorArnT>(value); }
54 template<typename MonitorArnT = Aws::String>
55 AnomalyMonitor& WithMonitorArn(MonitorArnT&& value) { SetMonitorArn(std::forward<MonitorArnT>(value)); return *this;}
57
59
62 inline const Aws::String& GetMonitorName() const { return m_monitorName; }
63 inline bool MonitorNameHasBeenSet() const { return m_monitorNameHasBeenSet; }
64 template<typename MonitorNameT = Aws::String>
65 void SetMonitorName(MonitorNameT&& value) { m_monitorNameHasBeenSet = true; m_monitorName = std::forward<MonitorNameT>(value); }
66 template<typename MonitorNameT = Aws::String>
67 AnomalyMonitor& WithMonitorName(MonitorNameT&& value) { SetMonitorName(std::forward<MonitorNameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
75 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
76 template<typename CreationDateT = Aws::String>
77 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
78 template<typename CreationDateT = Aws::String>
79 AnomalyMonitor& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
81
83
86 inline const Aws::String& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
87 inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
88 template<typename LastUpdatedDateT = Aws::String>
89 void SetLastUpdatedDate(LastUpdatedDateT&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value); }
90 template<typename LastUpdatedDateT = Aws::String>
91 AnomalyMonitor& WithLastUpdatedDate(LastUpdatedDateT&& value) { SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value)); return *this;}
93
95
98 inline const Aws::String& GetLastEvaluatedDate() const { return m_lastEvaluatedDate; }
99 inline bool LastEvaluatedDateHasBeenSet() const { return m_lastEvaluatedDateHasBeenSet; }
100 template<typename LastEvaluatedDateT = Aws::String>
101 void SetLastEvaluatedDate(LastEvaluatedDateT&& value) { m_lastEvaluatedDateHasBeenSet = true; m_lastEvaluatedDate = std::forward<LastEvaluatedDateT>(value); }
102 template<typename LastEvaluatedDateT = Aws::String>
103 AnomalyMonitor& WithLastEvaluatedDate(LastEvaluatedDateT&& value) { SetLastEvaluatedDate(std::forward<LastEvaluatedDateT>(value)); return *this;}
105
107
110 inline MonitorType GetMonitorType() const { return m_monitorType; }
111 inline bool MonitorTypeHasBeenSet() const { return m_monitorTypeHasBeenSet; }
112 inline void SetMonitorType(MonitorType value) { m_monitorTypeHasBeenSet = true; m_monitorType = value; }
113 inline AnomalyMonitor& WithMonitorType(MonitorType value) { SetMonitorType(value); return *this;}
115
117
120 inline MonitorDimension GetMonitorDimension() const { return m_monitorDimension; }
121 inline bool MonitorDimensionHasBeenSet() const { return m_monitorDimensionHasBeenSet; }
122 inline void SetMonitorDimension(MonitorDimension value) { m_monitorDimensionHasBeenSet = true; m_monitorDimension = value; }
125
127
128 inline const Expression& GetMonitorSpecification() const { return m_monitorSpecification; }
129 inline bool MonitorSpecificationHasBeenSet() const { return m_monitorSpecificationHasBeenSet; }
130 template<typename MonitorSpecificationT = Expression>
131 void SetMonitorSpecification(MonitorSpecificationT&& value) { m_monitorSpecificationHasBeenSet = true; m_monitorSpecification = std::forward<MonitorSpecificationT>(value); }
132 template<typename MonitorSpecificationT = Expression>
133 AnomalyMonitor& WithMonitorSpecification(MonitorSpecificationT&& value) { SetMonitorSpecification(std::forward<MonitorSpecificationT>(value)); return *this;}
135
137
140 inline int GetDimensionalValueCount() const { return m_dimensionalValueCount; }
141 inline bool DimensionalValueCountHasBeenSet() const { return m_dimensionalValueCountHasBeenSet; }
142 inline void SetDimensionalValueCount(int value) { m_dimensionalValueCountHasBeenSet = true; m_dimensionalValueCount = value; }
143 inline AnomalyMonitor& WithDimensionalValueCount(int value) { SetDimensionalValueCount(value); return *this;}
145 private:
146
147 Aws::String m_monitorArn;
148 bool m_monitorArnHasBeenSet = false;
149
150 Aws::String m_monitorName;
151 bool m_monitorNameHasBeenSet = false;
152
153 Aws::String m_creationDate;
154 bool m_creationDateHasBeenSet = false;
155
156 Aws::String m_lastUpdatedDate;
157 bool m_lastUpdatedDateHasBeenSet = false;
158
159 Aws::String m_lastEvaluatedDate;
160 bool m_lastEvaluatedDateHasBeenSet = false;
161
162 MonitorType m_monitorType{MonitorType::NOT_SET};
163 bool m_monitorTypeHasBeenSet = false;
164
166 bool m_monitorDimensionHasBeenSet = false;
167
168 Expression m_monitorSpecification;
169 bool m_monitorSpecificationHasBeenSet = false;
170
171 int m_dimensionalValueCount{0};
172 bool m_dimensionalValueCountHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace CostExplorer
177} // namespace Aws
void SetMonitorName(MonitorNameT &&value)
AnomalyMonitor & WithMonitorSpecification(MonitorSpecificationT &&value)
void SetLastUpdatedDate(LastUpdatedDateT &&value)
MonitorDimension GetMonitorDimension() const
void SetCreationDate(CreationDateT &&value)
void SetMonitorArn(MonitorArnT &&value)
AWS_COSTEXPLORER_API AnomalyMonitor & operator=(Aws::Utils::Json::JsonView jsonValue)
AnomalyMonitor & WithMonitorArn(MonitorArnT &&value)
AnomalyMonitor & WithMonitorType(MonitorType value)
const Aws::String & GetLastUpdatedDate() const
void SetMonitorDimension(MonitorDimension value)
AnomalyMonitor & WithMonitorName(MonitorNameT &&value)
const Aws::String & GetCreationDate() const
const Aws::String & GetMonitorName() const
const Aws::String & GetMonitorArn() const
AnomalyMonitor & WithMonitorDimension(MonitorDimension value)
AnomalyMonitor & WithLastEvaluatedDate(LastEvaluatedDateT &&value)
AnomalyMonitor & WithCreationDate(CreationDateT &&value)
void SetLastEvaluatedDate(LastEvaluatedDateT &&value)
AWS_COSTEXPLORER_API AnomalyMonitor()=default
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetLastEvaluatedDate() const
void SetMonitorSpecification(MonitorSpecificationT &&value)
const Expression & GetMonitorSpecification() const
AnomalyMonitor & WithLastUpdatedDate(LastUpdatedDateT &&value)
AnomalyMonitor & WithDimensionalValueCount(int value)
AWS_COSTEXPLORER_API AnomalyMonitor(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue