AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateAnomalySubscriptionRequest.h
1
6#pragma once
7#include <aws/ce/CostExplorerRequest.h>
8#include <aws/ce/CostExplorer_EXPORTS.h>
9#include <aws/ce/model/AnomalySubscriptionFrequency.h>
10#include <aws/ce/model/Expression.h>
11#include <aws/ce/model/Subscriber.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CostExplorer {
19namespace Model {
20
24 public:
25 AWS_COSTEXPLORER_API UpdateAnomalySubscriptionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateAnomalySubscription"; }
32
33 AWS_COSTEXPLORER_API Aws::String SerializePayload() const override;
34
35 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetSubscriptionArn() const { return m_subscriptionArn; }
42 inline bool SubscriptionArnHasBeenSet() const { return m_subscriptionArnHasBeenSet; }
43 template <typename SubscriptionArnT = Aws::String>
44 void SetSubscriptionArn(SubscriptionArnT&& value) {
45 m_subscriptionArnHasBeenSet = true;
46 m_subscriptionArn = std::forward<SubscriptionArnT>(value);
47 }
48 template <typename SubscriptionArnT = Aws::String>
50 SetSubscriptionArn(std::forward<SubscriptionArnT>(value));
51 return *this;
52 }
54
56
60 inline AnomalySubscriptionFrequency GetFrequency() const { return m_frequency; }
61 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
63 m_frequencyHasBeenSet = true;
64 m_frequency = value;
65 }
67 SetFrequency(value);
68 return *this;
69 }
71
73
76 inline const Aws::Vector<Aws::String>& GetMonitorArnList() const { return m_monitorArnList; }
77 inline bool MonitorArnListHasBeenSet() const { return m_monitorArnListHasBeenSet; }
78 template <typename MonitorArnListT = Aws::Vector<Aws::String>>
79 void SetMonitorArnList(MonitorArnListT&& value) {
80 m_monitorArnListHasBeenSet = true;
81 m_monitorArnList = std::forward<MonitorArnListT>(value);
82 }
83 template <typename MonitorArnListT = Aws::Vector<Aws::String>>
85 SetMonitorArnList(std::forward<MonitorArnListT>(value));
86 return *this;
87 }
88 template <typename MonitorArnListT = Aws::String>
90 m_monitorArnListHasBeenSet = true;
91 m_monitorArnList.emplace_back(std::forward<MonitorArnListT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Vector<Subscriber>& GetSubscribers() const { return m_subscribers; }
101 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
102 template <typename SubscribersT = Aws::Vector<Subscriber>>
103 void SetSubscribers(SubscribersT&& value) {
104 m_subscribersHasBeenSet = true;
105 m_subscribers = std::forward<SubscribersT>(value);
106 }
107 template <typename SubscribersT = Aws::Vector<Subscriber>>
109 SetSubscribers(std::forward<SubscribersT>(value));
110 return *this;
111 }
112 template <typename SubscribersT = Subscriber>
114 m_subscribersHasBeenSet = true;
115 m_subscribers.emplace_back(std::forward<SubscribersT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
125 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
126 template <typename SubscriptionNameT = Aws::String>
127 void SetSubscriptionName(SubscriptionNameT&& value) {
128 m_subscriptionNameHasBeenSet = true;
129 m_subscriptionName = std::forward<SubscriptionNameT>(value);
130 }
131 template <typename SubscriptionNameT = Aws::String>
133 SetSubscriptionName(std::forward<SubscriptionNameT>(value));
134 return *this;
135 }
137
139
169 inline const Expression& GetThresholdExpression() const { return m_thresholdExpression; }
170 inline bool ThresholdExpressionHasBeenSet() const { return m_thresholdExpressionHasBeenSet; }
171 template <typename ThresholdExpressionT = Expression>
172 void SetThresholdExpression(ThresholdExpressionT&& value) {
173 m_thresholdExpressionHasBeenSet = true;
174 m_thresholdExpression = std::forward<ThresholdExpressionT>(value);
175 }
176 template <typename ThresholdExpressionT = Expression>
178 SetThresholdExpression(std::forward<ThresholdExpressionT>(value));
179 return *this;
180 }
182 private:
183 Aws::String m_subscriptionArn;
184
186
187 Aws::Vector<Aws::String> m_monitorArnList;
188
189 Aws::Vector<Subscriber> m_subscribers;
190
191 Aws::String m_subscriptionName;
192
193 Expression m_thresholdExpression;
194 bool m_subscriptionArnHasBeenSet = false;
195 bool m_frequencyHasBeenSet = false;
196 bool m_monitorArnListHasBeenSet = false;
197 bool m_subscribersHasBeenSet = false;
198 bool m_subscriptionNameHasBeenSet = false;
199 bool m_thresholdExpressionHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace CostExplorer
204} // 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