AWS SDK for C++  1.9.104
AWS SDK for C++
DBClusterSnapshotAttribute.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace RDS
23 {
24 namespace Model
25 {
26 
37  {
38  public:
42 
43  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44  void OutputToStream(Aws::OStream& oStream, const char* location) const;
45 
46 
54  inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
55 
63  inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
64 
72  inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
73 
81  inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
82 
90  inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
91 
99  inline DBClusterSnapshotAttribute& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
100 
108  inline DBClusterSnapshotAttribute& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
109 
117  inline DBClusterSnapshotAttribute& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
118 
119 
128  inline const Aws::Vector<Aws::String>& GetAttributeValues() const{ return m_attributeValues; }
129 
138  inline bool AttributeValuesHasBeenSet() const { return m_attributeValuesHasBeenSet; }
139 
148  inline void SetAttributeValues(const Aws::Vector<Aws::String>& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = value; }
149 
158  inline void SetAttributeValues(Aws::Vector<Aws::String>&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = std::move(value); }
159 
168  inline DBClusterSnapshotAttribute& WithAttributeValues(const Aws::Vector<Aws::String>& value) { SetAttributeValues(value); return *this;}
169 
178  inline DBClusterSnapshotAttribute& WithAttributeValues(Aws::Vector<Aws::String>&& value) { SetAttributeValues(std::move(value)); return *this;}
179 
188  inline DBClusterSnapshotAttribute& AddAttributeValues(const Aws::String& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(value); return *this; }
189 
198  inline DBClusterSnapshotAttribute& AddAttributeValues(Aws::String&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(std::move(value)); return *this; }
199 
208  inline DBClusterSnapshotAttribute& AddAttributeValues(const char* value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(value); return *this; }
209 
210  private:
211 
212  Aws::String m_attributeName;
213  bool m_attributeNameHasBeenSet;
214 
215  Aws::Vector<Aws::String> m_attributeValues;
216  bool m_attributeValuesHasBeenSet;
217  };
218 
219 } // namespace Model
220 } // namespace RDS
221 } // namespace Aws
Aws::RDS::Model::DBClusterSnapshotAttribute::AddAttributeValues
DBClusterSnapshotAttribute & AddAttributeValues(Aws::String &&value)
Definition: DBClusterSnapshotAttribute.h:198
Aws::RDS::Model::DBClusterSnapshotAttribute::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::DBClusterSnapshotAttribute::DBClusterSnapshotAttribute
DBClusterSnapshotAttribute(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::DBClusterSnapshotAttribute::WithAttributeValues
DBClusterSnapshotAttribute & WithAttributeValues(const Aws::Vector< Aws::String > &value)
Definition: DBClusterSnapshotAttribute.h:168
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::DBClusterSnapshotAttribute::AddAttributeValues
DBClusterSnapshotAttribute & AddAttributeValues(const char *value)
Definition: DBClusterSnapshotAttribute.h:208
Aws::RDS::Model::DBClusterSnapshotAttribute::GetAttributeValues
const Aws::Vector< Aws::String > & GetAttributeValues() const
Definition: DBClusterSnapshotAttribute.h:128
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::DBClusterSnapshotAttribute::WithAttributeName
DBClusterSnapshotAttribute & WithAttributeName(const Aws::String &value)
Definition: DBClusterSnapshotAttribute.h:99
AWSStreamFwd.h
Aws::RDS::Model::DBClusterSnapshotAttribute::AttributeValuesHasBeenSet
bool AttributeValuesHasBeenSet() const
Definition: DBClusterSnapshotAttribute.h:138
AWSVector.h
Aws::RDS::Model::DBClusterSnapshotAttribute::SetAttributeName
void SetAttributeName(const Aws::String &value)
Definition: DBClusterSnapshotAttribute.h:72
Aws::RDS::Model::DBClusterSnapshotAttribute::SetAttributeValues
void SetAttributeValues(Aws::Vector< Aws::String > &&value)
Definition: DBClusterSnapshotAttribute.h:158
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::DBClusterSnapshotAttribute::AddAttributeValues
DBClusterSnapshotAttribute & AddAttributeValues(const Aws::String &value)
Definition: DBClusterSnapshotAttribute.h:188
Aws::RDS::Model::DBClusterSnapshotAttribute::WithAttributeName
DBClusterSnapshotAttribute & WithAttributeName(const char *value)
Definition: DBClusterSnapshotAttribute.h:117
RDS_EXPORTS.h
Aws::RDS::Model::DBClusterSnapshotAttribute::SetAttributeName
void SetAttributeName(const char *value)
Definition: DBClusterSnapshotAttribute.h:90
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::DBClusterSnapshotAttribute::DBClusterSnapshotAttribute
DBClusterSnapshotAttribute()
Aws::RDS::Model::DBClusterSnapshotAttribute
Definition: DBClusterSnapshotAttribute.h:37
Aws::RDS::Model::DBClusterSnapshotAttribute::SetAttributeName
void SetAttributeName(Aws::String &&value)
Definition: DBClusterSnapshotAttribute.h:81
Aws::RDS::Model::DBClusterSnapshotAttribute::GetAttributeName
const Aws::String & GetAttributeName() const
Definition: DBClusterSnapshotAttribute.h:54
AWSString.h
Aws::RDS::Model::DBClusterSnapshotAttribute::AttributeNameHasBeenSet
bool AttributeNameHasBeenSet() const
Definition: DBClusterSnapshotAttribute.h:63
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::DBClusterSnapshotAttribute::operator=
DBClusterSnapshotAttribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::DBClusterSnapshotAttribute::WithAttributeName
DBClusterSnapshotAttribute & WithAttributeName(Aws::String &&value)
Definition: DBClusterSnapshotAttribute.h:108
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::RDS::Model::DBClusterSnapshotAttribute::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::RDS::Model::DBClusterSnapshotAttribute::WithAttributeValues
DBClusterSnapshotAttribute & WithAttributeValues(Aws::Vector< Aws::String > &&value)
Definition: DBClusterSnapshotAttribute.h:178
Aws::RDS::Model::DBClusterSnapshotAttribute::SetAttributeValues
void SetAttributeValues(const Aws::Vector< Aws::String > &value)
Definition: DBClusterSnapshotAttribute.h:148