AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetAnomalySubscriptionsRequest.h
1
6#pragma once
7#include <aws/ce/CostExplorerRequest.h>
8#include <aws/ce/CostExplorer_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CostExplorer {
16namespace Model {
17
21 public:
22 AWS_COSTEXPLORER_API GetAnomalySubscriptionsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetAnomalySubscriptions"; }
29
30 AWS_COSTEXPLORER_API Aws::String SerializePayload() const override;
31
32 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::Vector<Aws::String>& GetSubscriptionArnList() const { return m_subscriptionArnList; }
39 inline bool SubscriptionArnListHasBeenSet() const { return m_subscriptionArnListHasBeenSet; }
40 template <typename SubscriptionArnListT = Aws::Vector<Aws::String>>
41 void SetSubscriptionArnList(SubscriptionArnListT&& value) {
42 m_subscriptionArnListHasBeenSet = true;
43 m_subscriptionArnList = std::forward<SubscriptionArnListT>(value);
44 }
45 template <typename SubscriptionArnListT = Aws::Vector<Aws::String>>
47 SetSubscriptionArnList(std::forward<SubscriptionArnListT>(value));
48 return *this;
49 }
50 template <typename SubscriptionArnListT = Aws::String>
52 m_subscriptionArnListHasBeenSet = true;
53 m_subscriptionArnList.emplace_back(std::forward<SubscriptionArnListT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetMonitorArn() const { return m_monitorArn; }
63 inline bool MonitorArnHasBeenSet() const { return m_monitorArnHasBeenSet; }
64 template <typename MonitorArnT = Aws::String>
65 void SetMonitorArn(MonitorArnT&& value) {
66 m_monitorArnHasBeenSet = true;
67 m_monitorArn = std::forward<MonitorArnT>(value);
68 }
69 template <typename MonitorArnT = Aws::String>
71 SetMonitorArn(std::forward<MonitorArnT>(value));
72 return *this;
73 }
75
77
82 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
83 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
84 template <typename NextPageTokenT = Aws::String>
85 void SetNextPageToken(NextPageTokenT&& value) {
86 m_nextPageTokenHasBeenSet = true;
87 m_nextPageToken = std::forward<NextPageTokenT>(value);
88 }
89 template <typename NextPageTokenT = Aws::String>
91 SetNextPageToken(std::forward<NextPageTokenT>(value));
92 return *this;
93 }
95
97
100 inline int GetMaxResults() const { return m_maxResults; }
101 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
102 inline void SetMaxResults(int value) {
103 m_maxResultsHasBeenSet = true;
104 m_maxResults = value;
105 }
107 SetMaxResults(value);
108 return *this;
109 }
111 private:
112 Aws::Vector<Aws::String> m_subscriptionArnList;
113
114 Aws::String m_monitorArn;
115
116 Aws::String m_nextPageToken;
117
118 int m_maxResults{0};
119 bool m_subscriptionArnListHasBeenSet = false;
120 bool m_monitorArnHasBeenSet = false;
121 bool m_nextPageTokenHasBeenSet = false;
122 bool m_maxResultsHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace CostExplorer
127} // namespace Aws
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetAnomalySubscriptionsRequest & AddSubscriptionArnList(SubscriptionArnListT &&value)
GetAnomalySubscriptionsRequest & WithNextPageToken(NextPageTokenT &&value)
AWS_COSTEXPLORER_API GetAnomalySubscriptionsRequest()=default
GetAnomalySubscriptionsRequest & WithMonitorArn(MonitorArnT &&value)
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
GetAnomalySubscriptionsRequest & WithSubscriptionArnList(SubscriptionArnListT &&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