AWS SDK for C++  1.9.1
AWS SDK for C++
GetAnomaliesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace CostExplorer
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "GetAnomalies"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
44  inline const Aws::String& GetMonitorArn() const{ return m_monitorArn; }
45 
50  inline bool MonitorArnHasBeenSet() const { return m_monitorArnHasBeenSet; }
51 
56  inline void SetMonitorArn(const Aws::String& value) { m_monitorArnHasBeenSet = true; m_monitorArn = value; }
57 
62  inline void SetMonitorArn(Aws::String&& value) { m_monitorArnHasBeenSet = true; m_monitorArn = std::move(value); }
63 
68  inline void SetMonitorArn(const char* value) { m_monitorArnHasBeenSet = true; m_monitorArn.assign(value); }
69 
74  inline GetAnomaliesRequest& WithMonitorArn(const Aws::String& value) { SetMonitorArn(value); return *this;}
75 
80  inline GetAnomaliesRequest& WithMonitorArn(Aws::String&& value) { SetMonitorArn(std::move(value)); return *this;}
81 
86  inline GetAnomaliesRequest& WithMonitorArn(const char* value) { SetMonitorArn(value); return *this;}
87 
88 
94  inline const AnomalyDateInterval& GetDateInterval() const{ return m_dateInterval; }
95 
101  inline bool DateIntervalHasBeenSet() const { return m_dateIntervalHasBeenSet; }
102 
108  inline void SetDateInterval(const AnomalyDateInterval& value) { m_dateIntervalHasBeenSet = true; m_dateInterval = value; }
109 
115  inline void SetDateInterval(AnomalyDateInterval&& value) { m_dateIntervalHasBeenSet = true; m_dateInterval = std::move(value); }
116 
122  inline GetAnomaliesRequest& WithDateInterval(const AnomalyDateInterval& value) { SetDateInterval(value); return *this;}
123 
129  inline GetAnomaliesRequest& WithDateInterval(AnomalyDateInterval&& value) { SetDateInterval(std::move(value)); return *this;}
130 
131 
135  inline const AnomalyFeedbackType& GetFeedback() const{ return m_feedback; }
136 
140  inline bool FeedbackHasBeenSet() const { return m_feedbackHasBeenSet; }
141 
145  inline void SetFeedback(const AnomalyFeedbackType& value) { m_feedbackHasBeenSet = true; m_feedback = value; }
146 
150  inline void SetFeedback(AnomalyFeedbackType&& value) { m_feedbackHasBeenSet = true; m_feedback = std::move(value); }
151 
155  inline GetAnomaliesRequest& WithFeedback(const AnomalyFeedbackType& value) { SetFeedback(value); return *this;}
156 
160  inline GetAnomaliesRequest& WithFeedback(AnomalyFeedbackType&& value) { SetFeedback(std::move(value)); return *this;}
161 
162 
168  inline const TotalImpactFilter& GetTotalImpact() const{ return m_totalImpact; }
169 
175  inline bool TotalImpactHasBeenSet() const { return m_totalImpactHasBeenSet; }
176 
182  inline void SetTotalImpact(const TotalImpactFilter& value) { m_totalImpactHasBeenSet = true; m_totalImpact = value; }
183 
189  inline void SetTotalImpact(TotalImpactFilter&& value) { m_totalImpactHasBeenSet = true; m_totalImpact = std::move(value); }
190 
196  inline GetAnomaliesRequest& WithTotalImpact(const TotalImpactFilter& value) { SetTotalImpact(value); return *this;}
197 
203  inline GetAnomaliesRequest& WithTotalImpact(TotalImpactFilter&& value) { SetTotalImpact(std::move(value)); return *this;}
204 
205 
211  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
212 
218  inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
219 
225  inline void SetNextPageToken(const Aws::String& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; }
226 
232  inline void SetNextPageToken(Aws::String&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::move(value); }
233 
239  inline void SetNextPageToken(const char* value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken.assign(value); }
240 
246  inline GetAnomaliesRequest& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
247 
253  inline GetAnomaliesRequest& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
254 
260  inline GetAnomaliesRequest& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
261 
262 
266  inline int GetMaxResults() const{ return m_maxResults; }
267 
271  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
272 
276  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
277 
281  inline GetAnomaliesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
282 
283  private:
284 
285  Aws::String m_monitorArn;
286  bool m_monitorArnHasBeenSet;
287 
288  AnomalyDateInterval m_dateInterval;
289  bool m_dateIntervalHasBeenSet;
290 
291  AnomalyFeedbackType m_feedback;
292  bool m_feedbackHasBeenSet;
293 
294  TotalImpactFilter m_totalImpact;
295  bool m_totalImpactHasBeenSet;
296 
297  Aws::String m_nextPageToken;
298  bool m_nextPageTokenHasBeenSet;
299 
300  int m_maxResults;
301  bool m_maxResultsHasBeenSet;
302  };
303 
304 } // namespace Model
305 } // namespace CostExplorer
306 } // namespace Aws
Aws::CostExplorer::Model::GetAnomaliesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetAnomaliesRequest.h:276
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::CostExplorer::Model::GetAnomaliesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetAnomaliesRequest.h:33
Aws::CostExplorer::Model::GetAnomaliesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CostExplorer::Model::GetAnomaliesRequest::WithMonitorArn
GetAnomaliesRequest & WithMonitorArn(const Aws::String &value)
Definition: GetAnomaliesRequest.h:74
Aws::CostExplorer::Model::GetAnomaliesRequest::SetNextPageToken
void SetNextPageToken(const char *value)
Definition: GetAnomaliesRequest.h:239
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CostExplorer::Model::GetAnomaliesRequest::WithDateInterval
GetAnomaliesRequest & WithDateInterval(AnomalyDateInterval &&value)
Definition: GetAnomaliesRequest.h:129
Aws::CostExplorer::Model::GetAnomaliesRequest::SetMonitorArn
void SetMonitorArn(const char *value)
Definition: GetAnomaliesRequest.h:68
Aws::CostExplorer::Model::TotalImpactFilter
Definition: TotalImpactFilter.h:33
AnomalyFeedbackType.h
CostExplorerRequest.h
Aws::CostExplorer::Model::GetAnomaliesRequest::WithDateInterval
GetAnomaliesRequest & WithDateInterval(const AnomalyDateInterval &value)
Definition: GetAnomaliesRequest.h:122
AnomalyDateInterval.h
Aws::CostExplorer::Model::GetAnomaliesRequest::WithMaxResults
GetAnomaliesRequest & WithMaxResults(int value)
Definition: GetAnomaliesRequest.h:281
Aws::CostExplorer::Model::GetAnomaliesRequest::MonitorArnHasBeenSet
bool MonitorArnHasBeenSet() const
Definition: GetAnomaliesRequest.h:50
Aws::CostExplorer::Model::GetAnomaliesRequest::SetDateInterval
void SetDateInterval(const AnomalyDateInterval &value)
Definition: GetAnomaliesRequest.h:108
Aws::CostExplorer::Model::GetAnomaliesRequest::WithMonitorArn
GetAnomaliesRequest & WithMonitorArn(Aws::String &&value)
Definition: GetAnomaliesRequest.h:80
Aws::CostExplorer::Model::AnomalyDateInterval
Definition: AnomalyDateInterval.h:32
TotalImpactFilter.h
Aws::CostExplorer::Model::GetAnomaliesRequest::SetTotalImpact
void SetTotalImpact(const TotalImpactFilter &value)
Definition: GetAnomaliesRequest.h:182
Aws::CostExplorer::Model::GetAnomaliesRequest::GetAnomaliesRequest
GetAnomaliesRequest()
Aws::CostExplorer::Model::GetAnomaliesRequest::DateIntervalHasBeenSet
bool DateIntervalHasBeenSet() const
Definition: GetAnomaliesRequest.h:101
Aws::CostExplorer::Model::GetAnomaliesRequest::WithFeedback
GetAnomaliesRequest & WithFeedback(AnomalyFeedbackType &&value)
Definition: GetAnomaliesRequest.h:160
Aws::CostExplorer::Model::GetAnomaliesRequest::SetNextPageToken
void SetNextPageToken(const Aws::String &value)
Definition: GetAnomaliesRequest.h:225
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::GetAnomaliesRequest::SetTotalImpact
void SetTotalImpact(TotalImpactFilter &&value)
Definition: GetAnomaliesRequest.h:189
Aws::CostExplorer::Model::GetAnomaliesRequest
Definition: GetAnomaliesRequest.h:25
Aws::CostExplorer::Model::GetAnomaliesRequest::WithNextPageToken
GetAnomaliesRequest & WithNextPageToken(const char *value)
Definition: GetAnomaliesRequest.h:260
Aws::CostExplorer::Model::GetAnomaliesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetAnomaliesRequest.h:271
Aws::CostExplorer::Model::GetAnomaliesRequest::GetNextPageToken
const Aws::String & GetNextPageToken() const
Definition: GetAnomaliesRequest.h:211
Aws::CostExplorer::Model::GetAnomaliesRequest::GetFeedback
const AnomalyFeedbackType & GetFeedback() const
Definition: GetAnomaliesRequest.h:135
Aws::CostExplorer::Model::GetAnomaliesRequest::NextPageTokenHasBeenSet
bool NextPageTokenHasBeenSet() const
Definition: GetAnomaliesRequest.h:218
Aws::CostExplorer::Model::GetAnomaliesRequest::WithFeedback
GetAnomaliesRequest & WithFeedback(const AnomalyFeedbackType &value)
Definition: GetAnomaliesRequest.h:155
AWSString.h
Aws::CostExplorer::Model::GetAnomaliesRequest::WithMonitorArn
GetAnomaliesRequest & WithMonitorArn(const char *value)
Definition: GetAnomaliesRequest.h:86
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::GetAnomaliesRequest::SetMonitorArn
void SetMonitorArn(Aws::String &&value)
Definition: GetAnomaliesRequest.h:62
Aws::CostExplorer::Model::GetAnomaliesRequest::WithNextPageToken
GetAnomaliesRequest & WithNextPageToken(Aws::String &&value)
Definition: GetAnomaliesRequest.h:253
Aws::CostExplorer::Model::GetAnomaliesRequest::SetNextPageToken
void SetNextPageToken(Aws::String &&value)
Definition: GetAnomaliesRequest.h:232
Aws::CostExplorer::Model::GetAnomaliesRequest::WithNextPageToken
GetAnomaliesRequest & WithNextPageToken(const Aws::String &value)
Definition: GetAnomaliesRequest.h:246
Aws::CostExplorer::Model::GetAnomaliesRequest::SetMonitorArn
void SetMonitorArn(const Aws::String &value)
Definition: GetAnomaliesRequest.h:56
Aws::CostExplorer::Model::GetAnomaliesRequest::GetMaxResults
int GetMaxResults() const
Definition: GetAnomaliesRequest.h:266
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::GetAnomaliesRequest::GetMonitorArn
const Aws::String & GetMonitorArn() const
Definition: GetAnomaliesRequest.h:44
Aws::CostExplorer::Model::GetAnomaliesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CostExplorer::Model::GetAnomaliesRequest::SetFeedback
void SetFeedback(AnomalyFeedbackType &&value)
Definition: GetAnomaliesRequest.h:150
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CostExplorer::Model::GetAnomaliesRequest::SetDateInterval
void SetDateInterval(AnomalyDateInterval &&value)
Definition: GetAnomaliesRequest.h:115
Aws::CostExplorer::Model::GetAnomaliesRequest::SetFeedback
void SetFeedback(const AnomalyFeedbackType &value)
Definition: GetAnomaliesRequest.h:145
Aws::CostExplorer::Model::GetAnomaliesRequest::TotalImpactHasBeenSet
bool TotalImpactHasBeenSet() const
Definition: GetAnomaliesRequest.h:175
Aws::CostExplorer::Model::AnomalyFeedbackType
AnomalyFeedbackType
Definition: AnomalyFeedbackType.h:17
Aws::CostExplorer::Model::GetAnomaliesRequest::GetTotalImpact
const TotalImpactFilter & GetTotalImpact() const
Definition: GetAnomaliesRequest.h:168
Aws::CostExplorer::Model::GetAnomaliesRequest::WithTotalImpact
GetAnomaliesRequest & WithTotalImpact(const TotalImpactFilter &value)
Definition: GetAnomaliesRequest.h:196
Aws::CostExplorer::Model::GetAnomaliesRequest::GetDateInterval
const AnomalyDateInterval & GetDateInterval() const
Definition: GetAnomaliesRequest.h:94
Aws::CostExplorer::Model::GetAnomaliesRequest::WithTotalImpact
GetAnomaliesRequest & WithTotalImpact(TotalImpactFilter &&value)
Definition: GetAnomaliesRequest.h:203
Aws::CostExplorer::Model::GetAnomaliesRequest::FeedbackHasBeenSet
bool FeedbackHasBeenSet() const
Definition: GetAnomaliesRequest.h:140