AWS SDK for C++  1.9.104
AWS SDK for C++
DBSnapshotAttribute.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 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
52  inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
53 
60  inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
61 
68  inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
69 
76  inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
77 
84  inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
85 
92  inline DBSnapshotAttribute& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
93 
100  inline DBSnapshotAttribute& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
101 
108  inline DBSnapshotAttribute& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
109 
110 
119  inline const Aws::Vector<Aws::String>& GetAttributeValues() const{ return m_attributeValues; }
120 
129  inline bool AttributeValuesHasBeenSet() const { return m_attributeValuesHasBeenSet; }
130 
139  inline void SetAttributeValues(const Aws::Vector<Aws::String>& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = value; }
140 
149  inline void SetAttributeValues(Aws::Vector<Aws::String>&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = std::move(value); }
150 
159  inline DBSnapshotAttribute& WithAttributeValues(const Aws::Vector<Aws::String>& value) { SetAttributeValues(value); return *this;}
160 
169  inline DBSnapshotAttribute& WithAttributeValues(Aws::Vector<Aws::String>&& value) { SetAttributeValues(std::move(value)); return *this;}
170 
179  inline DBSnapshotAttribute& AddAttributeValues(const Aws::String& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(value); return *this; }
180 
189  inline DBSnapshotAttribute& AddAttributeValues(Aws::String&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(std::move(value)); return *this; }
190 
199  inline DBSnapshotAttribute& AddAttributeValues(const char* value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(value); return *this; }
200 
201  private:
202 
203  Aws::String m_attributeName;
204  bool m_attributeNameHasBeenSet;
205 
206  Aws::Vector<Aws::String> m_attributeValues;
207  bool m_attributeValuesHasBeenSet;
208  };
209 
210 } // namespace Model
211 } // namespace RDS
212 } // namespace Aws
Aws::RDS::Model::DBSnapshotAttribute::GetAttributeValues
const Aws::Vector< Aws::String > & GetAttributeValues() const
Definition: DBSnapshotAttribute.h:119
Aws::RDS::Model::DBSnapshotAttribute::AttributeNameHasBeenSet
bool AttributeNameHasBeenSet() const
Definition: DBSnapshotAttribute.h:60
Aws::RDS::Model::DBSnapshotAttribute::WithAttributeName
DBSnapshotAttribute & WithAttributeName(Aws::String &&value)
Definition: DBSnapshotAttribute.h:100
Aws::RDS::Model::DBSnapshotAttribute
Definition: DBSnapshotAttribute.h:36
Aws::RDS::Model::DBSnapshotAttribute::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::RDS::Model::DBSnapshotAttribute::SetAttributeName
void SetAttributeName(const char *value)
Definition: DBSnapshotAttribute.h:84
Aws::RDS::Model::DBSnapshotAttribute::AddAttributeValues
DBSnapshotAttribute & AddAttributeValues(const Aws::String &value)
Definition: DBSnapshotAttribute.h:179
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::DBSnapshotAttribute::WithAttributeValues
DBSnapshotAttribute & WithAttributeValues(Aws::Vector< Aws::String > &&value)
Definition: DBSnapshotAttribute.h:169
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::DBSnapshotAttribute::SetAttributeName
void SetAttributeName(const Aws::String &value)
Definition: DBSnapshotAttribute.h:68
AWSStreamFwd.h
AWSVector.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::DBSnapshotAttribute::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
RDS_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::DBSnapshotAttribute::AddAttributeValues
DBSnapshotAttribute & AddAttributeValues(const char *value)
Definition: DBSnapshotAttribute.h:199
Aws::RDS::Model::DBSnapshotAttribute::SetAttributeName
void SetAttributeName(Aws::String &&value)
Definition: DBSnapshotAttribute.h:76
Aws::RDS::Model::DBSnapshotAttribute::DBSnapshotAttribute
DBSnapshotAttribute()
Aws::RDS::Model::DBSnapshotAttribute::AttributeValuesHasBeenSet
bool AttributeValuesHasBeenSet() const
Definition: DBSnapshotAttribute.h:129
Aws::RDS::Model::DBSnapshotAttribute::operator=
DBSnapshotAttribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::DBSnapshotAttribute::WithAttributeValues
DBSnapshotAttribute & WithAttributeValues(const Aws::Vector< Aws::String > &value)
Definition: DBSnapshotAttribute.h:159
AWSString.h
Aws::RDS::Model::DBSnapshotAttribute::WithAttributeName
DBSnapshotAttribute & WithAttributeName(const Aws::String &value)
Definition: DBSnapshotAttribute.h:92
Aws::RDS::Model::DBSnapshotAttribute::DBSnapshotAttribute
DBSnapshotAttribute(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::DBSnapshotAttribute::SetAttributeValues
void SetAttributeValues(const Aws::Vector< Aws::String > &value)
Definition: DBSnapshotAttribute.h:139
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::DBSnapshotAttribute::AddAttributeValues
DBSnapshotAttribute & AddAttributeValues(Aws::String &&value)
Definition: DBSnapshotAttribute.h:189
Aws::RDS::Model::DBSnapshotAttribute::GetAttributeName
const Aws::String & GetAttributeName() const
Definition: DBSnapshotAttribute.h:52
Aws
Definition: AccessManagementClient.h:15
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::DBSnapshotAttribute::WithAttributeName
DBSnapshotAttribute & WithAttributeName(const char *value)
Definition: DBSnapshotAttribute.h:108
Aws::RDS::Model::DBSnapshotAttribute::SetAttributeValues
void SetAttributeValues(Aws::Vector< Aws::String > &&value)
Definition: DBSnapshotAttribute.h:149