AWS SDK for C++  0.14.3
AWS SDK for C++
AlarmHistoryItem.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 Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace CloudWatch
32 {
33 namespace Model
34 {
35 
43  {
44  public:
47  AlarmHistoryItem& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
48 
49  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
50  void OutputToStream(Aws::OStream& oStream, const char* location) const;
51 
55  inline const Aws::String& GetAlarmName() const{ return m_alarmName; }
56 
60  inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
61 
65  inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
66 
70  inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
71 
75  inline AlarmHistoryItem& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
76 
80  inline AlarmHistoryItem& WithAlarmName(Aws::String&& value) { SetAlarmName(value); return *this;}
81 
85  inline AlarmHistoryItem& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
86 
90  inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
91 
95  inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
96 
100  inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
101 
105  inline AlarmHistoryItem& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
106 
110  inline AlarmHistoryItem& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(value); return *this;}
111 
115  inline const HistoryItemType& GetHistoryItemType() const{ return m_historyItemType; }
116 
120  inline void SetHistoryItemType(const HistoryItemType& value) { m_historyItemTypeHasBeenSet = true; m_historyItemType = value; }
121 
125  inline void SetHistoryItemType(HistoryItemType&& value) { m_historyItemTypeHasBeenSet = true; m_historyItemType = value; }
126 
130  inline AlarmHistoryItem& WithHistoryItemType(const HistoryItemType& value) { SetHistoryItemType(value); return *this;}
131 
135  inline AlarmHistoryItem& WithHistoryItemType(HistoryItemType&& value) { SetHistoryItemType(value); return *this;}
136 
140  inline const Aws::String& GetHistorySummary() const{ return m_historySummary; }
141 
145  inline void SetHistorySummary(const Aws::String& value) { m_historySummaryHasBeenSet = true; m_historySummary = value; }
146 
150  inline void SetHistorySummary(Aws::String&& value) { m_historySummaryHasBeenSet = true; m_historySummary = value; }
151 
155  inline void SetHistorySummary(const char* value) { m_historySummaryHasBeenSet = true; m_historySummary.assign(value); }
156 
160  inline AlarmHistoryItem& WithHistorySummary(const Aws::String& value) { SetHistorySummary(value); return *this;}
161 
165  inline AlarmHistoryItem& WithHistorySummary(Aws::String&& value) { SetHistorySummary(value); return *this;}
166 
170  inline AlarmHistoryItem& WithHistorySummary(const char* value) { SetHistorySummary(value); return *this;}
171 
175  inline const Aws::String& GetHistoryData() const{ return m_historyData; }
176 
180  inline void SetHistoryData(const Aws::String& value) { m_historyDataHasBeenSet = true; m_historyData = value; }
181 
185  inline void SetHistoryData(Aws::String&& value) { m_historyDataHasBeenSet = true; m_historyData = value; }
186 
190  inline void SetHistoryData(const char* value) { m_historyDataHasBeenSet = true; m_historyData.assign(value); }
191 
195  inline AlarmHistoryItem& WithHistoryData(const Aws::String& value) { SetHistoryData(value); return *this;}
196 
200  inline AlarmHistoryItem& WithHistoryData(Aws::String&& value) { SetHistoryData(value); return *this;}
201 
205  inline AlarmHistoryItem& WithHistoryData(const char* value) { SetHistoryData(value); return *this;}
206 
207  private:
208  Aws::String m_alarmName;
209  bool m_alarmNameHasBeenSet;
210  Aws::Utils::DateTime m_timestamp;
211  bool m_timestampHasBeenSet;
212  HistoryItemType m_historyItemType;
213  bool m_historyItemTypeHasBeenSet;
214  Aws::String m_historySummary;
215  bool m_historySummaryHasBeenSet;
216  Aws::String m_historyData;
217  bool m_historyDataHasBeenSet;
218  };
219 
220 } // namespace Model
221 } // namespace CloudWatch
222 } // namespace Aws
const Aws::String & GetHistoryData() const
AlarmHistoryItem & WithAlarmName(const Aws::String &value)
void SetTimestamp(Aws::Utils::DateTime &&value)
AlarmHistoryItem & WithHistorySummary(const Aws::String &value)
const HistoryItemType & GetHistoryItemType() const
void SetAlarmName(const Aws::String &value)
#define AWS_CLOUDWATCH_API
AlarmHistoryItem & WithHistorySummary(const char *value)
AlarmHistoryItem & WithHistoryItemType(HistoryItemType &&value)
AlarmHistoryItem & WithHistoryData(Aws::String &&value)
const Aws::Utils::DateTime & GetTimestamp() const
AlarmHistoryItem & WithHistoryItemType(const HistoryItemType &value)
AlarmHistoryItem & WithTimestamp(Aws::Utils::DateTime &&value)
void SetHistoryItemType(HistoryItemType &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetHistoryItemType(const HistoryItemType &value)
const Aws::String & GetHistorySummary() const
AlarmHistoryItem & WithTimestamp(const Aws::Utils::DateTime &value)
AlarmHistoryItem & WithHistoryData(const Aws::String &value)
void SetHistorySummary(const Aws::String &value)
void SetAlarmName(Aws::String &&value)
AlarmHistoryItem & WithHistoryData(const char *value)
void SetTimestamp(const Aws::Utils::DateTime &value)
void SetHistoryData(const Aws::String &value)
void SetHistorySummary(Aws::String &&value)
const Aws::String & GetAlarmName() const
AlarmHistoryItem & WithHistorySummary(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AlarmHistoryItem & WithAlarmName(const char *value)
void SetHistoryData(Aws::String &&value)
AlarmHistoryItem & WithAlarmName(Aws::String &&value)
JSON (JavaScript Object Notation).