AWS SDK for C++  0.12.9
AWS SDK for C++
DescribeAlarmHistoryRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace CloudWatch
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetAlarmName() const{ return m_alarmName; }
41 
45  inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
46 
50  inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
51 
55  inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
56 
60  inline DescribeAlarmHistoryRequest& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
61 
65  inline DescribeAlarmHistoryRequest& WithAlarmName(Aws::String&& value) { SetAlarmName(value); return *this;}
66 
70  inline DescribeAlarmHistoryRequest& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
71 
75  inline const HistoryItemType& GetHistoryItemType() const{ return m_historyItemType; }
76 
80  inline void SetHistoryItemType(const HistoryItemType& value) { m_historyItemTypeHasBeenSet = true; m_historyItemType = value; }
81 
85  inline void SetHistoryItemType(HistoryItemType&& value) { m_historyItemTypeHasBeenSet = true; m_historyItemType = value; }
86 
90  inline DescribeAlarmHistoryRequest& WithHistoryItemType(const HistoryItemType& value) { SetHistoryItemType(value); return *this;}
91 
95  inline DescribeAlarmHistoryRequest& WithHistoryItemType(HistoryItemType&& value) { SetHistoryItemType(value); return *this;}
96 
100  inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; }
101 
105  inline void SetStartDate(const Aws::Utils::DateTime& value) { m_startDateHasBeenSet = true; m_startDate = value; }
106 
110  inline void SetStartDate(Aws::Utils::DateTime&& value) { m_startDateHasBeenSet = true; m_startDate = value; }
111 
115  inline DescribeAlarmHistoryRequest& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;}
116 
120  inline DescribeAlarmHistoryRequest& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(value); return *this;}
121 
125  inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; }
126 
130  inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; }
131 
135  inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = value; }
136 
140  inline DescribeAlarmHistoryRequest& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;}
141 
145  inline DescribeAlarmHistoryRequest& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(value); return *this;}
146 
150  inline long GetMaxRecords() const{ return m_maxRecords; }
151 
155  inline void SetMaxRecords(long value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
156 
160  inline DescribeAlarmHistoryRequest& WithMaxRecords(long value) { SetMaxRecords(value); return *this;}
161 
166  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
167 
172  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
173 
178  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
179 
184  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
185 
190  inline DescribeAlarmHistoryRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
191 
196  inline DescribeAlarmHistoryRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
197 
202  inline DescribeAlarmHistoryRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
203 
204  private:
205  Aws::String m_alarmName;
206  bool m_alarmNameHasBeenSet;
207  HistoryItemType m_historyItemType;
208  bool m_historyItemTypeHasBeenSet;
209  Aws::Utils::DateTime m_startDate;
210  bool m_startDateHasBeenSet;
211  Aws::Utils::DateTime m_endDate;
212  bool m_endDateHasBeenSet;
213  long m_maxRecords;
214  bool m_maxRecordsHasBeenSet;
215  Aws::String m_nextToken;
216  bool m_nextTokenHasBeenSet;
217  };
218 
219 } // namespace Model
220 } // namespace CloudWatch
221 } // namespace Aws
DescribeAlarmHistoryRequest & WithStartDate(const Aws::Utils::DateTime &value)
DescribeAlarmHistoryRequest & WithMaxRecords(long value)
DescribeAlarmHistoryRequest & WithAlarmName(Aws::String &&value)
DescribeAlarmHistoryRequest & WithHistoryItemType(HistoryItemType &&value)
#define AWS_CLOUDWATCH_API
DescribeAlarmHistoryRequest & WithStartDate(Aws::Utils::DateTime &&value)
DescribeAlarmHistoryRequest & WithNextToken(const Aws::String &value)
DescribeAlarmHistoryRequest & WithAlarmName(const char *value)
DescribeAlarmHistoryRequest & WithNextToken(const char *value)
DescribeAlarmHistoryRequest & WithNextToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeAlarmHistoryRequest & WithHistoryItemType(const HistoryItemType &value)
DescribeAlarmHistoryRequest & WithAlarmName(const Aws::String &value)
DescribeAlarmHistoryRequest & WithEndDate(Aws::Utils::DateTime &&value)
JSON (JavaScript Object Notation).
DescribeAlarmHistoryRequest & WithEndDate(const Aws::Utils::DateTime &value)