AWS SDK for C++  1.9.104
AWS SDK for C++
AccountAttribute.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace Redshift
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  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 
109  inline AccountAttribute& WithAttributeValues(const Aws::Vector<AttributeValueTarget>& value) { SetAttributeValues(value); return *this;}
110 
114  inline AccountAttribute& WithAttributeValues(Aws::Vector<AttributeValueTarget>&& value) { SetAttributeValues(std::move(value)); return *this;}
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;
130 
131  Aws::Vector<AttributeValueTarget> m_attributeValues;
132  bool m_attributeValuesHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace Redshift
137 } // namespace Aws
Aws::Redshift::Model::AccountAttribute::WithAttributeValues
AccountAttribute & WithAttributeValues(Aws::Vector< AttributeValueTarget > &&value)
Definition: AccountAttribute.h:114
Aws::Redshift::Model::AccountAttribute::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::AccountAttribute::GetAttributeName
const Aws::String & GetAttributeName() const
Definition: AccountAttribute.h:48
Aws::Redshift::Model::AccountAttribute::SetAttributeValues
void SetAttributeValues(const Aws::Vector< AttributeValueTarget > &value)
Definition: AccountAttribute.h:99
Aws::Redshift::Model::AccountAttribute::SetAttributeName
void SetAttributeName(Aws::String &&value)
Definition: AccountAttribute.h:63
Aws::Redshift::Model::AccountAttribute::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AttributeValueTarget.h
Aws::Redshift::Model::AccountAttribute::AddAttributeValues
AccountAttribute & AddAttributeValues(AttributeValueTarget &&value)
Definition: AccountAttribute.h:124
Aws::Redshift::Model::AccountAttribute::SetAttributeName
void SetAttributeName(const Aws::String &value)
Definition: AccountAttribute.h:58
Aws::Redshift::Model::AccountAttribute::SetAttributeName
void SetAttributeName(const char *value)
Definition: AccountAttribute.h:68
Aws::Redshift::Model::AccountAttribute::AccountAttribute
AccountAttribute(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::AccountAttribute::AccountAttribute
AccountAttribute()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::AccountAttribute::WithAttributeName
AccountAttribute & WithAttributeName(Aws::String &&value)
Definition: AccountAttribute.h:78
AWSStreamFwd.h
AWSVector.h
Aws::Redshift::Model::AccountAttribute::AttributeNameHasBeenSet
bool AttributeNameHasBeenSet() const
Definition: AccountAttribute.h:53
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::AccountAttribute
Definition: AccountAttribute.h:35
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::AttributeValueTarget
Definition: AttributeValueTarget.h:32
Aws::Redshift::Model::AccountAttribute::operator=
AccountAttribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::AccountAttribute::GetAttributeValues
const Aws::Vector< AttributeValueTarget > & GetAttributeValues() const
Definition: AccountAttribute.h:89
AWSString.h
Aws::Redshift::Model::AccountAttribute::SetAttributeValues
void SetAttributeValues(Aws::Vector< AttributeValueTarget > &&value)
Definition: AccountAttribute.h:104
Aws::Redshift::Model::AccountAttribute::WithAttributeName
AccountAttribute & WithAttributeName(const Aws::String &value)
Definition: AccountAttribute.h:73
Aws::Redshift::Model::AccountAttribute::WithAttributeValues
AccountAttribute & WithAttributeValues(const Aws::Vector< AttributeValueTarget > &value)
Definition: AccountAttribute.h:109
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::AccountAttribute::AddAttributeValues
AccountAttribute & AddAttributeValues(const AttributeValueTarget &value)
Definition: AccountAttribute.h:119
Aws::Redshift::Model::AccountAttribute::WithAttributeName
AccountAttribute & WithAttributeName(const char *value)
Definition: AccountAttribute.h:83
Aws::Redshift::Model::AccountAttribute::AttributeValuesHasBeenSet
bool AttributeValuesHasBeenSet() const
Definition: AccountAttribute.h:94