AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AccountAttribute.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/AccountAttributeValue.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
30 public:
31 AWS_EC2_API AccountAttribute() = default;
32 AWS_EC2_API AccountAttribute(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
43 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
44 template <typename AttributeNameT = Aws::String>
45 void SetAttributeName(AttributeNameT&& value) {
46 m_attributeNameHasBeenSet = true;
47 m_attributeName = std::forward<AttributeNameT>(value);
48 }
49 template <typename AttributeNameT = Aws::String>
50 AccountAttribute& WithAttributeName(AttributeNameT&& value) {
51 SetAttributeName(std::forward<AttributeNameT>(value));
52 return *this;
53 }
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) {
64 m_attributeValuesHasBeenSet = true;
65 m_attributeValues = std::forward<AttributeValuesT>(value);
66 }
67 template <typename AttributeValuesT = Aws::Vector<AccountAttributeValue>>
68 AccountAttribute& WithAttributeValues(AttributeValuesT&& value) {
69 SetAttributeValues(std::forward<AttributeValuesT>(value));
70 return *this;
71 }
72 template <typename AttributeValuesT = AccountAttributeValue>
73 AccountAttribute& AddAttributeValues(AttributeValuesT&& value) {
74 m_attributeValuesHasBeenSet = true;
75 m_attributeValues.emplace_back(std::forward<AttributeValuesT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_attributeName;
81
82 Aws::Vector<AccountAttributeValue> m_attributeValues;
83 bool m_attributeNameHasBeenSet = false;
84 bool m_attributeValuesHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace EC2
89} // 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