AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AnomalySubscription.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ce/model/AnomalySubscriptionFrequency.h>
11#include <aws/ce/model/Expression.h>
12#include <aws/ce/model/Subscriber.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CostExplorer
26{
27namespace Model
28{
29
49 {
50 public:
51 AWS_COSTEXPLORER_API AnomalySubscription() = default;
52 AWS_COSTEXPLORER_API AnomalySubscription(Aws::Utils::Json::JsonView jsonValue);
54 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
55
56
58
61 inline const Aws::String& GetSubscriptionArn() const { return m_subscriptionArn; }
62 inline bool SubscriptionArnHasBeenSet() const { return m_subscriptionArnHasBeenSet; }
63 template<typename SubscriptionArnT = Aws::String>
64 void SetSubscriptionArn(SubscriptionArnT&& value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn = std::forward<SubscriptionArnT>(value); }
65 template<typename SubscriptionArnT = Aws::String>
66 AnomalySubscription& WithSubscriptionArn(SubscriptionArnT&& value) { SetSubscriptionArn(std::forward<SubscriptionArnT>(value)); return *this;}
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) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
77 template<typename AccountIdT = Aws::String>
78 AnomalySubscription& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
80
82
85 inline const Aws::Vector<Aws::String>& GetMonitorArnList() const { return m_monitorArnList; }
86 inline bool MonitorArnListHasBeenSet() const { return m_monitorArnListHasBeenSet; }
87 template<typename MonitorArnListT = Aws::Vector<Aws::String>>
88 void SetMonitorArnList(MonitorArnListT&& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList = std::forward<MonitorArnListT>(value); }
89 template<typename MonitorArnListT = Aws::Vector<Aws::String>>
90 AnomalySubscription& WithMonitorArnList(MonitorArnListT&& value) { SetMonitorArnList(std::forward<MonitorArnListT>(value)); return *this;}
91 template<typename MonitorArnListT = Aws::String>
92 AnomalySubscription& AddMonitorArnList(MonitorArnListT&& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList.emplace_back(std::forward<MonitorArnListT>(value)); return *this; }
94
96
99 inline const Aws::Vector<Subscriber>& GetSubscribers() const { return m_subscribers; }
100 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
101 template<typename SubscribersT = Aws::Vector<Subscriber>>
102 void SetSubscribers(SubscribersT&& value) { m_subscribersHasBeenSet = true; m_subscribers = std::forward<SubscribersT>(value); }
103 template<typename SubscribersT = Aws::Vector<Subscriber>>
104 AnomalySubscription& WithSubscribers(SubscribersT&& value) { SetSubscribers(std::forward<SubscribersT>(value)); return *this;}
105 template<typename SubscribersT = Subscriber>
106 AnomalySubscription& AddSubscribers(SubscribersT&& value) { m_subscribersHasBeenSet = true; m_subscribers.emplace_back(std::forward<SubscribersT>(value)); return *this; }
108
110
117 inline AnomalySubscriptionFrequency GetFrequency() const { return m_frequency; }
118 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
119 inline void SetFrequency(AnomalySubscriptionFrequency value) { m_frequencyHasBeenSet = true; m_frequency = value; }
122
124
127 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
128 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
129 template<typename SubscriptionNameT = Aws::String>
130 void SetSubscriptionName(SubscriptionNameT&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::forward<SubscriptionNameT>(value); }
131 template<typename SubscriptionNameT = Aws::String>
132 AnomalySubscription& WithSubscriptionName(SubscriptionNameT&& value) { SetSubscriptionName(std::forward<SubscriptionNameT>(value)); return *this;}
134
136
167 inline const Expression& GetThresholdExpression() const { return m_thresholdExpression; }
168 inline bool ThresholdExpressionHasBeenSet() const { return m_thresholdExpressionHasBeenSet; }
169 template<typename ThresholdExpressionT = Expression>
170 void SetThresholdExpression(ThresholdExpressionT&& value) { m_thresholdExpressionHasBeenSet = true; m_thresholdExpression = std::forward<ThresholdExpressionT>(value); }
171 template<typename ThresholdExpressionT = Expression>
172 AnomalySubscription& WithThresholdExpression(ThresholdExpressionT&& value) { SetThresholdExpression(std::forward<ThresholdExpressionT>(value)); return *this;}
174 private:
175
176 Aws::String m_subscriptionArn;
177 bool m_subscriptionArnHasBeenSet = false;
178
179 Aws::String m_accountId;
180 bool m_accountIdHasBeenSet = false;
181
182 Aws::Vector<Aws::String> m_monitorArnList;
183 bool m_monitorArnListHasBeenSet = false;
184
185 Aws::Vector<Subscriber> m_subscribers;
186 bool m_subscribersHasBeenSet = false;
187
189 bool m_frequencyHasBeenSet = false;
190
191 Aws::String m_subscriptionName;
192 bool m_subscriptionNameHasBeenSet = false;
193
194 Expression m_thresholdExpression;
195 bool m_thresholdExpressionHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace CostExplorer
200} // 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