AWS SDK for C++  0.14.3
AWS SDK for C++
DisableAlarmActionsRequest.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 
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 DisableAlarmActionsRequest& WithAlarmNames(const Aws::Vector<Aws::String>& value) { SetAlarmNames(value); return *this;}
56 
60  inline DisableAlarmActionsRequest& WithAlarmNames(Aws::Vector<Aws::String>&& value) { SetAlarmNames(value); return *this;}
61 
65  inline DisableAlarmActionsRequest& AddAlarmNames(const Aws::String& value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(value); return *this; }
66 
70  inline DisableAlarmActionsRequest& AddAlarmNames(Aws::String&& value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(value); return *this; }
71 
75  inline DisableAlarmActionsRequest& AddAlarmNames(const char* value) { m_alarmNamesHasBeenSet = true; m_alarmNames.push_back(value); return *this; }
76 
77  private:
78  Aws::Vector<Aws::String> m_alarmNames;
79  bool m_alarmNamesHasBeenSet;
80  };
81 
82 } // namespace Model
83 } // namespace CloudWatch
84 } // namespace Aws
#define AWS_CLOUDWATCH_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetAlarmNames(const Aws::Vector< Aws::String > &value)
DisableAlarmActionsRequest & AddAlarmNames(const Aws::String &value)
void SetAlarmNames(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetAlarmNames() const
DisableAlarmActionsRequest & AddAlarmNames(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DisableAlarmActionsRequest & WithAlarmNames(const Aws::Vector< Aws::String > &value)
DisableAlarmActionsRequest & WithAlarmNames(Aws::Vector< Aws::String > &&value)
DisableAlarmActionsRequest & AddAlarmNames(Aws::String &&value)
JSON (JavaScript Object Notation).