AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSubscriptionArn(const Aws::String& value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn = value; }
48 inline void SetSubscriptionArn(Aws::String&& value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn = std::move(value); }
49 inline void SetSubscriptionArn(const char* value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn.assign(value); }
51 inline UpdateAnomalySubscriptionRequest& WithSubscriptionArn(Aws::String&& value) { SetSubscriptionArn(std::move(value)); return *this;}
52 inline UpdateAnomalySubscriptionRequest& WithSubscriptionArn(const char* value) { SetSubscriptionArn(value); return *this;}
54
56
60 inline const AnomalySubscriptionFrequency& GetFrequency() const{ return m_frequency; }
61 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
62 inline void SetFrequency(const AnomalySubscriptionFrequency& value) { m_frequencyHasBeenSet = true; m_frequency = value; }
63 inline void SetFrequency(AnomalySubscriptionFrequency&& value) { m_frequencyHasBeenSet = true; m_frequency = std::move(value); }
67
69
72 inline const Aws::Vector<Aws::String>& GetMonitorArnList() const{ return m_monitorArnList; }
73 inline bool MonitorArnListHasBeenSet() const { return m_monitorArnListHasBeenSet; }
74 inline void SetMonitorArnList(const Aws::Vector<Aws::String>& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList = value; }
75 inline void SetMonitorArnList(Aws::Vector<Aws::String>&& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList = std::move(value); }
78 inline UpdateAnomalySubscriptionRequest& AddMonitorArnList(const Aws::String& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList.push_back(value); return *this; }
79 inline UpdateAnomalySubscriptionRequest& AddMonitorArnList(Aws::String&& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList.push_back(std::move(value)); return *this; }
80 inline UpdateAnomalySubscriptionRequest& AddMonitorArnList(const char* value) { m_monitorArnListHasBeenSet = true; m_monitorArnList.push_back(value); return *this; }
82
84
87 inline const Aws::Vector<Subscriber>& GetSubscribers() const{ return m_subscribers; }
88 inline bool SubscribersHasBeenSet() const { return m_subscribersHasBeenSet; }
89 inline void SetSubscribers(const Aws::Vector<Subscriber>& value) { m_subscribersHasBeenSet = true; m_subscribers = value; }
90 inline void SetSubscribers(Aws::Vector<Subscriber>&& value) { m_subscribersHasBeenSet = true; m_subscribers = std::move(value); }
93 inline UpdateAnomalySubscriptionRequest& AddSubscribers(const Subscriber& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(value); return *this; }
94 inline UpdateAnomalySubscriptionRequest& AddSubscribers(Subscriber&& value) { m_subscribersHasBeenSet = true; m_subscribers.push_back(std::move(value)); return *this; }
96
98
101 inline const Aws::String& GetSubscriptionName() const{ return m_subscriptionName; }
102 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
103 inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
104 inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
105 inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
108 inline UpdateAnomalySubscriptionRequest& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
110
112
142 inline const Expression& GetThresholdExpression() const{ return m_thresholdExpression; }
143 inline bool ThresholdExpressionHasBeenSet() const { return m_thresholdExpressionHasBeenSet; }
144 inline void SetThresholdExpression(const Expression& value) { m_thresholdExpressionHasBeenSet = true; m_thresholdExpression = value; }
145 inline void SetThresholdExpression(Expression&& value) { m_thresholdExpressionHasBeenSet = true; m_thresholdExpression = std::move(value); }
149 private:
150
151 Aws::String m_subscriptionArn;
152 bool m_subscriptionArnHasBeenSet = false;
153
155 bool m_frequencyHasBeenSet = false;
156
157 Aws::Vector<Aws::String> m_monitorArnList;
158 bool m_monitorArnListHasBeenSet = false;
159
160 Aws::Vector<Subscriber> m_subscribers;
161 bool m_subscribersHasBeenSet = false;
162
163 Aws::String m_subscriptionName;
164 bool m_subscriptionNameHasBeenSet = false;
165
166 Expression m_thresholdExpression;
167 bool m_thresholdExpressionHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace CostExplorer
172} // namespace Aws
UpdateAnomalySubscriptionRequest & WithMonitorArnList(const Aws::Vector< Aws::String > &value)
UpdateAnomalySubscriptionRequest & WithThresholdExpression(const Expression &value)
UpdateAnomalySubscriptionRequest & AddMonitorArnList(const Aws::String &value)
UpdateAnomalySubscriptionRequest & WithSubscriptionName(const char *value)
UpdateAnomalySubscriptionRequest & WithSubscriptionArn(const Aws::String &value)
UpdateAnomalySubscriptionRequest & WithSubscribers(const Aws::Vector< Subscriber > &value)
UpdateAnomalySubscriptionRequest & AddMonitorArnList(const char *value)
UpdateAnomalySubscriptionRequest & WithSubscribers(Aws::Vector< Subscriber > &&value)
UpdateAnomalySubscriptionRequest & WithFrequency(const AnomalySubscriptionFrequency &value)
UpdateAnomalySubscriptionRequest & WithSubscriptionArn(const char *value)
UpdateAnomalySubscriptionRequest & AddSubscribers(Subscriber &&value)
UpdateAnomalySubscriptionRequest & AddSubscribers(const Subscriber &value)
UpdateAnomalySubscriptionRequest & WithThresholdExpression(Expression &&value)
UpdateAnomalySubscriptionRequest & WithSubscriptionArn(Aws::String &&value)
UpdateAnomalySubscriptionRequest & AddMonitorArnList(Aws::String &&value)
UpdateAnomalySubscriptionRequest & WithSubscriptionName(Aws::String &&value)
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
UpdateAnomalySubscriptionRequest & WithFrequency(AnomalySubscriptionFrequency &&value)
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateAnomalySubscriptionRequest & WithMonitorArnList(Aws::Vector< Aws::String > &&value)
UpdateAnomalySubscriptionRequest & WithSubscriptionName(const Aws::String &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