AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateAnomalySubscriptionRequest.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/CostExplorerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ce/model/AnomalySubscriptionFrequency.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ce/model/Expression.h>
13#include <aws/ce/model/Subscriber.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CostExplorer
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_COSTEXPLORER_API UpdateAnomalySubscriptionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateAnomalySubscription"; }
35
36 AWS_COSTEXPLORER_API Aws::String SerializePayload() const override;
37
38 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetSubscriptionArn() const { return m_subscriptionArn; }
46 inline bool SubscriptionArnHasBeenSet() const { return m_subscriptionArnHasBeenSet; }
47 template<typename SubscriptionArnT = Aws::String>
48 void SetSubscriptionArn(SubscriptionArnT&& value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn = std::forward<SubscriptionArnT>(value); }
49 template<typename SubscriptionArnT = Aws::String>
50 UpdateAnomalySubscriptionRequest& WithSubscriptionArn(SubscriptionArnT&& value) { SetSubscriptionArn(std::forward<SubscriptionArnT>(value)); return *this;}
52
54
58 inline AnomalySubscriptionFrequency GetFrequency() const { return m_frequency; }
59 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
60 inline void SetFrequency(AnomalySubscriptionFrequency value) { m_frequencyHasBeenSet = true; m_frequency = value; }
63
65
68 inline const Aws::Vector<Aws::String>& GetMonitorArnList() const { return m_monitorArnList; }
69 inline bool MonitorArnListHasBeenSet() const { return m_monitorArnListHasBeenSet; }
70 template<typename MonitorArnListT = Aws::Vector<Aws::String>>
71 void SetMonitorArnList(MonitorArnListT&& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList = std::forward<MonitorArnListT>(value); }
72 template<typename MonitorArnListT = Aws::Vector<Aws::String>>
73 UpdateAnomalySubscriptionRequest& WithMonitorArnList(MonitorArnListT&& value) { SetMonitorArnList(std::forward<MonitorArnListT>(value)); return *this;}
74 template<typename MonitorArnListT = Aws::String>
75 UpdateAnomalySubscriptionRequest& AddMonitorArnList(MonitorArnListT&& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList.emplace_back(std::forward<MonitorArnListT>(value)); return *this; }
77
79
82 inline const Aws::Vector<Subscriber>& GetSubscribers() const { return m_subscribers; }
83 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
84 template<typename SubscribersT = Aws::Vector<Subscriber>>
85 void SetSubscribers(SubscribersT&& value) { m_subscribersHasBeenSet = true; m_subscribers = std::forward<SubscribersT>(value); }
86 template<typename SubscribersT = Aws::Vector<Subscriber>>
87 UpdateAnomalySubscriptionRequest& WithSubscribers(SubscribersT&& value) { SetSubscribers(std::forward<SubscribersT>(value)); return *this;}
88 template<typename SubscribersT = Subscriber>
89 UpdateAnomalySubscriptionRequest& AddSubscribers(SubscribersT&& value) { m_subscribersHasBeenSet = true; m_subscribers.emplace_back(std::forward<SubscribersT>(value)); return *this; }
91
93
96 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
97 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
98 template<typename SubscriptionNameT = Aws::String>
99 void SetSubscriptionName(SubscriptionNameT&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::forward<SubscriptionNameT>(value); }
100 template<typename SubscriptionNameT = Aws::String>
101 UpdateAnomalySubscriptionRequest& WithSubscriptionName(SubscriptionNameT&& value) { SetSubscriptionName(std::forward<SubscriptionNameT>(value)); return *this;}
103
105
135 inline const Expression& GetThresholdExpression() const { return m_thresholdExpression; }
136 inline bool ThresholdExpressionHasBeenSet() const { return m_thresholdExpressionHasBeenSet; }
137 template<typename ThresholdExpressionT = Expression>
138 void SetThresholdExpression(ThresholdExpressionT&& value) { m_thresholdExpressionHasBeenSet = true; m_thresholdExpression = std::forward<ThresholdExpressionT>(value); }
139 template<typename ThresholdExpressionT = Expression>
140 UpdateAnomalySubscriptionRequest& WithThresholdExpression(ThresholdExpressionT&& value) { SetThresholdExpression(std::forward<ThresholdExpressionT>(value)); return *this;}
142 private:
143
144 Aws::String m_subscriptionArn;
145 bool m_subscriptionArnHasBeenSet = false;
146
148 bool m_frequencyHasBeenSet = false;
149
150 Aws::Vector<Aws::String> m_monitorArnList;
151 bool m_monitorArnListHasBeenSet = false;
152
153 Aws::Vector<Subscriber> m_subscribers;
154 bool m_subscribersHasBeenSet = false;
155
156 Aws::String m_subscriptionName;
157 bool m_subscriptionNameHasBeenSet = false;
158
159 Expression m_thresholdExpression;
160 bool m_thresholdExpressionHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace CostExplorer
165} // namespace Aws
AWS_COSTEXPLORER_API UpdateAnomalySubscriptionRequest()=default
UpdateAnomalySubscriptionRequest & AddMonitorArnList(MonitorArnListT &&value)
UpdateAnomalySubscriptionRequest & AddSubscribers(SubscribersT &&value)
UpdateAnomalySubscriptionRequest & WithSubscriptionArn(SubscriptionArnT &&value)
UpdateAnomalySubscriptionRequest & WithSubscribers(SubscribersT &&value)
UpdateAnomalySubscriptionRequest & WithMonitorArnList(MonitorArnListT &&value)
UpdateAnomalySubscriptionRequest & WithThresholdExpression(ThresholdExpressionT &&value)
UpdateAnomalySubscriptionRequest & WithSubscriptionName(SubscriptionNameT &&value)
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateAnomalySubscriptionRequest & WithFrequency(AnomalySubscriptionFrequency value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector