AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSubscriptionArn(const Aws::String& value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn = value; }
64 inline void SetSubscriptionArn(Aws::String&& value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn = std::move(value); }
65 inline void SetSubscriptionArn(const char* value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn.assign(value); }
66 inline AnomalySubscription& WithSubscriptionArn(const Aws::String& value) { SetSubscriptionArn(value); return *this;}
67 inline AnomalySubscription& WithSubscriptionArn(Aws::String&& value) { SetSubscriptionArn(std::move(value)); return *this;}
68 inline AnomalySubscription& WithSubscriptionArn(const char* value) { SetSubscriptionArn(value); return *this;}
70
72
75 inline const Aws::String& GetAccountId() const{ return m_accountId; }
76 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
77 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
78 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
79 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
80 inline AnomalySubscription& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
81 inline AnomalySubscription& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
82 inline AnomalySubscription& WithAccountId(const char* value) { SetAccountId(value); return *this;}
84
86
89 inline const Aws::Vector<Aws::String>& GetMonitorArnList() const{ return m_monitorArnList; }
90 inline bool MonitorArnListHasBeenSet() const { return m_monitorArnListHasBeenSet; }
91 inline void SetMonitorArnList(const Aws::Vector<Aws::String>& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList = value; }
92 inline void SetMonitorArnList(Aws::Vector<Aws::String>&& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList = std::move(value); }
94 inline AnomalySubscription& WithMonitorArnList(Aws::Vector<Aws::String>&& value) { SetMonitorArnList(std::move(value)); return *this;}
95 inline AnomalySubscription& AddMonitorArnList(const Aws::String& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList.push_back(value); return *this; }
96 inline AnomalySubscription& AddMonitorArnList(Aws::String&& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList.push_back(std::move(value)); return *this; }
97 inline AnomalySubscription& AddMonitorArnList(const char* value) { m_monitorArnListHasBeenSet = true; m_monitorArnList.push_back(value); return *this; }
99
101
104 inline const Aws::Vector<Subscriber>& GetSubscribers() const{ return m_subscribers; }
105 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
106 inline void SetSubscribers(const Aws::Vector<Subscriber>& value) { m_subscribersHasBeenSet = true; m_subscribers = value; }
107 inline void SetSubscribers(Aws::Vector<Subscriber>&& value) { m_subscribersHasBeenSet = true; m_subscribers = std::move(value); }
108 inline AnomalySubscription& WithSubscribers(const Aws::Vector<Subscriber>& value) { SetSubscribers(value); return *this;}
109 inline AnomalySubscription& WithSubscribers(Aws::Vector<Subscriber>&& value) { SetSubscribers(std::move(value)); return *this;}
110 inline AnomalySubscription& AddSubscribers(const Subscriber& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(value); return *this; }
111 inline AnomalySubscription& AddSubscribers(Subscriber&& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(std::move(value)); return *this; }
113
115
122 inline const AnomalySubscriptionFrequency& GetFrequency() const{ return m_frequency; }
123 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
124 inline void SetFrequency(const AnomalySubscriptionFrequency& value) { m_frequencyHasBeenSet = true; m_frequency = value; }
125 inline void SetFrequency(AnomalySubscriptionFrequency&& value) { m_frequencyHasBeenSet = true; m_frequency = std::move(value); }
126 inline AnomalySubscription& WithFrequency(const AnomalySubscriptionFrequency& value) { SetFrequency(value); return *this;}
127 inline AnomalySubscription& WithFrequency(AnomalySubscriptionFrequency&& value) { SetFrequency(std::move(value)); return *this;}
129
131
134 inline const Aws::String& GetSubscriptionName() const{ return m_subscriptionName; }
135 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
136 inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
137 inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
138 inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
139 inline AnomalySubscription& WithSubscriptionName(const Aws::String& value) { SetSubscriptionName(value); return *this;}
140 inline AnomalySubscription& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;}
141 inline AnomalySubscription& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
143
145
176 inline const Expression& GetThresholdExpression() const{ return m_thresholdExpression; }
177 inline bool ThresholdExpressionHasBeenSet() const { return m_thresholdExpressionHasBeenSet; }
178 inline void SetThresholdExpression(const Expression& value) { m_thresholdExpressionHasBeenSet = true; m_thresholdExpression = value; }
179 inline void SetThresholdExpression(Expression&& value) { m_thresholdExpressionHasBeenSet = true; m_thresholdExpression = std::move(value); }
181 inline AnomalySubscription& WithThresholdExpression(Expression&& value) { SetThresholdExpression(std::move(value)); return *this;}
183 private:
184
185 Aws::String m_subscriptionArn;
186 bool m_subscriptionArnHasBeenSet = false;
187
188 Aws::String m_accountId;
189 bool m_accountIdHasBeenSet = false;
190
191 Aws::Vector<Aws::String> m_monitorArnList;
192 bool m_monitorArnListHasBeenSet = false;
193
194 Aws::Vector<Subscriber> m_subscribers;
195 bool m_subscribersHasBeenSet = false;
196
198 bool m_frequencyHasBeenSet = false;
199
200 Aws::String m_subscriptionName;
201 bool m_subscriptionNameHasBeenSet = false;
202
203 Expression m_thresholdExpression;
204 bool m_thresholdExpressionHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace CostExplorer
209} // namespace Aws
void SetMonitorArnList(const Aws::Vector< Aws::String > &value)
AnomalySubscription & WithSubscriptionArn(Aws::String &&value)
AnomalySubscription & WithSubscribers(const Aws::Vector< Subscriber > &value)
AnomalySubscription & WithSubscriptionArn(const char *value)
const Aws::Vector< Subscriber > & GetSubscribers() const
AWS_COSTEXPLORER_API AnomalySubscription(Aws::Utils::Json::JsonView jsonValue)
AnomalySubscription & WithSubscriptionName(Aws::String &&value)
const AnomalySubscriptionFrequency & GetFrequency() const
AnomalySubscription & AddMonitorArnList(const Aws::String &value)
AWS_COSTEXPLORER_API AnomalySubscription & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSubscriptionArn(const Aws::String &value)
AnomalySubscription & WithMonitorArnList(Aws::Vector< Aws::String > &&value)
AnomalySubscription & WithAccountId(const Aws::String &value)
AnomalySubscription & WithAccountId(const char *value)
AnomalySubscription & WithMonitorArnList(const Aws::Vector< Aws::String > &value)
void SetSubscribers(Aws::Vector< Subscriber > &&value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
AnomalySubscription & AddSubscribers(const Subscriber &value)
void SetThresholdExpression(const Expression &value)
const Aws::Vector< Aws::String > & GetMonitorArnList() const
AnomalySubscription & WithFrequency(const AnomalySubscriptionFrequency &value)
void SetSubscribers(const Aws::Vector< Subscriber > &value)
AnomalySubscription & WithFrequency(AnomalySubscriptionFrequency &&value)
AnomalySubscription & WithThresholdExpression(const Expression &value)
AnomalySubscription & WithSubscriptionArn(const Aws::String &value)
void SetFrequency(AnomalySubscriptionFrequency &&value)
AnomalySubscription & AddMonitorArnList(Aws::String &&value)
AnomalySubscription & AddSubscribers(Subscriber &&value)
void SetFrequency(const AnomalySubscriptionFrequency &value)
void SetMonitorArnList(Aws::Vector< Aws::String > &&value)
AnomalySubscription & WithSubscriptionName(const Aws::String &value)
AnomalySubscription & WithThresholdExpression(Expression &&value)
void SetSubscriptionName(const Aws::String &value)
AnomalySubscription & WithSubscriptionName(const char *value)
AnomalySubscription & AddMonitorArnList(const char *value)
AnomalySubscription & WithAccountId(Aws::String &&value)
AnomalySubscription & WithSubscribers(Aws::Vector< Subscriber > &&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