AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
AccountAttribute.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Redshift
24{
25namespace Model
26{
27
35 {
36 public:
40
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
48 inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
49
53 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
54
58 inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
59
63 inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
64
68 inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
69
73 inline AccountAttribute& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
74
78 inline AccountAttribute& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
79
83 inline AccountAttribute& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
84
85
89 inline const Aws::Vector<AttributeValueTarget>& GetAttributeValues() const{ return m_attributeValues; }
90
94 inline bool AttributeValuesHasBeenSet() const { return m_attributeValuesHasBeenSet; }
95
99 inline void SetAttributeValues(const Aws::Vector<AttributeValueTarget>& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = value; }
100
104 inline void SetAttributeValues(Aws::Vector<AttributeValueTarget>&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = std::move(value); }
105
110
115
119 inline AccountAttribute& AddAttributeValues(const AttributeValueTarget& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(value); return *this; }
120
124 inline AccountAttribute& AddAttributeValues(AttributeValueTarget&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(std::move(value)); return *this; }
125
126 private:
127
128 Aws::String m_attributeName;
129 bool m_attributeNameHasBeenSet = false;
130
131 Aws::Vector<AttributeValueTarget> m_attributeValues;
132 bool m_attributeValuesHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace Redshift
137} // namespace Aws
#define AWS_REDSHIFT_API
void SetAttributeName(const Aws::String &value)
AccountAttribute & WithAttributeName(const Aws::String &value)
void SetAttributeName(const char *value)
AccountAttribute & AddAttributeValues(AttributeValueTarget &&value)
void SetAttributeValues(Aws::Vector< AttributeValueTarget > &&value)
const Aws::Vector< AttributeValueTarget > & GetAttributeValues() const
const Aws::String & GetAttributeName() const
AccountAttribute & WithAttributeValues(const Aws::Vector< AttributeValueTarget > &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_REDSHIFT_API AccountAttribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AccountAttribute & WithAttributeName(Aws::String &&value)
AccountAttribute & WithAttributeValues(Aws::Vector< AttributeValueTarget > &&value)
void SetAttributeValues(const Aws::Vector< AttributeValueTarget > &value)
AccountAttribute & WithAttributeName(const char *value)
AccountAttribute & AddAttributeValues(const AttributeValueTarget &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAttributeName(Aws::String &&value)
AWS_REDSHIFT_API AccountAttribute(const Aws::Utils::Xml::XmlNode &xmlNode)
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