AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DescribeAlarmHistoryRequest.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/monitoring/CloudWatchRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/monitoring/model/HistoryItemType.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/monitoring/model/ScanBy.h>
14#include <aws/monitoring/model/AlarmType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace CloudWatch
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CLOUDWATCH_API DescribeAlarmHistoryRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "DescribeAlarmHistory"; }
36
37 AWS_CLOUDWATCH_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
48 inline const Aws::String& GetAlarmName() const { return m_alarmName; }
49 inline bool AlarmNameHasBeenSet() const { return m_alarmNameHasBeenSet; }
50 template<typename AlarmNameT = Aws::String>
51 void SetAlarmName(AlarmNameT&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::forward<AlarmNameT>(value); }
52 template<typename AlarmNameT = Aws::String>
53 DescribeAlarmHistoryRequest& WithAlarmName(AlarmNameT&& value) { SetAlarmName(std::forward<AlarmNameT>(value)); return *this;}
55
57
62 inline const Aws::Vector<AlarmType>& GetAlarmTypes() const { return m_alarmTypes; }
63 inline bool AlarmTypesHasBeenSet() const { return m_alarmTypesHasBeenSet; }
64 template<typename AlarmTypesT = Aws::Vector<AlarmType>>
65 void SetAlarmTypes(AlarmTypesT&& value) { m_alarmTypesHasBeenSet = true; m_alarmTypes = std::forward<AlarmTypesT>(value); }
66 template<typename AlarmTypesT = Aws::Vector<AlarmType>>
67 DescribeAlarmHistoryRequest& WithAlarmTypes(AlarmTypesT&& value) { SetAlarmTypes(std::forward<AlarmTypesT>(value)); return *this;}
68 inline DescribeAlarmHistoryRequest& AddAlarmTypes(AlarmType value) { m_alarmTypesHasBeenSet = true; m_alarmTypes.push_back(value); return *this; }
70
72
75 inline HistoryItemType GetHistoryItemType() const { return m_historyItemType; }
76 inline bool HistoryItemTypeHasBeenSet() const { return m_historyItemTypeHasBeenSet; }
77 inline void SetHistoryItemType(HistoryItemType value) { m_historyItemTypeHasBeenSet = true; m_historyItemType = value; }
80
82
85 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
86 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
87 template<typename StartDateT = Aws::Utils::DateTime>
88 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet = true; m_startDate = std::forward<StartDateT>(value); }
89 template<typename StartDateT = Aws::Utils::DateTime>
90 DescribeAlarmHistoryRequest& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
98 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
99 template<typename EndDateT = Aws::Utils::DateTime>
100 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet = true; m_endDate = std::forward<EndDateT>(value); }
101 template<typename EndDateT = Aws::Utils::DateTime>
102 DescribeAlarmHistoryRequest& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
104
106
109 inline int GetMaxRecords() const { return m_maxRecords; }
110 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
111 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
112 inline DescribeAlarmHistoryRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
114
116
120 inline const Aws::String& GetNextToken() const { return m_nextToken; }
121 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
122 template<typename NextTokenT = Aws::String>
123 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
124 template<typename NextTokenT = Aws::String>
125 DescribeAlarmHistoryRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
127
129
135 inline ScanBy GetScanBy() const { return m_scanBy; }
136 inline bool ScanByHasBeenSet() const { return m_scanByHasBeenSet; }
137 inline void SetScanBy(ScanBy value) { m_scanByHasBeenSet = true; m_scanBy = value; }
138 inline DescribeAlarmHistoryRequest& WithScanBy(ScanBy value) { SetScanBy(value); return *this;}
140 private:
141
142 Aws::String m_alarmName;
143 bool m_alarmNameHasBeenSet = false;
144
145 Aws::Vector<AlarmType> m_alarmTypes;
146 bool m_alarmTypesHasBeenSet = false;
147
148 HistoryItemType m_historyItemType{HistoryItemType::NOT_SET};
149 bool m_historyItemTypeHasBeenSet = false;
150
151 Aws::Utils::DateTime m_startDate{};
152 bool m_startDateHasBeenSet = false;
153
154 Aws::Utils::DateTime m_endDate{};
155 bool m_endDateHasBeenSet = false;
156
157 int m_maxRecords{0};
158 bool m_maxRecordsHasBeenSet = false;
159
160 Aws::String m_nextToken;
161 bool m_nextTokenHasBeenSet = false;
162
163 ScanBy m_scanBy{ScanBy::NOT_SET};
164 bool m_scanByHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace CloudWatch
169} // namespace Aws
DescribeAlarmHistoryRequest & AddAlarmTypes(AlarmType value)
DescribeAlarmHistoryRequest & WithAlarmName(AlarmNameT &&value)
AWS_CLOUDWATCH_API DescribeAlarmHistoryRequest()=default
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeAlarmHistoryRequest & WithStartDate(StartDateT &&value)
DescribeAlarmHistoryRequest & WithNextToken(NextTokenT &&value)
DescribeAlarmHistoryRequest & WithEndDate(EndDateT &&value)
DescribeAlarmHistoryRequest & WithHistoryItemType(HistoryItemType value)
DescribeAlarmHistoryRequest & WithAlarmTypes(AlarmTypesT &&value)
DescribeAlarmHistoryRequest & WithScanBy(ScanBy value)
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector