AWS SDK for C++  0.12.9
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 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
40  inline const Aws::String& GetAlarmName() const{ return m_alarmName; }
41 
46  inline void SetAlarmName(const Aws::String& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
47 
52  inline void SetAlarmName(Aws::String&& value) { m_alarmNameHasBeenSet = true; m_alarmName = value; }
53 
58  inline void SetAlarmName(const char* value) { m_alarmNameHasBeenSet = true; m_alarmName.assign(value); }
59 
64  inline SetAlarmStateRequest& WithAlarmName(const Aws::String& value) { SetAlarmName(value); return *this;}
65 
70  inline SetAlarmStateRequest& WithAlarmName(Aws::String&& value) { SetAlarmName(value); return *this;}
71 
76  inline SetAlarmStateRequest& WithAlarmName(const char* value) { SetAlarmName(value); return *this;}
77 
81  inline const StateValue& GetStateValue() const{ return m_stateValue; }
82 
86  inline void SetStateValue(const StateValue& value) { m_stateValueHasBeenSet = true; m_stateValue = value; }
87 
91  inline void SetStateValue(StateValue&& value) { m_stateValueHasBeenSet = true; m_stateValue = value; }
92 
96  inline SetAlarmStateRequest& WithStateValue(const StateValue& value) { SetStateValue(value); return *this;}
97 
101  inline SetAlarmStateRequest& WithStateValue(StateValue&& value) { SetStateValue(value); return *this;}
102 
107  inline const Aws::String& GetStateReason() const{ return m_stateReason; }
108 
113  inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
114 
119  inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
120 
125  inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
126 
131  inline SetAlarmStateRequest& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
132 
137  inline SetAlarmStateRequest& WithStateReason(Aws::String&& value) { SetStateReason(value); return *this;}
138 
143  inline SetAlarmStateRequest& WithStateReason(const char* value) { SetStateReason(value); return *this;}
144 
149  inline const Aws::String& GetStateReasonData() const{ return m_stateReasonData; }
150 
155  inline void SetStateReasonData(const Aws::String& value) { m_stateReasonDataHasBeenSet = true; m_stateReasonData = value; }
156 
161  inline void SetStateReasonData(Aws::String&& value) { m_stateReasonDataHasBeenSet = true; m_stateReasonData = value; }
162 
167  inline void SetStateReasonData(const char* value) { m_stateReasonDataHasBeenSet = true; m_stateReasonData.assign(value); }
168 
173  inline SetAlarmStateRequest& WithStateReasonData(const Aws::String& value) { SetStateReasonData(value); return *this;}
174 
179  inline SetAlarmStateRequest& WithStateReasonData(Aws::String&& value) { SetStateReasonData(value); return *this;}
180 
185  inline SetAlarmStateRequest& WithStateReasonData(const char* value) { SetStateReasonData(value); return *this;}
186 
187  private:
188  Aws::String m_alarmName;
189  bool m_alarmNameHasBeenSet;
190  StateValue m_stateValue;
191  bool m_stateValueHasBeenSet;
192  Aws::String m_stateReason;
193  bool m_stateReasonHasBeenSet;
194  Aws::String m_stateReasonData;
195  bool m_stateReasonDataHasBeenSet;
196  };
197 
198 } // namespace Model
199 } // namespace CloudWatch
200 } // 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)