AWS SDK for C++  1.9.1
AWS SDK for C++
GetAnomalyMonitorsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CostExplorer
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::Vector<Aws::String>& GetMonitorArnList() const{ return m_monitorArnList; }
42 
46  inline bool MonitorArnListHasBeenSet() const { return m_monitorArnListHasBeenSet; }
47 
51  inline void SetMonitorArnList(const Aws::Vector<Aws::String>& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList = value; }
52 
56  inline void SetMonitorArnList(Aws::Vector<Aws::String>&& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList = std::move(value); }
57 
61  inline GetAnomalyMonitorsRequest& WithMonitorArnList(const Aws::Vector<Aws::String>& value) { SetMonitorArnList(value); return *this;}
62 
66  inline GetAnomalyMonitorsRequest& WithMonitorArnList(Aws::Vector<Aws::String>&& value) { SetMonitorArnList(std::move(value)); return *this;}
67 
71  inline GetAnomalyMonitorsRequest& AddMonitorArnList(const Aws::String& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList.push_back(value); return *this; }
72 
76  inline GetAnomalyMonitorsRequest& AddMonitorArnList(Aws::String&& value) { m_monitorArnListHasBeenSet = true; m_monitorArnList.push_back(std::move(value)); return *this; }
77 
81  inline GetAnomalyMonitorsRequest& AddMonitorArnList(const char* value) { m_monitorArnListHasBeenSet = true; m_monitorArnList.push_back(value); return *this; }
82 
83 
89  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
90 
96  inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
97 
103  inline void SetNextPageToken(const Aws::String& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; }
104 
110  inline void SetNextPageToken(Aws::String&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::move(value); }
111 
117  inline void SetNextPageToken(const char* value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken.assign(value); }
118 
124  inline GetAnomalyMonitorsRequest& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
125 
131  inline GetAnomalyMonitorsRequest& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
132 
138  inline GetAnomalyMonitorsRequest& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
139 
140 
144  inline int GetMaxResults() const{ return m_maxResults; }
145 
149  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
150 
154  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
155 
159  inline GetAnomalyMonitorsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
160 
161  private:
162 
163  Aws::Vector<Aws::String> m_monitorArnList;
164  bool m_monitorArnListHasBeenSet;
165 
166  Aws::String m_nextPageToken;
167  bool m_nextPageTokenHasBeenSet;
168 
169  int m_maxResults;
170  bool m_maxResultsHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace CostExplorer
175 } // namespace Aws
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::AddMonitorArnList
GetAnomalyMonitorsRequest & AddMonitorArnList(Aws::String &&value)
Definition: GetAnomalyMonitorsRequest.h:76
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::GetNextPageToken
const Aws::String & GetNextPageToken() const
Definition: GetAnomalyMonitorsRequest.h:89
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::WithNextPageToken
GetAnomalyMonitorsRequest & WithNextPageToken(const char *value)
Definition: GetAnomalyMonitorsRequest.h:138
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::SetMonitorArnList
void SetMonitorArnList(Aws::Vector< Aws::String > &&value)
Definition: GetAnomalyMonitorsRequest.h:56
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::AddMonitorArnList
GetAnomalyMonitorsRequest & AddMonitorArnList(const Aws::String &value)
Definition: GetAnomalyMonitorsRequest.h:71
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::GetMaxResults
int GetMaxResults() const
Definition: GetAnomalyMonitorsRequest.h:144
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::SetNextPageToken
void SetNextPageToken(Aws::String &&value)
Definition: GetAnomalyMonitorsRequest.h:110
CostExplorerRequest.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::NextPageTokenHasBeenSet
bool NextPageTokenHasBeenSet() const
Definition: GetAnomalyMonitorsRequest.h:96
AWSVector.h
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::SetMonitorArnList
void SetMonitorArnList(const Aws::Vector< Aws::String > &value)
Definition: GetAnomalyMonitorsRequest.h:51
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::SetNextPageToken
void SetNextPageToken(const Aws::String &value)
Definition: GetAnomalyMonitorsRequest.h:103
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::SetNextPageToken
void SetNextPageToken(const char *value)
Definition: GetAnomalyMonitorsRequest.h:117
AWSString.h
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest
Definition: GetAnomalyMonitorsRequest.h:23
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::AddMonitorArnList
GetAnomalyMonitorsRequest & AddMonitorArnList(const char *value)
Definition: GetAnomalyMonitorsRequest.h:81
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::WithMonitorArnList
GetAnomalyMonitorsRequest & WithMonitorArnList(Aws::Vector< Aws::String > &&value)
Definition: GetAnomalyMonitorsRequest.h:66
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::WithNextPageToken
GetAnomalyMonitorsRequest & WithNextPageToken(const Aws::String &value)
Definition: GetAnomalyMonitorsRequest.h:124
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetAnomalyMonitorsRequest.h:154
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::GetMonitorArnList
const Aws::Vector< Aws::String > & GetMonitorArnList() const
Definition: GetAnomalyMonitorsRequest.h:41
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetAnomalyMonitorsRequest.h:31
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetAnomalyMonitorsRequest.h:149
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::GetAnomalyMonitorsRequest
GetAnomalyMonitorsRequest()
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::WithNextPageToken
GetAnomalyMonitorsRequest & WithNextPageToken(Aws::String &&value)
Definition: GetAnomalyMonitorsRequest.h:131
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::WithMonitorArnList
GetAnomalyMonitorsRequest & WithMonitorArnList(const Aws::Vector< Aws::String > &value)
Definition: GetAnomalyMonitorsRequest.h:61
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::WithMaxResults
GetAnomalyMonitorsRequest & WithMaxResults(int value)
Definition: GetAnomalyMonitorsRequest.h:159
Aws::CostExplorer::Model::GetAnomalyMonitorsRequest::MonitorArnListHasBeenSet
bool MonitorArnListHasBeenSet() const
Definition: GetAnomalyMonitorsRequest.h:46