AWS SDK for C++  0.14.3
AWS SDK for C++
SetAlarmStateRequest.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
20 
21 namespace Aws
22 {
23 namespace CloudWatch
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
41  inline const Aws::String& GetAlarmName() const{ return m_alarmName; }
42 
47  inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
48 
53  inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
54 
59  inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
60 
65  inline SetAlarmStateRequest& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
66 
71  inline SetAlarmStateRequest& WithAlarmName(Aws::String&& value) { SetAlarmName(value); return *this;}
72 
77  inline SetAlarmStateRequest& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
78 
82  inline const StateValue& GetStateValue() const{ return m_stateValue; }
83 
87  inline void SetStateValue(const StateValue& value) { m_stateValueHasBeenSet = true; m_stateValue = value; }
88 
92  inline void SetStateValue(StateValue&& value) { m_stateValueHasBeenSet = true; m_stateValue = value; }
93 
97  inline SetAlarmStateRequest& WithStateValue(const StateValue& value) { SetStateValue(value); return *this;}
98 
102  inline SetAlarmStateRequest& WithStateValue(StateValue&& value) { SetStateValue(value); return *this;}
103 
108  inline const Aws::String& GetStateReason() const{ return m_stateReason; }
109 
114  inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
115 
120  inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
121 
126  inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
127 
132  inline SetAlarmStateRequest& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
133 
138  inline SetAlarmStateRequest& WithStateReason(Aws::String&& value) { SetStateReason(value); return *this;}
139 
144  inline SetAlarmStateRequest& WithStateReason(const char* value) { SetStateReason(value); return *this;}
145 
150  inline const Aws::String& GetStateReasonData() const{ return m_stateReasonData; }
151 
156  inline void SetStateReasonData(const Aws::String& value) { m_stateReasonDataHasBeenSet = true; m_stateReasonData = value; }
157 
162  inline void SetStateReasonData(Aws::String&& value) { m_stateReasonDataHasBeenSet = true; m_stateReasonData = value; }
163 
168  inline void SetStateReasonData(const char* value) { m_stateReasonDataHasBeenSet = true; m_stateReasonData.assign(value); }
169 
174  inline SetAlarmStateRequest& WithStateReasonData(const Aws::String& value) { SetStateReasonData(value); return *this;}
175 
180  inline SetAlarmStateRequest& WithStateReasonData(Aws::String&& value) { SetStateReasonData(value); return *this;}
181 
186  inline SetAlarmStateRequest& WithStateReasonData(const char* value) { SetStateReasonData(value); return *this;}
187 
188  private:
189  Aws::String m_alarmName;
190  bool m_alarmNameHasBeenSet;
191  StateValue m_stateValue;
192  bool m_stateValueHasBeenSet;
193  Aws::String m_stateReason;
194  bool m_stateReasonHasBeenSet;
195  Aws::String m_stateReasonData;
196  bool m_stateReasonDataHasBeenSet;
197  };
198 
199 } // namespace Model
200 } // namespace CloudWatch
201 } // namespace Aws
SetAlarmStateRequest & WithStateReason(const char *value)
#define AWS_CLOUDWATCH_API
SetAlarmStateRequest & WithStateReason(const Aws::String &value)
void SetStateReasonData(const Aws::String &value)
SetAlarmStateRequest & WithStateValue(const StateValue &value)
SetAlarmStateRequest & WithAlarmName(Aws::String &&value)
SetAlarmStateRequest & WithStateReasonData(Aws::String &&value)
SetAlarmStateRequest & WithAlarmName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SetAlarmStateRequest & WithAlarmName(const char *value)
SetAlarmStateRequest & WithStateValue(StateValue &&value)
SetAlarmStateRequest & WithStateReasonData(const Aws::String &value)
SetAlarmStateRequest & WithStateReason(Aws::String &&value)
JSON (JavaScript Object Notation).
SetAlarmStateRequest & WithStateReasonData(const char *value)