AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetAnomaliesRequest.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/AWSString.h>
10#include <aws/ce/model/AnomalyDateInterval.h>
11#include <aws/ce/model/AnomalyFeedbackType.h>
12#include <aws/ce/model/TotalImpactFilter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CostExplorer
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_COSTEXPLORER_API GetAnomaliesRequest() = default;
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_COSTEXPLORER_API Aws::String SerializePayload() const override;
36
37 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::String& GetMonitorArn() const { return m_monitorArn; }
46 inline bool MonitorArnHasBeenSet() const { return m_monitorArnHasBeenSet; }
47 template<typename MonitorArnT = Aws::String>
48 void SetMonitorArn(MonitorArnT&& value) { m_monitorArnHasBeenSet = true; m_monitorArn = std::forward<MonitorArnT>(value); }
49 template<typename MonitorArnT = Aws::String>
50 GetAnomaliesRequest& WithMonitorArn(MonitorArnT&& value) { SetMonitorArn(std::forward<MonitorArnT>(value)); return *this;}
52
54
59 inline const AnomalyDateInterval& GetDateInterval() const { return m_dateInterval; }
60 inline bool DateIntervalHasBeenSet() const { return m_dateIntervalHasBeenSet; }
61 template<typename DateIntervalT = AnomalyDateInterval>
62 void SetDateInterval(DateIntervalT&& value) { m_dateIntervalHasBeenSet = true; m_dateInterval = std::forward<DateIntervalT>(value); }
63 template<typename DateIntervalT = AnomalyDateInterval>
64 GetAnomaliesRequest& WithDateInterval(DateIntervalT&& value) { SetDateInterval(std::forward<DateIntervalT>(value)); return *this;}
66
68
71 inline AnomalyFeedbackType GetFeedback() const { return m_feedback; }
72 inline bool FeedbackHasBeenSet() const { return m_feedbackHasBeenSet; }
73 inline void SetFeedback(AnomalyFeedbackType value) { m_feedbackHasBeenSet = true; m_feedback = value; }
74 inline GetAnomaliesRequest& WithFeedback(AnomalyFeedbackType value) { SetFeedback(value); return *this;}
76
78
83 inline const TotalImpactFilter& GetTotalImpact() const { return m_totalImpact; }
84 inline bool TotalImpactHasBeenSet() const { return m_totalImpactHasBeenSet; }
85 template<typename TotalImpactT = TotalImpactFilter>
86 void SetTotalImpact(TotalImpactT&& value) { m_totalImpactHasBeenSet = true; m_totalImpact = std::forward<TotalImpactT>(value); }
87 template<typename TotalImpactT = TotalImpactFilter>
88 GetAnomaliesRequest& WithTotalImpact(TotalImpactT&& value) { SetTotalImpact(std::forward<TotalImpactT>(value)); return *this;}
90
92
97 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
98 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
99 template<typename NextPageTokenT = Aws::String>
100 void SetNextPageToken(NextPageTokenT&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::forward<NextPageTokenT>(value); }
101 template<typename NextPageTokenT = Aws::String>
102 GetAnomaliesRequest& WithNextPageToken(NextPageTokenT&& value) { SetNextPageToken(std::forward<NextPageTokenT>(value)); return *this;}
104
106
109 inline int GetMaxResults() const { return m_maxResults; }
110 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
111 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
112 inline GetAnomaliesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
114 private:
115
116 Aws::String m_monitorArn;
117 bool m_monitorArnHasBeenSet = false;
118
119 AnomalyDateInterval m_dateInterval;
120 bool m_dateIntervalHasBeenSet = false;
121
123 bool m_feedbackHasBeenSet = false;
124
125 TotalImpactFilter m_totalImpact;
126 bool m_totalImpactHasBeenSet = false;
127
128 Aws::String m_nextPageToken;
129 bool m_nextPageTokenHasBeenSet = false;
130
131 int m_maxResults{0};
132 bool m_maxResultsHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace CostExplorer
137} // namespace Aws
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
GetAnomaliesRequest & WithMonitorArn(MonitorArnT &&value)
GetAnomaliesRequest & WithTotalImpact(TotalImpactT &&value)
GetAnomaliesRequest & WithNextPageToken(NextPageTokenT &&value)
const AnomalyDateInterval & GetDateInterval() const
GetAnomaliesRequest & WithFeedback(AnomalyFeedbackType value)
const TotalImpactFilter & GetTotalImpact() const
virtual const char * GetServiceRequestName() const override
GetAnomaliesRequest & WithMaxResults(int value)
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetAnomaliesRequest & WithDateInterval(DateIntervalT &&value)
AWS_COSTEXPLORER_API GetAnomaliesRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String