AWS SDK for C++  0.14.3
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 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
41  inline const Aws::String& GetAlarmName() const{ return m_alarmName; }
42 
46  inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
47 
51  inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
52 
56  inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
57 
61  inline DescribeAlarmHistoryRequest& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
62 
66  inline DescribeAlarmHistoryRequest& WithAlarmName(Aws::String&& value) { SetAlarmName(value); return *this;}
67 
71  inline DescribeAlarmHistoryRequest& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
72 
76  inline const HistoryItemType& GetHistoryItemType() const{ return m_historyItemType; }
77 
81  inline void SetHistoryItemType(const HistoryItemType& value) { m_historyItemTypeHasBeenSet = true; m_historyItemType = value; }
82 
86  inline void SetHistoryItemType(HistoryItemType&& value) { m_historyItemTypeHasBeenSet = true; m_historyItemType = value; }
87 
91  inline DescribeAlarmHistoryRequest& WithHistoryItemType(const HistoryItemType& value) { SetHistoryItemType(value); return *this;}
92 
96  inline DescribeAlarmHistoryRequest& WithHistoryItemType(HistoryItemType&& value) { SetHistoryItemType(value); return *this;}
97 
101  inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; }
102 
106  inline void SetStartDate(const Aws::Utils::DateTime& value) { m_startDateHasBeenSet = true; m_startDate = value; }
107 
111  inline void SetStartDate(Aws::Utils::DateTime&& value) { m_startDateHasBeenSet = true; m_startDate = value; }
112 
116  inline DescribeAlarmHistoryRequest& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;}
117 
121  inline DescribeAlarmHistoryRequest& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(value); return *this;}
122 
126  inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; }
127 
131  inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; }
132 
136  inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = value; }
137 
141  inline DescribeAlarmHistoryRequest& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;}
142 
146  inline DescribeAlarmHistoryRequest& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(value); return *this;}
147 
151  inline int GetMaxRecords() const{ return m_maxRecords; }
152 
156  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
157 
161  inline DescribeAlarmHistoryRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
162 
167  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
168 
173  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
174 
179  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
180 
185  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
186 
191  inline DescribeAlarmHistoryRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
192 
197  inline DescribeAlarmHistoryRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
198 
203  inline DescribeAlarmHistoryRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
204 
205  private:
206  Aws::String m_alarmName;
207  bool m_alarmNameHasBeenSet;
208  HistoryItemType m_historyItemType;
209  bool m_historyItemTypeHasBeenSet;
210  Aws::Utils::DateTime m_startDate;
211  bool m_startDateHasBeenSet;
212  Aws::Utils::DateTime m_endDate;
213  bool m_endDateHasBeenSet;
214  int m_maxRecords;
215  bool m_maxRecordsHasBeenSet;
216  Aws::String m_nextToken;
217  bool m_nextTokenHasBeenSet;
218  };
219 
220 } // namespace Model
221 } // namespace CloudWatch
222 } // namespace Aws
DescribeAlarmHistoryRequest & WithStartDate(const Aws::Utils::DateTime &value)
DescribeAlarmHistoryRequest & WithAlarmName(Aws::String &&value)
DescribeAlarmHistoryRequest & WithHistoryItemType(HistoryItemType &&value)
#define AWS_CLOUDWATCH_API
DescribeAlarmHistoryRequest & WithMaxRecords(int value)
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)