AWS SDK for C++  0.14.3
AWS SDK for C++
AccountLimit.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace CloudFormation
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  AccountLimit();
41  AccountLimit(const Aws::Utils::Xml::XmlNode& xmlNode);
42  AccountLimit& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
51  inline const Aws::String& GetName() const{ return m_name; }
52 
57  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 
63  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
64 
69  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
70 
75  inline AccountLimit& WithName(const Aws::String& value) { SetName(value); return *this;}
76 
81  inline AccountLimit& WithName(Aws::String&& value) { SetName(value); return *this;}
82 
87  inline AccountLimit& WithName(const char* value) { SetName(value); return *this;}
88 
92  inline int GetValue() const{ return m_value; }
93 
97  inline void SetValue(int value) { m_valueHasBeenSet = true; m_value = value; }
98 
102  inline AccountLimit& WithValue(int value) { SetValue(value); return *this;}
103 
104  private:
105  Aws::String m_name;
106  bool m_nameHasBeenSet;
107  int m_value;
108  bool m_valueHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace CloudFormation
113 } // namespace Aws
AccountLimit & WithValue(int value)
Definition: AccountLimit.h:102
void SetName(const Aws::String &value)
Definition: AccountLimit.h:57
AccountLimit & WithName(const Aws::String &value)
Definition: AccountLimit.h:75
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetName(Aws::String &&value)
Definition: AccountLimit.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CLOUDFORMATION_API
AccountLimit & WithName(Aws::String &&value)
Definition: AccountLimit.h:81
AccountLimit & WithName(const char *value)
Definition: AccountLimit.h:87
JSON (JavaScript Object Notation).
const Aws::String & GetName() const
Definition: AccountLimit.h:51