AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DBSnapshotAttribute.h
1
6#pragma once
7#include <aws/rds/RDS_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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace RDS
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_RDS_API DBSnapshotAttribute();
39 AWS_RDS_API DBSnapshotAttribute(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
53 inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
54 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
55 inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
56 inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
57 inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
58 inline DBSnapshotAttribute& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
59 inline DBSnapshotAttribute& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
60 inline DBSnapshotAttribute& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
62
64
72 inline const Aws::Vector<Aws::String>& GetAttributeValues() const{ return m_attributeValues; }
73 inline bool AttributeValuesHasBeenSet() const { return m_attributeValuesHasBeenSet; }
74 inline void SetAttributeValues(const Aws::Vector<Aws::String>& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = value; }
75 inline void SetAttributeValues(Aws::Vector<Aws::String>&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = std::move(value); }
77 inline DBSnapshotAttribute& WithAttributeValues(Aws::Vector<Aws::String>&& value) { SetAttributeValues(std::move(value)); return *this;}
78 inline DBSnapshotAttribute& AddAttributeValues(const Aws::String& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(value); return *this; }
79 inline DBSnapshotAttribute& AddAttributeValues(Aws::String&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(std::move(value)); return *this; }
80 inline DBSnapshotAttribute& AddAttributeValues(const char* value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(value); return *this; }
82 private:
83
84 Aws::String m_attributeName;
85 bool m_attributeNameHasBeenSet = false;
86
87 Aws::Vector<Aws::String> m_attributeValues;
88 bool m_attributeValuesHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace RDS
93} // namespace Aws
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DBSnapshotAttribute & WithAttributeValues(const Aws::Vector< Aws::String > &value)
void SetAttributeName(Aws::String &&value)
DBSnapshotAttribute & WithAttributeName(const char *value)
void SetAttributeValues(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetAttributeValues() const
DBSnapshotAttribute & AddAttributeValues(Aws::String &&value)
DBSnapshotAttribute & AddAttributeValues(const Aws::String &value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_RDS_API DBSnapshotAttribute(const Aws::Utils::Xml::XmlNode &xmlNode)
DBSnapshotAttribute & WithAttributeValues(Aws::Vector< Aws::String > &&value)
DBSnapshotAttribute & WithAttributeName(const Aws::String &value)
const Aws::String & GetAttributeName() const
DBSnapshotAttribute & AddAttributeValues(const char *value)
AWS_RDS_API DBSnapshotAttribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DBSnapshotAttribute & WithAttributeName(Aws::String &&value)
void SetAttributeName(const Aws::String &value)
void SetAttributeValues(Aws::Vector< Aws::String > &&value)
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