AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/AttributeValueTarget.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace Redshift {
22namespace Model {
23
31 public:
32 AWS_REDSHIFT_API AccountAttribute() = default;
33 AWS_REDSHIFT_API AccountAttribute(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_REDSHIFT_API AccountAttribute& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
44 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
45 template <typename AttributeNameT = Aws::String>
46 void SetAttributeName(AttributeNameT&& value) {
47 m_attributeNameHasBeenSet = true;
48 m_attributeName = std::forward<AttributeNameT>(value);
49 }
50 template <typename AttributeNameT = Aws::String>
51 AccountAttribute& WithAttributeName(AttributeNameT&& value) {
52 SetAttributeName(std::forward<AttributeNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<AttributeValueTarget>& GetAttributeValues() const { return m_attributeValues; }
62 inline bool AttributeValuesHasBeenSet() const { return m_attributeValuesHasBeenSet; }
63 template <typename AttributeValuesT = Aws::Vector<AttributeValueTarget>>
64 void SetAttributeValues(AttributeValuesT&& value) {
65 m_attributeValuesHasBeenSet = true;
66 m_attributeValues = std::forward<AttributeValuesT>(value);
67 }
68 template <typename AttributeValuesT = Aws::Vector<AttributeValueTarget>>
69 AccountAttribute& WithAttributeValues(AttributeValuesT&& value) {
70 SetAttributeValues(std::forward<AttributeValuesT>(value));
71 return *this;
72 }
73 template <typename AttributeValuesT = AttributeValueTarget>
74 AccountAttribute& AddAttributeValues(AttributeValuesT&& value) {
75 m_attributeValuesHasBeenSet = true;
76 m_attributeValues.emplace_back(std::forward<AttributeValuesT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_attributeName;
82
83 Aws::Vector<AttributeValueTarget> m_attributeValues;
84 bool m_attributeNameHasBeenSet = false;
85 bool m_attributeValuesHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace Redshift
90} // namespace Aws
void SetAttributeValues(AttributeValuesT &&value)
const Aws::Vector< AttributeValueTarget > & GetAttributeValues() const
const Aws::String & GetAttributeName() const
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 & WithAttributeValues(AttributeValuesT &&value)
void SetAttributeName(AttributeNameT &&value)
AccountAttribute & AddAttributeValues(AttributeValuesT &&value)
AccountAttribute & WithAttributeName(AttributeNameT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_REDSHIFT_API AccountAttribute()=default
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