AWS SDK for C++  0.14.3
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 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
41  inline const Aws::Vector<Aws::String>& GetAlarmNames() const{ return m_alarmNames; }
42 
46  inline void SetAlarmNames(const Aws::Vector<Aws::String>& value) { m_alarmNamesHasBeenSet = true; m_alarmNames = value; }
47 
51  inline void SetAlarmNames(Aws::Vector<Aws::String>&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames = value; }
52 
56  inline DescribeAlarmsRequest& WithAlarmNames(const Aws::Vector<Aws::String>& value) { SetAlarmNames(value); return *this;}
57 
61  inline DescribeAlarmsRequest& WithAlarmNames(Aws::Vector<Aws::String>&& value) { SetAlarmNames(value); return *this;}
62 
66  inline DescribeAlarmsRequest& AddAlarmNames(const Aws::String& value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(value); return *this; }
67 
71  inline DescribeAlarmsRequest& AddAlarmNames(Aws::String&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(value); return *this; }
72 
76  inline DescribeAlarmsRequest& AddAlarmNames(const char* value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(value); return *this; }
77 
82  inline const Aws::String& GetAlarmNamePrefix() const{ return m_alarmNamePrefix; }
83 
88  inline void SetAlarmNamePrefix(const Aws::String& value) { m_alarmNamePrefixHasBeenSet = true; m_alarmNamePrefix = value; }
89 
94  inline void SetAlarmNamePrefix(Aws::String&& value) { m_alarmNamePrefixHasBeenSet = true; m_alarmNamePrefix = value; }
95 
100  inline void SetAlarmNamePrefix(const char* value) { m_alarmNamePrefixHasBeenSet = true; m_alarmNamePrefix.assign(value); }
101 
106  inline DescribeAlarmsRequest& WithAlarmNamePrefix(const Aws::String& value) { SetAlarmNamePrefix(value); return *this;}
107 
112  inline DescribeAlarmsRequest& WithAlarmNamePrefix(Aws::String&& value) { SetAlarmNamePrefix(value); return *this;}
113 
118  inline DescribeAlarmsRequest& WithAlarmNamePrefix(const char* value) { SetAlarmNamePrefix(value); return *this;}
119 
123  inline const StateValue& GetStateValue() const{ return m_stateValue; }
124 
128  inline void SetStateValue(const StateValue& value) { m_stateValueHasBeenSet = true; m_stateValue = value; }
129 
133  inline void SetStateValue(StateValue&& value) { m_stateValueHasBeenSet = true; m_stateValue = value; }
134 
138  inline DescribeAlarmsRequest& WithStateValue(const StateValue& value) { SetStateValue(value); return *this;}
139 
143  inline DescribeAlarmsRequest& WithStateValue(StateValue&& value) { SetStateValue(value); return *this;}
144 
148  inline const Aws::String& GetActionPrefix() const{ return m_actionPrefix; }
149 
153  inline void SetActionPrefix(const Aws::String& value) { m_actionPrefixHasBeenSet = true; m_actionPrefix = value; }
154 
158  inline void SetActionPrefix(Aws::String&& value) { m_actionPrefixHasBeenSet = true; m_actionPrefix = value; }
159 
163  inline void SetActionPrefix(const char* value) { m_actionPrefixHasBeenSet = true; m_actionPrefix.assign(value); }
164 
168  inline DescribeAlarmsRequest& WithActionPrefix(const Aws::String& value) { SetActionPrefix(value); return *this;}
169 
173  inline DescribeAlarmsRequest& WithActionPrefix(Aws::String&& value) { SetActionPrefix(value); return *this;}
174 
178  inline DescribeAlarmsRequest& WithActionPrefix(const char* value) { SetActionPrefix(value); return *this;}
179 
183  inline int GetMaxRecords() const{ return m_maxRecords; }
184 
188  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
189 
193  inline DescribeAlarmsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
194 
199  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
200 
205  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
206 
211  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
212 
217  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
218 
223  inline DescribeAlarmsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
224 
229  inline DescribeAlarmsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
230 
235  inline DescribeAlarmsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
236 
237  private:
238  Aws::Vector<Aws::String> m_alarmNames;
239  bool m_alarmNamesHasBeenSet;
240  Aws::String m_alarmNamePrefix;
241  bool m_alarmNamePrefixHasBeenSet;
242  StateValue m_stateValue;
243  bool m_stateValueHasBeenSet;
244  Aws::String m_actionPrefix;
245  bool m_actionPrefixHasBeenSet;
246  int m_maxRecords;
247  bool m_maxRecordsHasBeenSet;
248  Aws::String m_nextToken;
249  bool m_nextTokenHasBeenSet;
250  };
251 
252 } // namespace Model
253 } // namespace CloudWatch
254 } // 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 & 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 & WithMaxRecords(int 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).