AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
DBClusterSnapshotAttribute.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/docdb/DocDB_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace DocDB {
21namespace Model {
22
32 public:
33 AWS_DOCDB_API DBClusterSnapshotAttribute() = default;
36
37 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
46 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
47 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
48 template <typename AttributeNameT = Aws::String>
49 void SetAttributeName(AttributeNameT&& value) {
50 m_attributeNameHasBeenSet = true;
51 m_attributeName = std::forward<AttributeNameT>(value);
52 }
53 template <typename AttributeNameT = Aws::String>
55 SetAttributeName(std::forward<AttributeNameT>(value));
56 return *this;
57 }
59
61
69 inline const Aws::Vector<Aws::String>& GetAttributeValues() const { return m_attributeValues; }
70 inline bool AttributeValuesHasBeenSet() const { return m_attributeValuesHasBeenSet; }
71 template <typename AttributeValuesT = Aws::Vector<Aws::String>>
72 void SetAttributeValues(AttributeValuesT&& value) {
73 m_attributeValuesHasBeenSet = true;
74 m_attributeValues = std::forward<AttributeValuesT>(value);
75 }
76 template <typename AttributeValuesT = Aws::Vector<Aws::String>>
78 SetAttributeValues(std::forward<AttributeValuesT>(value));
79 return *this;
80 }
81 template <typename AttributeValuesT = Aws::String>
83 m_attributeValuesHasBeenSet = true;
84 m_attributeValues.emplace_back(std::forward<AttributeValuesT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_attributeName;
90
91 Aws::Vector<Aws::String> m_attributeValues;
92 bool m_attributeNameHasBeenSet = false;
93 bool m_attributeValuesHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace DocDB
98} // namespace Aws
AWS_DOCDB_API DBClusterSnapshotAttribute()=default
DBClusterSnapshotAttribute & AddAttributeValues(AttributeValuesT &&value)
const Aws::Vector< Aws::String > & GetAttributeValues() const
DBClusterSnapshotAttribute & WithAttributeName(AttributeNameT &&value)
DBClusterSnapshotAttribute & WithAttributeValues(AttributeValuesT &&value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_DOCDB_API DBClusterSnapshotAttribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_DOCDB_API DBClusterSnapshotAttribute(const Aws::Utils::Xml::XmlNode &xmlNode)
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