AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetAnomaliesRequest.h
1
6#pragma once
7#include <aws/ce/CostExplorerRequest.h>
8#include <aws/ce/CostExplorer_EXPORTS.h>
9#include <aws/ce/model/AnomalyDateInterval.h>
10#include <aws/ce/model/AnomalyFeedbackType.h>
11#include <aws/ce/model/TotalImpactFilter.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CostExplorer {
18namespace Model {
19
23 public:
24 AWS_COSTEXPLORER_API GetAnomaliesRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetAnomalies"; }
31
32 AWS_COSTEXPLORER_API Aws::String SerializePayload() const override;
33
34 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
41 inline const Aws::String& GetMonitorArn() const { return m_monitorArn; }
42 inline bool MonitorArnHasBeenSet() const { return m_monitorArnHasBeenSet; }
43 template <typename MonitorArnT = Aws::String>
44 void SetMonitorArn(MonitorArnT&& value) {
45 m_monitorArnHasBeenSet = true;
46 m_monitorArn = std::forward<MonitorArnT>(value);
47 }
48 template <typename MonitorArnT = Aws::String>
49 GetAnomaliesRequest& WithMonitorArn(MonitorArnT&& value) {
50 SetMonitorArn(std::forward<MonitorArnT>(value));
51 return *this;
52 }
54
56
61 inline const AnomalyDateInterval& GetDateInterval() const { return m_dateInterval; }
62 inline bool DateIntervalHasBeenSet() const { return m_dateIntervalHasBeenSet; }
63 template <typename DateIntervalT = AnomalyDateInterval>
64 void SetDateInterval(DateIntervalT&& value) {
65 m_dateIntervalHasBeenSet = true;
66 m_dateInterval = std::forward<DateIntervalT>(value);
67 }
68 template <typename DateIntervalT = AnomalyDateInterval>
69 GetAnomaliesRequest& WithDateInterval(DateIntervalT&& value) {
70 SetDateInterval(std::forward<DateIntervalT>(value));
71 return *this;
72 }
74
76
79 inline AnomalyFeedbackType GetFeedback() const { return m_feedback; }
80 inline bool FeedbackHasBeenSet() const { return m_feedbackHasBeenSet; }
81 inline void SetFeedback(AnomalyFeedbackType value) {
82 m_feedbackHasBeenSet = true;
83 m_feedback = value;
84 }
86 SetFeedback(value);
87 return *this;
88 }
90
92
97 inline const TotalImpactFilter& GetTotalImpact() const { return m_totalImpact; }
98 inline bool TotalImpactHasBeenSet() const { return m_totalImpactHasBeenSet; }
99 template <typename TotalImpactT = TotalImpactFilter>
100 void SetTotalImpact(TotalImpactT&& value) {
101 m_totalImpactHasBeenSet = true;
102 m_totalImpact = std::forward<TotalImpactT>(value);
103 }
104 template <typename TotalImpactT = TotalImpactFilter>
105 GetAnomaliesRequest& WithTotalImpact(TotalImpactT&& value) {
106 SetTotalImpact(std::forward<TotalImpactT>(value));
107 return *this;
108 }
110
112
117 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
118 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
119 template <typename NextPageTokenT = Aws::String>
120 void SetNextPageToken(NextPageTokenT&& value) {
121 m_nextPageTokenHasBeenSet = true;
122 m_nextPageToken = std::forward<NextPageTokenT>(value);
123 }
124 template <typename NextPageTokenT = Aws::String>
125 GetAnomaliesRequest& WithNextPageToken(NextPageTokenT&& value) {
126 SetNextPageToken(std::forward<NextPageTokenT>(value));
127 return *this;
128 }
130
132
135 inline int GetMaxResults() const { return m_maxResults; }
136 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
137 inline void SetMaxResults(int value) {
138 m_maxResultsHasBeenSet = true;
139 m_maxResults = value;
140 }
142 SetMaxResults(value);
143 return *this;
144 }
146 private:
147 Aws::String m_monitorArn;
148
149 AnomalyDateInterval m_dateInterval;
150
152
153 TotalImpactFilter m_totalImpact;
154
155 Aws::String m_nextPageToken;
156
157 int m_maxResults{0};
158 bool m_monitorArnHasBeenSet = false;
159 bool m_dateIntervalHasBeenSet = false;
160 bool m_feedbackHasBeenSet = false;
161 bool m_totalImpactHasBeenSet = false;
162 bool m_nextPageTokenHasBeenSet = false;
163 bool m_maxResultsHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace CostExplorer
168} // 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