AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMonitorArn(const Aws::String& value) { m_monitorArnHasBeenSet = true; m_monitorArn = value; }
48 inline void SetMonitorArn(Aws::String&& value) { m_monitorArnHasBeenSet = true; m_monitorArn = std::move(value); }
49 inline void SetMonitorArn(const char* value) { m_monitorArnHasBeenSet = true; m_monitorArn.assign(value); }
50 inline GetAnomaliesRequest& WithMonitorArn(const Aws::String& value) { SetMonitorArn(value); return *this;}
51 inline GetAnomaliesRequest& WithMonitorArn(Aws::String&& value) { SetMonitorArn(std::move(value)); return *this;}
52 inline GetAnomaliesRequest& WithMonitorArn(const char* value) { SetMonitorArn(value); return *this;}
54
56
61 inline const AnomalyDateInterval& GetDateInterval() const{ return m_dateInterval; }
62 inline bool DateIntervalHasBeenSet() const { return m_dateIntervalHasBeenSet; }
63 inline void SetDateInterval(const AnomalyDateInterval& value) { m_dateIntervalHasBeenSet = true; m_dateInterval = value; }
64 inline void SetDateInterval(AnomalyDateInterval&& value) { m_dateIntervalHasBeenSet = true; m_dateInterval = std::move(value); }
65 inline GetAnomaliesRequest& WithDateInterval(const AnomalyDateInterval& value) { SetDateInterval(value); return *this;}
66 inline GetAnomaliesRequest& WithDateInterval(AnomalyDateInterval&& value) { SetDateInterval(std::move(value)); return *this;}
68
70
73 inline const AnomalyFeedbackType& GetFeedback() const{ return m_feedback; }
74 inline bool FeedbackHasBeenSet() const { return m_feedbackHasBeenSet; }
75 inline void SetFeedback(const AnomalyFeedbackType& value) { m_feedbackHasBeenSet = true; m_feedback = value; }
76 inline void SetFeedback(AnomalyFeedbackType&& value) { m_feedbackHasBeenSet = true; m_feedback = std::move(value); }
77 inline GetAnomaliesRequest& WithFeedback(const AnomalyFeedbackType& value) { SetFeedback(value); return *this;}
78 inline GetAnomaliesRequest& WithFeedback(AnomalyFeedbackType&& value) { SetFeedback(std::move(value)); return *this;}
80
82
87 inline const TotalImpactFilter& GetTotalImpact() const{ return m_totalImpact; }
88 inline bool TotalImpactHasBeenSet() const { return m_totalImpactHasBeenSet; }
89 inline void SetTotalImpact(const TotalImpactFilter& value) { m_totalImpactHasBeenSet = true; m_totalImpact = value; }
90 inline void SetTotalImpact(TotalImpactFilter&& value) { m_totalImpactHasBeenSet = true; m_totalImpact = std::move(value); }
91 inline GetAnomaliesRequest& WithTotalImpact(const TotalImpactFilter& value) { SetTotalImpact(value); return *this;}
92 inline GetAnomaliesRequest& WithTotalImpact(TotalImpactFilter&& value) { SetTotalImpact(std::move(value)); return *this;}
94
96
101 inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
102 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
103 inline void SetNextPageToken(const Aws::String& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; }
104 inline void SetNextPageToken(Aws::String&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::move(value); }
105 inline void SetNextPageToken(const char* value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken.assign(value); }
106 inline GetAnomaliesRequest& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
107 inline GetAnomaliesRequest& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
108 inline GetAnomaliesRequest& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
110
112
115 inline int GetMaxResults() const{ return m_maxResults; }
116 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
117 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
118 inline GetAnomaliesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
120 private:
121
122 Aws::String m_monitorArn;
123 bool m_monitorArnHasBeenSet = false;
124
125 AnomalyDateInterval m_dateInterval;
126 bool m_dateIntervalHasBeenSet = false;
127
128 AnomalyFeedbackType m_feedback;
129 bool m_feedbackHasBeenSet = false;
130
131 TotalImpactFilter m_totalImpact;
132 bool m_totalImpactHasBeenSet = false;
133
134 Aws::String m_nextPageToken;
135 bool m_nextPageTokenHasBeenSet = false;
136
137 int m_maxResults;
138 bool m_maxResultsHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace CostExplorer
143} // namespace Aws
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
void SetDateInterval(AnomalyDateInterval &&value)
void SetDateInterval(const AnomalyDateInterval &value)
GetAnomaliesRequest & WithDateInterval(const AnomalyDateInterval &value)
GetAnomaliesRequest & WithFeedback(const AnomalyFeedbackType &value)
GetAnomaliesRequest & WithTotalImpact(const TotalImpactFilter &value)
void SetFeedback(const AnomalyFeedbackType &value)
const AnomalyDateInterval & GetDateInterval() const
GetAnomaliesRequest & WithMonitorArn(const Aws::String &value)
GetAnomaliesRequest & WithMonitorArn(const char *value)
GetAnomaliesRequest & WithFeedback(AnomalyFeedbackType &&value)
GetAnomaliesRequest & WithNextPageToken(const Aws::String &value)
void SetTotalImpact(TotalImpactFilter &&value)
GetAnomaliesRequest & WithTotalImpact(TotalImpactFilter &&value)
const AnomalyFeedbackType & GetFeedback() const
const TotalImpactFilter & GetTotalImpact() const
GetAnomaliesRequest & WithMonitorArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
GetAnomaliesRequest & WithNextPageToken(Aws::String &&value)
GetAnomaliesRequest & WithMaxResults(int value)
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetAnomaliesRequest & WithDateInterval(AnomalyDateInterval &&value)
void SetTotalImpact(const TotalImpactFilter &value)
GetAnomaliesRequest & WithNextPageToken(const char *value)
void SetFeedback(AnomalyFeedbackType &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String