AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetAnomalyMonitorsRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CostExplorer
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_COSTEXPLORER_API GetAnomalyMonitorsRequest() = 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 "GetAnomalyMonitors"; }
32
33 AWS_COSTEXPLORER_API Aws::String SerializePayload() const override;
34
35 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::Vector<Aws::String>& GetMonitorArnList() const { return m_monitorArnList; }
43 inline bool MonitorArnListHasBeenSet() const { return m_monitorArnListHasBeenSet; }
44 template<typename MonitorArnListT = Aws::Vector<Aws::String>>
45 void SetMonitorArnList(MonitorArnListT&& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList = std::forward<MonitorArnListT>(value); }
46 template<typename MonitorArnListT = Aws::Vector<Aws::String>>
47 GetAnomalyMonitorsRequest& WithMonitorArnList(MonitorArnListT&& value) { SetMonitorArnList(std::forward<MonitorArnListT>(value)); return *this;}
48 template<typename MonitorArnListT = Aws::String>
49 GetAnomalyMonitorsRequest& AddMonitorArnList(MonitorArnListT&& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList.emplace_back(std::forward<MonitorArnListT>(value)); return *this; }
51
53
58 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
59 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
60 template<typename NextPageTokenT = Aws::String>
61 void SetNextPageToken(NextPageTokenT&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::forward<NextPageTokenT>(value); }
62 template<typename NextPageTokenT = Aws::String>
63 GetAnomalyMonitorsRequest& WithNextPageToken(NextPageTokenT&& value) { SetNextPageToken(std::forward<NextPageTokenT>(value)); return *this;}
65
67
70 inline int GetMaxResults() const { return m_maxResults; }
71 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
72 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
73 inline GetAnomalyMonitorsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
75 private:
76
77 Aws::Vector<Aws::String> m_monitorArnList;
78 bool m_monitorArnListHasBeenSet = false;
79
80 Aws::String m_nextPageToken;
81 bool m_nextPageTokenHasBeenSet = false;
82
83 int m_maxResults{0};
84 bool m_maxResultsHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace CostExplorer
89} // 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