AWS SDK for C++  0.12.9
AWS SDK for C++
DescribeAlarmsRequest.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::Vector<Aws::String>& GetAlarmNames() const{ return m_alarmNames; }
41 
45  inline void SetAlarmNames(const Aws::Vector<Aws::String>& value) { m_alarmNamesHasBeenSet = true; m_alarmNames = value; }
46 
50  inline void SetAlarmNames(Aws::Vector<Aws::String>&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames = value; }
51 
55  inline DescribeAlarmsRequest& WithAlarmNames(const Aws::Vector<Aws::String>& value) { SetAlarmNames(value); return *this;}
56 
60  inline DescribeAlarmsRequest& WithAlarmNames(Aws::Vector<Aws::String>&& value) { SetAlarmNames(value); return *this;}
61 
65  inline DescribeAlarmsRequest& AddAlarmNames(const Aws::String& value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(value); return *this; }
66 
70  inline DescribeAlarmsRequest& AddAlarmNames(Aws::String&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(value); return *this; }
71 
75  inline DescribeAlarmsRequest& AddAlarmNames(const char* value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(value); return *this; }
76 
81  inline const Aws::String& GetAlarmNamePrefix() const{ return m_alarmNamePrefix; }
82 
87  inline void SetAlarmNamePrefix(const Aws::String& value) { m_alarmNamePrefixHasBeenSet = true; m_alarmNamePrefix = value; }
88 
93  inline void SetAlarmNamePrefix(Aws::String&& value) { m_alarmNamePrefixHasBeenSet = true; m_alarmNamePrefix = value; }
94 
99  inline void SetAlarmNamePrefix(const char* value) { m_alarmNamePrefixHasBeenSet = true; m_alarmNamePrefix.assign(value); }
100 
105  inline DescribeAlarmsRequest& WithAlarmNamePrefix(const Aws::String& value) { SetAlarmNamePrefix(value); return *this;}
106 
111  inline DescribeAlarmsRequest& WithAlarmNamePrefix(Aws::String&& value) { SetAlarmNamePrefix(value); return *this;}
112 
117  inline DescribeAlarmsRequest& WithAlarmNamePrefix(const char* value) { SetAlarmNamePrefix(value); return *this;}
118 
122  inline const StateValue& GetStateValue() const{ return m_stateValue; }
123 
127  inline void SetStateValue(const StateValue& value) { m_stateValueHasBeenSet = true; m_stateValue = value; }
128 
132  inline void SetStateValue(StateValue&& value) { m_stateValueHasBeenSet = true; m_stateValue = value; }
133 
137  inline DescribeAlarmsRequest& WithStateValue(const StateValue& value) { SetStateValue(value); return *this;}
138 
142  inline DescribeAlarmsRequest& WithStateValue(StateValue&& value) { SetStateValue(value); return *this;}
143 
147  inline const Aws::String& GetActionPrefix() const{ return m_actionPrefix; }
148 
152  inline void SetActionPrefix(const Aws::String& value) { m_actionPrefixHasBeenSet = true; m_actionPrefix = value; }
153 
157  inline void SetActionPrefix(Aws::String&& value) { m_actionPrefixHasBeenSet = true; m_actionPrefix = value; }
158 
162  inline void SetActionPrefix(const char* value) { m_actionPrefixHasBeenSet = true; m_actionPrefix.assign(value); }
163 
167  inline DescribeAlarmsRequest& WithActionPrefix(const Aws::String& value) { SetActionPrefix(value); return *this;}
168 
172  inline DescribeAlarmsRequest& WithActionPrefix(Aws::String&& value) { SetActionPrefix(value); return *this;}
173 
177  inline DescribeAlarmsRequest& WithActionPrefix(const char* value) { SetActionPrefix(value); return *this;}
178 
182  inline long GetMaxRecords() const{ return m_maxRecords; }
183 
187  inline void SetMaxRecords(long value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
188 
192  inline DescribeAlarmsRequest& WithMaxRecords(long value) { SetMaxRecords(value); return *this;}
193 
198  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
199 
204  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
205 
210  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
211 
216  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
217 
222  inline DescribeAlarmsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
223 
228  inline DescribeAlarmsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
229 
234  inline DescribeAlarmsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
235 
236  private:
237  Aws::Vector<Aws::String> m_alarmNames;
238  bool m_alarmNamesHasBeenSet;
239  Aws::String m_alarmNamePrefix;
240  bool m_alarmNamePrefixHasBeenSet;
241  StateValue m_stateValue;
242  bool m_stateValueHasBeenSet;
243  Aws::String m_actionPrefix;
244  bool m_actionPrefixHasBeenSet;
245  long m_maxRecords;
246  bool m_maxRecordsHasBeenSet;
247  Aws::String m_nextToken;
248  bool m_nextTokenHasBeenSet;
249  };
250 
251 } // namespace Model
252 } // namespace CloudWatch
253 } // namespace Aws
void SetAlarmNames(Aws::Vector< Aws::String > &&value)
DescribeAlarmsRequest & WithNextToken(const Aws::String &value)
DescribeAlarmsRequest & WithActionPrefix(Aws::String &&value)
DescribeAlarmsRequest & WithActionPrefix(const char *value)
DescribeAlarmsRequest & WithMaxRecords(long value)
DescribeAlarmsRequest & WithAlarmNamePrefix(const char *value)
DescribeAlarmsRequest & WithAlarmNames(Aws::Vector< Aws::String > &&value)
DescribeAlarmsRequest & AddAlarmNames(const char *value)
DescribeAlarmsRequest & WithStateValue(const StateValue &value)
#define AWS_CLOUDWATCH_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeAlarmsRequest & AddAlarmNames(const Aws::String &value)
DescribeAlarmsRequest & WithNextToken(const char *value)
DescribeAlarmsRequest & WithActionPrefix(const Aws::String &value)
DescribeAlarmsRequest & AddAlarmNames(Aws::String &&value)
DescribeAlarmsRequest & WithNextToken(Aws::String &&value)
void SetAlarmNames(const Aws::Vector< Aws::String > &value)
DescribeAlarmsRequest & WithAlarmNamePrefix(const Aws::String &value)
DescribeAlarmsRequest & WithAlarmNamePrefix(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeAlarmsRequest & WithStateValue(StateValue &&value)
const Aws::Vector< Aws::String > & GetAlarmNames() const
DescribeAlarmsRequest & WithAlarmNames(const Aws::Vector< Aws::String > &value)
void SetAlarmNamePrefix(const Aws::String &value)
JSON (JavaScript Object Notation).