AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DBClusterSnapshotAttribute.h
1
6#pragma once
7#include <aws/docdb/DocDB_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 DocDB
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_DOCDB_API DBClusterSnapshotAttribute() = default;
41
42 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
52 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
53 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
54 template<typename AttributeNameT = Aws::String>
55 void SetAttributeName(AttributeNameT&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::forward<AttributeNameT>(value); }
56 template<typename AttributeNameT = Aws::String>
57 DBClusterSnapshotAttribute& WithAttributeName(AttributeNameT&& value) { SetAttributeName(std::forward<AttributeNameT>(value)); return *this;}
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) { m_attributeValuesHasBeenSet = true; m_attributeValues = std::forward<AttributeValuesT>(value); }
73 template<typename AttributeValuesT = Aws::Vector<Aws::String>>
74 DBClusterSnapshotAttribute& WithAttributeValues(AttributeValuesT&& value) { SetAttributeValues(std::forward<AttributeValuesT>(value)); return *this;}
75 template<typename AttributeValuesT = Aws::String>
76 DBClusterSnapshotAttribute& AddAttributeValues(AttributeValuesT&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.emplace_back(std::forward<AttributeValuesT>(value)); return *this; }
78 private:
79
80 Aws::String m_attributeName;
81 bool m_attributeNameHasBeenSet = false;
82
83 Aws::Vector<Aws::String> m_attributeValues;
84 bool m_attributeValuesHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace DocDB
89} // 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