AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetAnomalyMonitorsRequest.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 GetAnomalyMonitorsRequest() = 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 "GetAnomalyMonitors"; }
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>& GetMonitorArnList() const { return m_monitorArnList; }
39 inline bool MonitorArnListHasBeenSet() const { return m_monitorArnListHasBeenSet; }
40 template <typename MonitorArnListT = Aws::Vector<Aws::String>>
41 void SetMonitorArnList(MonitorArnListT&& value) {
42 m_monitorArnListHasBeenSet = true;
43 m_monitorArnList = std::forward<MonitorArnListT>(value);
44 }
45 template <typename MonitorArnListT = Aws::Vector<Aws::String>>
47 SetMonitorArnList(std::forward<MonitorArnListT>(value));
48 return *this;
49 }
50 template <typename MonitorArnListT = Aws::String>
51 GetAnomalyMonitorsRequest& AddMonitorArnList(MonitorArnListT&& value) {
52 m_monitorArnListHasBeenSet = true;
53 m_monitorArnList.emplace_back(std::forward<MonitorArnListT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
65 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
66 template <typename NextPageTokenT = Aws::String>
67 void SetNextPageToken(NextPageTokenT&& value) {
68 m_nextPageTokenHasBeenSet = true;
69 m_nextPageToken = std::forward<NextPageTokenT>(value);
70 }
71 template <typename NextPageTokenT = Aws::String>
73 SetNextPageToken(std::forward<NextPageTokenT>(value));
74 return *this;
75 }
77
79
82 inline int GetMaxResults() const { return m_maxResults; }
83 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
84 inline void SetMaxResults(int value) {
85 m_maxResultsHasBeenSet = true;
86 m_maxResults = value;
87 }
89 SetMaxResults(value);
90 return *this;
91 }
93 private:
94 Aws::Vector<Aws::String> m_monitorArnList;
95
96 Aws::String m_nextPageToken;
97
98 int m_maxResults{0};
99 bool m_monitorArnListHasBeenSet = false;
100 bool m_nextPageTokenHasBeenSet = false;
101 bool m_maxResultsHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace CostExplorer
106} // namespace Aws
GetAnomalyMonitorsRequest & AddMonitorArnList(MonitorArnListT &&value)
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
GetAnomalyMonitorsRequest & WithNextPageToken(NextPageTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetMonitorArnList() const
GetAnomalyMonitorsRequest & WithMonitorArnList(MonitorArnListT &&value)
AWS_COSTEXPLORER_API GetAnomalyMonitorsRequest()=default
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