AWS SDK for C++  1.9.1
AWS SDK for C++
UpdateAnomalySubscriptionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace CostExplorer
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "UpdateAnomalySubscription"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetSubscriptionArn() const{ return m_subscriptionArn; }
44 
48  inline bool SubscriptionArnHasBeenSet() const { return m_subscriptionArnHasBeenSet; }
49 
53  inline void SetSubscriptionArn(const Aws::String& value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn = value; }
54 
58  inline void SetSubscriptionArn(Aws::String&& value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn = std::move(value); }
59 
63  inline void SetSubscriptionArn(const char* value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn.assign(value); }
64 
68  inline UpdateAnomalySubscriptionRequest& WithSubscriptionArn(const Aws::String& value) { SetSubscriptionArn(value); return *this;}
69 
73  inline UpdateAnomalySubscriptionRequest& WithSubscriptionArn(Aws::String&& value) { SetSubscriptionArn(std::move(value)); return *this;}
74 
78  inline UpdateAnomalySubscriptionRequest& WithSubscriptionArn(const char* value) { SetSubscriptionArn(value); return *this;}
79 
80 
84  inline double GetThreshold() const{ return m_threshold; }
85 
89  inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
90 
94  inline void SetThreshold(double value) { m_thresholdHasBeenSet = true; m_threshold = value; }
95 
99  inline UpdateAnomalySubscriptionRequest& WithThreshold(double value) { SetThreshold(value); return *this;}
100 
101 
106  inline const AnomalySubscriptionFrequency& GetFrequency() const{ return m_frequency; }
107 
112  inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
113 
118  inline void SetFrequency(const AnomalySubscriptionFrequency& value) { m_frequencyHasBeenSet = true; m_frequency = value; }
119 
124  inline void SetFrequency(AnomalySubscriptionFrequency&& value) { m_frequencyHasBeenSet = true; m_frequency = std::move(value); }
125 
130  inline UpdateAnomalySubscriptionRequest& WithFrequency(const AnomalySubscriptionFrequency& value) { SetFrequency(value); return *this;}
131 
136  inline UpdateAnomalySubscriptionRequest& WithFrequency(AnomalySubscriptionFrequency&& value) { SetFrequency(std::move(value)); return *this;}
137 
138 
142  inline const Aws::Vector<Aws::String>& GetMonitorArnList() const{ return m_monitorArnList; }
143 
147  inline bool MonitorArnListHasBeenSet() const { return m_monitorArnListHasBeenSet; }
148 
152  inline void SetMonitorArnList(const Aws::Vector<Aws::String>& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList = value; }
153 
157  inline void SetMonitorArnList(Aws::Vector<Aws::String>&& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList = std::move(value); }
158 
162  inline UpdateAnomalySubscriptionRequest& WithMonitorArnList(const Aws::Vector<Aws::String>& value) { SetMonitorArnList(value); return *this;}
163 
167  inline UpdateAnomalySubscriptionRequest& WithMonitorArnList(Aws::Vector<Aws::String>&& value) { SetMonitorArnList(std::move(value)); return *this;}
168 
172  inline UpdateAnomalySubscriptionRequest& AddMonitorArnList(const Aws::String& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList.push_back(value); return *this; }
173 
177  inline UpdateAnomalySubscriptionRequest& AddMonitorArnList(Aws::String&& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList.push_back(std::move(value)); return *this; }
178 
182  inline UpdateAnomalySubscriptionRequest& AddMonitorArnList(const char* value) { m_monitorArnListHasBeenSet = true; m_monitorArnList.push_back(value); return *this; }
183 
184 
188  inline const Aws::Vector<Subscriber>& GetSubscribers() const{ return m_subscribers; }
189 
193  inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
194 
198  inline void SetSubscribers(const Aws::Vector<Subscriber>& value) { m_subscribersHasBeenSet = true; m_subscribers = value; }
199 
203  inline void SetSubscribers(Aws::Vector<Subscriber>&& value) { m_subscribersHasBeenSet = true; m_subscribers = std::move(value); }
204 
208  inline UpdateAnomalySubscriptionRequest& WithSubscribers(const Aws::Vector<Subscriber>& value) { SetSubscribers(value); return *this;}
209 
213  inline UpdateAnomalySubscriptionRequest& WithSubscribers(Aws::Vector<Subscriber>&& value) { SetSubscribers(std::move(value)); return *this;}
214 
218  inline UpdateAnomalySubscriptionRequest& AddSubscribers(const Subscriber& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(value); return *this; }
219 
223  inline UpdateAnomalySubscriptionRequest& AddSubscribers(Subscriber&& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(std::move(value)); return *this; }
224 
225 
229  inline const Aws::String& GetSubscriptionName() const{ return m_subscriptionName; }
230 
234  inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
235 
239  inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
240 
244  inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
245 
249  inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
250 
254  inline UpdateAnomalySubscriptionRequest& WithSubscriptionName(const Aws::String& value) { SetSubscriptionName(value); return *this;}
255 
259  inline UpdateAnomalySubscriptionRequest& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;}
260 
264  inline UpdateAnomalySubscriptionRequest& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
265 
266  private:
267 
268  Aws::String m_subscriptionArn;
269  bool m_subscriptionArnHasBeenSet;
270 
271  double m_threshold;
272  bool m_thresholdHasBeenSet;
273 
274  AnomalySubscriptionFrequency m_frequency;
275  bool m_frequencyHasBeenSet;
276 
277  Aws::Vector<Aws::String> m_monitorArnList;
278  bool m_monitorArnListHasBeenSet;
279 
280  Aws::Vector<Subscriber> m_subscribers;
281  bool m_subscribersHasBeenSet;
282 
283  Aws::String m_subscriptionName;
284  bool m_subscriptionNameHasBeenSet;
285  };
286 
287 } // namespace Model
288 } // namespace CostExplorer
289 } // namespace Aws
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::SetSubscriptionArn
void SetSubscriptionArn(const Aws::String &value)
Definition: UpdateAnomalySubscriptionRequest.h:53
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(Aws::String &&value)
Definition: UpdateAnomalySubscriptionRequest.h:244
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::WithSubscriptionName
UpdateAnomalySubscriptionRequest & WithSubscriptionName(Aws::String &&value)
Definition: UpdateAnomalySubscriptionRequest.h:259
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::AddSubscribers
UpdateAnomalySubscriptionRequest & AddSubscribers(Subscriber &&value)
Definition: UpdateAnomalySubscriptionRequest.h:223
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::AddSubscribers
UpdateAnomalySubscriptionRequest & AddSubscribers(const Subscriber &value)
Definition: UpdateAnomalySubscriptionRequest.h:218
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::WithSubscriptionArn
UpdateAnomalySubscriptionRequest & WithSubscriptionArn(Aws::String &&value)
Definition: UpdateAnomalySubscriptionRequest.h:73
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::GetMonitorArnList
const Aws::Vector< Aws::String > & GetMonitorArnList() const
Definition: UpdateAnomalySubscriptionRequest.h:142
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::WithSubscriptionArn
UpdateAnomalySubscriptionRequest & WithSubscriptionArn(const char *value)
Definition: UpdateAnomalySubscriptionRequest.h:78
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::WithSubscribers
UpdateAnomalySubscriptionRequest & WithSubscribers(Aws::Vector< Subscriber > &&value)
Definition: UpdateAnomalySubscriptionRequest.h:213
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::SetSubscriptionArn
void SetSubscriptionArn(Aws::String &&value)
Definition: UpdateAnomalySubscriptionRequest.h:58
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::GetSubscribers
const Aws::Vector< Subscriber > & GetSubscribers() const
Definition: UpdateAnomalySubscriptionRequest.h:188
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::WithFrequency
UpdateAnomalySubscriptionRequest & WithFrequency(const AnomalySubscriptionFrequency &value)
Definition: UpdateAnomalySubscriptionRequest.h:130
CostExplorerRequest.h
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::SubscriptionArnHasBeenSet
bool SubscriptionArnHasBeenSet() const
Definition: UpdateAnomalySubscriptionRequest.h:48
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest
Definition: UpdateAnomalySubscriptionRequest.h:25
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::AddMonitorArnList
UpdateAnomalySubscriptionRequest & AddMonitorArnList(const char *value)
Definition: UpdateAnomalySubscriptionRequest.h:182
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::AddMonitorArnList
UpdateAnomalySubscriptionRequest & AddMonitorArnList(Aws::String &&value)
Definition: UpdateAnomalySubscriptionRequest.h:177
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(const Aws::String &value)
Definition: UpdateAnomalySubscriptionRequest.h:239
AWSVector.h
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::SetThreshold
void SetThreshold(double value)
Definition: UpdateAnomalySubscriptionRequest.h:94
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::WithSubscribers
UpdateAnomalySubscriptionRequest & WithSubscribers(const Aws::Vector< Subscriber > &value)
Definition: UpdateAnomalySubscriptionRequest.h:208
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::AddMonitorArnList
UpdateAnomalySubscriptionRequest & AddMonitorArnList(const Aws::String &value)
Definition: UpdateAnomalySubscriptionRequest.h:172
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::WithThreshold
UpdateAnomalySubscriptionRequest & WithThreshold(double value)
Definition: UpdateAnomalySubscriptionRequest.h:99
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::WithFrequency
UpdateAnomalySubscriptionRequest & WithFrequency(AnomalySubscriptionFrequency &&value)
Definition: UpdateAnomalySubscriptionRequest.h:136
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::SubscribersHasBeenSet
bool SubscribersHasBeenSet() const
Definition: UpdateAnomalySubscriptionRequest.h:193
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::FrequencyHasBeenSet
bool FrequencyHasBeenSet() const
Definition: UpdateAnomalySubscriptionRequest.h:112
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::SetMonitorArnList
void SetMonitorArnList(Aws::Vector< Aws::String > &&value)
Definition: UpdateAnomalySubscriptionRequest.h:157
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::WithSubscriptionName
UpdateAnomalySubscriptionRequest & WithSubscriptionName(const Aws::String &value)
Definition: UpdateAnomalySubscriptionRequest.h:254
Aws::CostExplorer::Model::Subscriber
Definition: Subscriber.h:35
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::GetSubscriptionName
const Aws::String & GetSubscriptionName() const
Definition: UpdateAnomalySubscriptionRequest.h:229
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::WithSubscriptionArn
UpdateAnomalySubscriptionRequest & WithSubscriptionArn(const Aws::String &value)
Definition: UpdateAnomalySubscriptionRequest.h:68
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::GetThreshold
double GetThreshold() const
Definition: UpdateAnomalySubscriptionRequest.h:84
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::ThresholdHasBeenSet
bool ThresholdHasBeenSet() const
Definition: UpdateAnomalySubscriptionRequest.h:89
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::WithSubscriptionName
UpdateAnomalySubscriptionRequest & WithSubscriptionName(const char *value)
Definition: UpdateAnomalySubscriptionRequest.h:264
Aws::CostExplorer::Model::AnomalySubscriptionFrequency
AnomalySubscriptionFrequency
Definition: AnomalySubscriptionFrequency.h:17
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::SetFrequency
void SetFrequency(const AnomalySubscriptionFrequency &value)
Definition: UpdateAnomalySubscriptionRequest.h:118
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::MonitorArnListHasBeenSet
bool MonitorArnListHasBeenSet() const
Definition: UpdateAnomalySubscriptionRequest.h:147
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::WithMonitorArnList
UpdateAnomalySubscriptionRequest & WithMonitorArnList(Aws::Vector< Aws::String > &&value)
Definition: UpdateAnomalySubscriptionRequest.h:167
AWSString.h
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::GetFrequency
const AnomalySubscriptionFrequency & GetFrequency() const
Definition: UpdateAnomalySubscriptionRequest.h:106
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::SubscriptionNameHasBeenSet
bool SubscriptionNameHasBeenSet() const
Definition: UpdateAnomalySubscriptionRequest.h:234
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateAnomalySubscriptionRequest.h:33
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::SetSubscriptionArn
void SetSubscriptionArn(const char *value)
Definition: UpdateAnomalySubscriptionRequest.h:63
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::SetMonitorArnList
void SetMonitorArnList(const Aws::Vector< Aws::String > &value)
Definition: UpdateAnomalySubscriptionRequest.h:152
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(const char *value)
Definition: UpdateAnomalySubscriptionRequest.h:249
Aws
Definition: AccessManagementClient.h:15
Subscriber.h
AnomalySubscriptionFrequency.h
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::GetSubscriptionArn
const Aws::String & GetSubscriptionArn() const
Definition: UpdateAnomalySubscriptionRequest.h:43
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::SetSubscribers
void SetSubscribers(const Aws::Vector< Subscriber > &value)
Definition: UpdateAnomalySubscriptionRequest.h:198
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::SetFrequency
void SetFrequency(AnomalySubscriptionFrequency &&value)
Definition: UpdateAnomalySubscriptionRequest.h:124
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::WithMonitorArnList
UpdateAnomalySubscriptionRequest & WithMonitorArnList(const Aws::Vector< Aws::String > &value)
Definition: UpdateAnomalySubscriptionRequest.h:162
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::UpdateAnomalySubscriptionRequest
UpdateAnomalySubscriptionRequest()
Aws::CostExplorer::Model::UpdateAnomalySubscriptionRequest::SetSubscribers
void SetSubscribers(Aws::Vector< Subscriber > &&value)
Definition: UpdateAnomalySubscriptionRequest.h:203