AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AnomalySubscription.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/AnomalySubscriptionFrequency.h>
9#include <aws/ce/model/Expression.h>
10#include <aws/ce/model/Subscriber.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CostExplorer {
24namespace Model {
25
45 public:
46 AWS_COSTEXPLORER_API AnomalySubscription() = default;
47 AWS_COSTEXPLORER_API AnomalySubscription(Aws::Utils::Json::JsonView jsonValue);
49 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
50
52
55 inline const Aws::String& GetSubscriptionArn() const { return m_subscriptionArn; }
56 inline bool SubscriptionArnHasBeenSet() const { return m_subscriptionArnHasBeenSet; }
57 template <typename SubscriptionArnT = Aws::String>
58 void SetSubscriptionArn(SubscriptionArnT&& value) {
59 m_subscriptionArnHasBeenSet = true;
60 m_subscriptionArn = std::forward<SubscriptionArnT>(value);
61 }
62 template <typename SubscriptionArnT = Aws::String>
63 AnomalySubscription& WithSubscriptionArn(SubscriptionArnT&& value) {
64 SetSubscriptionArn(std::forward<SubscriptionArnT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetAccountId() const { return m_accountId; }
74 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
75 template <typename AccountIdT = Aws::String>
76 void SetAccountId(AccountIdT&& value) {
77 m_accountIdHasBeenSet = true;
78 m_accountId = std::forward<AccountIdT>(value);
79 }
80 template <typename AccountIdT = Aws::String>
81 AnomalySubscription& WithAccountId(AccountIdT&& value) {
82 SetAccountId(std::forward<AccountIdT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::Vector<Aws::String>& GetMonitorArnList() const { return m_monitorArnList; }
92 inline bool MonitorArnListHasBeenSet() const { return m_monitorArnListHasBeenSet; }
93 template <typename MonitorArnListT = Aws::Vector<Aws::String>>
94 void SetMonitorArnList(MonitorArnListT&& value) {
95 m_monitorArnListHasBeenSet = true;
96 m_monitorArnList = std::forward<MonitorArnListT>(value);
97 }
98 template <typename MonitorArnListT = Aws::Vector<Aws::String>>
99 AnomalySubscription& WithMonitorArnList(MonitorArnListT&& value) {
100 SetMonitorArnList(std::forward<MonitorArnListT>(value));
101 return *this;
102 }
103 template <typename MonitorArnListT = Aws::String>
104 AnomalySubscription& AddMonitorArnList(MonitorArnListT&& value) {
105 m_monitorArnListHasBeenSet = true;
106 m_monitorArnList.emplace_back(std::forward<MonitorArnListT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Vector<Subscriber>& GetSubscribers() const { return m_subscribers; }
116 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
117 template <typename SubscribersT = Aws::Vector<Subscriber>>
118 void SetSubscribers(SubscribersT&& value) {
119 m_subscribersHasBeenSet = true;
120 m_subscribers = std::forward<SubscribersT>(value);
121 }
122 template <typename SubscribersT = Aws::Vector<Subscriber>>
123 AnomalySubscription& WithSubscribers(SubscribersT&& value) {
124 SetSubscribers(std::forward<SubscribersT>(value));
125 return *this;
126 }
127 template <typename SubscribersT = Subscriber>
128 AnomalySubscription& AddSubscribers(SubscribersT&& value) {
129 m_subscribersHasBeenSet = true;
130 m_subscribers.emplace_back(std::forward<SubscribersT>(value));
131 return *this;
132 }
134
136
143 inline AnomalySubscriptionFrequency GetFrequency() const { return m_frequency; }
144 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
146 m_frequencyHasBeenSet = true;
147 m_frequency = value;
148 }
150 SetFrequency(value);
151 return *this;
152 }
154
156
159 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
160 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
161 template <typename SubscriptionNameT = Aws::String>
162 void SetSubscriptionName(SubscriptionNameT&& value) {
163 m_subscriptionNameHasBeenSet = true;
164 m_subscriptionName = std::forward<SubscriptionNameT>(value);
165 }
166 template <typename SubscriptionNameT = Aws::String>
167 AnomalySubscription& WithSubscriptionName(SubscriptionNameT&& value) {
168 SetSubscriptionName(std::forward<SubscriptionNameT>(value));
169 return *this;
170 }
172
174
205 inline const Expression& GetThresholdExpression() const { return m_thresholdExpression; }
206 inline bool ThresholdExpressionHasBeenSet() const { return m_thresholdExpressionHasBeenSet; }
207 template <typename ThresholdExpressionT = Expression>
208 void SetThresholdExpression(ThresholdExpressionT&& value) {
209 m_thresholdExpressionHasBeenSet = true;
210 m_thresholdExpression = std::forward<ThresholdExpressionT>(value);
211 }
212 template <typename ThresholdExpressionT = Expression>
213 AnomalySubscription& WithThresholdExpression(ThresholdExpressionT&& value) {
214 SetThresholdExpression(std::forward<ThresholdExpressionT>(value));
215 return *this;
216 }
218 private:
219 Aws::String m_subscriptionArn;
220
221 Aws::String m_accountId;
222
223 Aws::Vector<Aws::String> m_monitorArnList;
224
225 Aws::Vector<Subscriber> m_subscribers;
226
228
229 Aws::String m_subscriptionName;
230
231 Expression m_thresholdExpression;
232 bool m_subscriptionArnHasBeenSet = false;
233 bool m_accountIdHasBeenSet = false;
234 bool m_monitorArnListHasBeenSet = false;
235 bool m_subscribersHasBeenSet = false;
236 bool m_frequencyHasBeenSet = false;
237 bool m_subscriptionNameHasBeenSet = false;
238 bool m_thresholdExpressionHasBeenSet = false;
239};
240
241} // namespace Model
242} // namespace CostExplorer
243} // namespace Aws
AnomalySubscription & WithSubscriptionName(SubscriptionNameT &&value)
const Aws::Vector< Subscriber > & GetSubscribers() const
AWS_COSTEXPLORER_API AnomalySubscription()=default
AWS_COSTEXPLORER_API AnomalySubscription(Aws::Utils::Json::JsonView jsonValue)
AnomalySubscription & WithSubscribers(SubscribersT &&value)
AWS_COSTEXPLORER_API AnomalySubscription & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetThresholdExpression(ThresholdExpressionT &&value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFrequency(AnomalySubscriptionFrequency value)
AnomalySubscription & WithSubscriptionArn(SubscriptionArnT &&value)
AnomalySubscription & WithThresholdExpression(ThresholdExpressionT &&value)
AnomalySubscription & AddMonitorArnList(MonitorArnListT &&value)
AnomalySubscription & WithAccountId(AccountIdT &&value)
AnomalySubscription & WithFrequency(AnomalySubscriptionFrequency value)
const Aws::Vector< Aws::String > & GetMonitorArnList() const
AnomalySubscriptionFrequency GetFrequency() const
AnomalySubscription & AddSubscribers(SubscribersT &&value)
void SetSubscriptionArn(SubscriptionArnT &&value)
AnomalySubscription & WithMonitorArnList(MonitorArnListT &&value)
void SetSubscriptionName(SubscriptionNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue