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/redshift/Redshift_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/redshift/model/AttributeValueTarget.h>
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:
37 AWS_REDSHIFT_API AccountAttribute() = default;
38 AWS_REDSHIFT_API AccountAttribute(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_REDSHIFT_API AccountAttribute& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
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
46
49 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
50 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
51 template<typename AttributeNameT = Aws::String>
52 void SetAttributeName(AttributeNameT&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::forward<AttributeNameT>(value); }
53 template<typename AttributeNameT = Aws::String>
54 AccountAttribute& WithAttributeName(AttributeNameT&& value) { SetAttributeName(std::forward<AttributeNameT>(value)); return *this;}
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) { m_attributeValuesHasBeenSet = true; m_attributeValues = std::forward<AttributeValuesT>(value); }
65 template<typename AttributeValuesT = Aws::Vector<AttributeValueTarget>>
66 AccountAttribute& WithAttributeValues(AttributeValuesT&& value) { SetAttributeValues(std::forward<AttributeValuesT>(value)); return *this;}
67 template<typename AttributeValuesT = AttributeValueTarget>
68 AccountAttribute& AddAttributeValues(AttributeValuesT&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.emplace_back(std::forward<AttributeValuesT>(value)); return *this; }
70 private:
71
72 Aws::String m_attributeName;
73 bool m_attributeNameHasBeenSet = false;
74
75 Aws::Vector<AttributeValueTarget> m_attributeValues;
76 bool m_attributeValuesHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Redshift
81} // 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