AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
51 inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
52 inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
53 inline AccountAttribute& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
54 inline AccountAttribute& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
55 inline AccountAttribute& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
57
59
62 inline const Aws::Vector<AccountAttributeValue>& GetAttributeValues() const{ return m_attributeValues; }
63 inline bool AttributeValuesHasBeenSet() const { return m_attributeValuesHasBeenSet; }
64 inline void SetAttributeValues(const Aws::Vector<AccountAttributeValue>& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = value; }
65 inline void SetAttributeValues(Aws::Vector<AccountAttributeValue>&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = std::move(value); }
68 inline AccountAttribute& AddAttributeValues(const AccountAttributeValue& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(value); return *this; }
69 inline AccountAttribute& AddAttributeValues(AccountAttributeValue&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(std::move(value)); return *this; }
71 private:
72
73 Aws::String m_attributeName;
74 bool m_attributeNameHasBeenSet = false;
75
76 Aws::Vector<AccountAttributeValue> m_attributeValues;
77 bool m_attributeValuesHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace EC2
82} // namespace Aws
AccountAttribute & WithAttributeName(const char *value)
void SetAttributeName(const Aws::String &value)
AccountAttribute & WithAttributeValues(Aws::Vector< AccountAttributeValue > &&value)
AWS_EC2_API AccountAttribute(const Aws::Utils::Xml::XmlNode &xmlNode)
AccountAttribute & WithAttributeName(Aws::String &&value)
AccountAttribute & WithAttributeValues(const Aws::Vector< AccountAttributeValue > &value)
void SetAttributeValues(Aws::Vector< AccountAttributeValue > &&value)
const Aws::Vector< AccountAttributeValue > & GetAttributeValues() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AccountAttribute & AddAttributeValues(const AccountAttributeValue &value)
AWS_EC2_API AccountAttribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AccountAttribute & AddAttributeValues(AccountAttributeValue &&value)
void SetAttributeName(Aws::String &&value)
AccountAttribute & WithAttributeName(const Aws::String &value)
void SetAttributeName(const char *value)
void SetAttributeValues(const Aws::Vector< AccountAttributeValue > &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