AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AccountAttribute.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/AccountAttributeValue.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EC2_API AccountAttribute() = default;
37 AWS_EC2_API AccountAttribute(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
49 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
50 template<typename AttributeNameT = Aws::String>
51 void SetAttributeName(AttributeNameT&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::forward<AttributeNameT>(value); }
52 template<typename AttributeNameT = Aws::String>
53 AccountAttribute& WithAttributeName(AttributeNameT&& value) { SetAttributeName(std::forward<AttributeNameT>(value)); return *this;}
55
57
60 inline const Aws::Vector<AccountAttributeValue>& GetAttributeValues() const { return m_attributeValues; }
61 inline bool AttributeValuesHasBeenSet() const { return m_attributeValuesHasBeenSet; }
62 template<typename AttributeValuesT = Aws::Vector<AccountAttributeValue>>
63 void SetAttributeValues(AttributeValuesT&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = std::forward<AttributeValuesT>(value); }
64 template<typename AttributeValuesT = Aws::Vector<AccountAttributeValue>>
65 AccountAttribute& WithAttributeValues(AttributeValuesT&& value) { SetAttributeValues(std::forward<AttributeValuesT>(value)); return *this;}
66 template<typename AttributeValuesT = AccountAttributeValue>
67 AccountAttribute& AddAttributeValues(AttributeValuesT&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.emplace_back(std::forward<AttributeValuesT>(value)); return *this; }
69 private:
70
71 Aws::String m_attributeName;
72 bool m_attributeNameHasBeenSet = false;
73
74 Aws::Vector<AccountAttributeValue> m_attributeValues;
75 bool m_attributeValuesHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace EC2
80} // namespace Aws
void SetAttributeName(AttributeNameT &&value)
AWS_EC2_API AccountAttribute(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API AccountAttribute()=default
AccountAttribute & AddAttributeValues(AttributeValuesT &&value)
void SetAttributeValues(AttributeValuesT &&value)
AccountAttribute & WithAttributeValues(AttributeValuesT &&value)
const Aws::Vector< AccountAttributeValue > & GetAttributeValues() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API AccountAttribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AccountAttribute & WithAttributeName(AttributeNameT &&value)
const Aws::String & GetAttributeName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream