AWS SDK for C++  0.12.9
AWS SDK for C++
AccountAttribute.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
16 #include <aws/ec2/EC2_EXPORTS.h>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace EC2
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  AccountAttribute& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
52  inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
53 
57  inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
58 
62  inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
63 
67  inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
68 
72  inline AccountAttribute& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
73 
77  inline AccountAttribute& WithAttributeName(Aws::String&& value) { SetAttributeName(value); return *this;}
78 
82  inline AccountAttribute& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
83 
87  inline const Aws::Vector<AccountAttributeValue>& GetAttributeValues() const{ return m_attributeValues; }
88 
92  inline void SetAttributeValues(const Aws::Vector<AccountAttributeValue>& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = value; }
93 
97  inline void SetAttributeValues(Aws::Vector<AccountAttributeValue>&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = value; }
98 
102  inline AccountAttribute& WithAttributeValues(const Aws::Vector<AccountAttributeValue>& value) { SetAttributeValues(value); return *this;}
103 
107  inline AccountAttribute& WithAttributeValues(Aws::Vector<AccountAttributeValue>&& value) { SetAttributeValues(value); return *this;}
108 
112  inline AccountAttribute& AddAttributeValues(const AccountAttributeValue& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(value); return *this; }
113 
117  inline AccountAttribute& AddAttributeValues(AccountAttributeValue&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(value); return *this; }
118 
119  private:
120  Aws::String m_attributeName;
121  bool m_attributeNameHasBeenSet;
122  Aws::Vector<AccountAttributeValue> m_attributeValues;
123  bool m_attributeValuesHasBeenSet;
124  };
125 
126 } // namespace Model
127 } // namespace EC2
128 } // namespace Aws
AccountAttribute & WithAttributeValues(const Aws::Vector< AccountAttributeValue > &value)
AccountAttribute & AddAttributeValues(AccountAttributeValue &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetAttributeName(const Aws::String &value)
const Aws::Vector< AccountAttributeValue > & GetAttributeValues() const
void SetAttributeValues(const Aws::Vector< AccountAttributeValue > &value)
void SetAttributeName(const char *value)
AccountAttribute & WithAttributeName(const char *value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const Aws::String & GetAttributeName() const
AccountAttribute & WithAttributeName(const Aws::String &value)
void SetAttributeValues(Aws::Vector< AccountAttributeValue > &&value)
AccountAttribute & WithAttributeName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AccountAttribute & WithAttributeValues(Aws::Vector< AccountAttributeValue > &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
void SetAttributeName(Aws::String &&value)
JSON (JavaScript Object Notation).
AccountAttribute & AddAttributeValues(const AccountAttributeValue &value)