AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AttributeNameT = Aws::String>
56 void SetAttributeName(AttributeNameT&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::forward<AttributeNameT>(value); }
57 template<typename AttributeNameT = Aws::String>
58 DBSnapshotAttribute& WithAttributeName(AttributeNameT&& value) { SetAttributeName(std::forward<AttributeNameT>(value)); return *this;}
60
62
70 inline const Aws::Vector<Aws::String>& GetAttributeValues() const { return m_attributeValues; }
71 inline bool AttributeValuesHasBeenSet() const { return m_attributeValuesHasBeenSet; }
72 template<typename AttributeValuesT = Aws::Vector<Aws::String>>
73 void SetAttributeValues(AttributeValuesT&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = std::forward<AttributeValuesT>(value); }
74 template<typename AttributeValuesT = Aws::Vector<Aws::String>>
75 DBSnapshotAttribute& WithAttributeValues(AttributeValuesT&& value) { SetAttributeValues(std::forward<AttributeValuesT>(value)); return *this;}
76 template<typename AttributeValuesT = Aws::String>
77 DBSnapshotAttribute& AddAttributeValues(AttributeValuesT&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.emplace_back(std::forward<AttributeValuesT>(value)); return *this; }
79 private:
80
81 Aws::String m_attributeName;
82 bool m_attributeNameHasBeenSet = false;
83
84 Aws::Vector<Aws::String> m_attributeValues;
85 bool m_attributeValuesHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace RDS
90} // namespace Aws
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DBSnapshotAttribute & WithAttributeValues(AttributeValuesT &&value)
const Aws::Vector< Aws::String > & GetAttributeValues() const
AWS_RDS_API DBSnapshotAttribute()=default
void SetAttributeName(AttributeNameT &&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)
void SetAttributeValues(AttributeValuesT &&value)
const Aws::String & GetAttributeName() const
DBSnapshotAttribute & AddAttributeValues(AttributeValuesT &&value)
AWS_RDS_API DBSnapshotAttribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DBSnapshotAttribute & WithAttributeName(AttributeNameT &&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