AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
51 inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = std::move(value); }
52 inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
53 inline DescribeAlarmHistoryRequest& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
54 inline DescribeAlarmHistoryRequest& WithAlarmName(Aws::String&& value) { SetAlarmName(std::move(value)); return *this;}
55 inline DescribeAlarmHistoryRequest& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
57
59
64 inline const Aws::Vector<AlarmType>& GetAlarmTypes() const{ return m_alarmTypes; }
65 inline bool AlarmTypesHasBeenSet() const { return m_alarmTypesHasBeenSet; }
66 inline void SetAlarmTypes(const Aws::Vector<AlarmType>& value) { m_alarmTypesHasBeenSet = true; m_alarmTypes = value; }
67 inline void SetAlarmTypes(Aws::Vector<AlarmType>&& value) { m_alarmTypesHasBeenSet = true; m_alarmTypes = std::move(value); }
69 inline DescribeAlarmHistoryRequest& WithAlarmTypes(Aws::Vector<AlarmType>&& value) { SetAlarmTypes(std::move(value)); return *this;}
70 inline DescribeAlarmHistoryRequest& AddAlarmTypes(const AlarmType& value) { m_alarmTypesHasBeenSet = true; m_alarmTypes.push_back(value); return *this; }
71 inline DescribeAlarmHistoryRequest& AddAlarmTypes(AlarmType&& value) { m_alarmTypesHasBeenSet = true; m_alarmTypes.push_back(std::move(value)); return *this; }
73
75
78 inline const HistoryItemType& GetHistoryItemType() const{ return m_historyItemType; }
79 inline bool HistoryItemTypeHasBeenSet() const { return m_historyItemTypeHasBeenSet; }
80 inline void SetHistoryItemType(const HistoryItemType& value) { m_historyItemTypeHasBeenSet = true; m_historyItemType = value; }
81 inline void SetHistoryItemType(HistoryItemType&& value) { m_historyItemTypeHasBeenSet = true; m_historyItemType = std::move(value); }
83 inline DescribeAlarmHistoryRequest& WithHistoryItemType(HistoryItemType&& value) { SetHistoryItemType(std::move(value)); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; }
91 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
92 inline void SetStartDate(const Aws::Utils::DateTime& value) { m_startDateHasBeenSet = true; m_startDate = value; }
93 inline void SetStartDate(Aws::Utils::DateTime&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
94 inline DescribeAlarmHistoryRequest& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;}
95 inline DescribeAlarmHistoryRequest& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(std::move(value)); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; }
103 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
104 inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; }
105 inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
106 inline DescribeAlarmHistoryRequest& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;}
107 inline DescribeAlarmHistoryRequest& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;}
109
111
114 inline int GetMaxRecords() const{ return m_maxRecords; }
115 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
116 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
117 inline DescribeAlarmHistoryRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
119
121
125 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
126 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
127 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
128 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
129 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
130 inline DescribeAlarmHistoryRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
131 inline DescribeAlarmHistoryRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
132 inline DescribeAlarmHistoryRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
134
136
142 inline const ScanBy& GetScanBy() const{ return m_scanBy; }
143 inline bool ScanByHasBeenSet() const { return m_scanByHasBeenSet; }
144 inline void SetScanBy(const ScanBy& value) { m_scanByHasBeenSet = true; m_scanBy = value; }
145 inline void SetScanBy(ScanBy&& value) { m_scanByHasBeenSet = true; m_scanBy = std::move(value); }
146 inline DescribeAlarmHistoryRequest& WithScanBy(const ScanBy& value) { SetScanBy(value); return *this;}
147 inline DescribeAlarmHistoryRequest& WithScanBy(ScanBy&& value) { SetScanBy(std::move(value)); return *this;}
149 private:
150
151 Aws::String m_alarmName;
152 bool m_alarmNameHasBeenSet = false;
153
154 Aws::Vector<AlarmType> m_alarmTypes;
155 bool m_alarmTypesHasBeenSet = false;
156
157 HistoryItemType m_historyItemType;
158 bool m_historyItemTypeHasBeenSet = false;
159
160 Aws::Utils::DateTime m_startDate;
161 bool m_startDateHasBeenSet = false;
162
163 Aws::Utils::DateTime m_endDate;
164 bool m_endDateHasBeenSet = false;
165
166 int m_maxRecords;
167 bool m_maxRecordsHasBeenSet = false;
168
169 Aws::String m_nextToken;
170 bool m_nextTokenHasBeenSet = false;
171
172 ScanBy m_scanBy;
173 bool m_scanByHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace CloudWatch
178} // namespace Aws
DescribeAlarmHistoryRequest & WithNextToken(const Aws::String &value)
DescribeAlarmHistoryRequest & WithAlarmTypes(Aws::Vector< AlarmType > &&value)
DescribeAlarmHistoryRequest & WithAlarmName(Aws::String &&value)
DescribeAlarmHistoryRequest & WithEndDate(Aws::Utils::DateTime &&value)
void SetAlarmTypes(const Aws::Vector< AlarmType > &value)
DescribeAlarmHistoryRequest & AddAlarmTypes(const AlarmType &value)
DescribeAlarmHistoryRequest & WithAlarmName(const char *value)
DescribeAlarmHistoryRequest & AddAlarmTypes(AlarmType &&value)
DescribeAlarmHistoryRequest & WithNextToken(Aws::String &&value)
DescribeAlarmHistoryRequest & WithAlarmName(const Aws::String &value)
DescribeAlarmHistoryRequest & WithAlarmTypes(const Aws::Vector< AlarmType > &value)
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeAlarmHistoryRequest & WithScanBy(ScanBy &&value)
DescribeAlarmHistoryRequest & WithStartDate(Aws::Utils::DateTime &&value)
DescribeAlarmHistoryRequest & WithHistoryItemType(const HistoryItemType &value)
DescribeAlarmHistoryRequest & WithStartDate(const Aws::Utils::DateTime &value)
DescribeAlarmHistoryRequest & WithNextToken(const char *value)
DescribeAlarmHistoryRequest & WithHistoryItemType(HistoryItemType &&value)
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
DescribeAlarmHistoryRequest & WithScanBy(const ScanBy &value)
DescribeAlarmHistoryRequest & WithEndDate(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector