AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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/rds/RDS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace RDS {
21namespace Model {
22
33 public:
34 AWS_RDS_API DBClusterSnapshotAttribute() = default;
37
38 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
49 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
50 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
51 template <typename AttributeNameT = Aws::String>
52 void SetAttributeName(AttributeNameT&& value) {
53 m_attributeNameHasBeenSet = true;
54 m_attributeName = std::forward<AttributeNameT>(value);
55 }
56 template <typename AttributeNameT = Aws::String>
58 SetAttributeName(std::forward<AttributeNameT>(value));
59 return *this;
60 }
62
64
72 inline const Aws::Vector<Aws::String>& GetAttributeValues() const { return m_attributeValues; }
73 inline bool AttributeValuesHasBeenSet() const { return m_attributeValuesHasBeenSet; }
74 template <typename AttributeValuesT = Aws::Vector<Aws::String>>
75 void SetAttributeValues(AttributeValuesT&& value) {
76 m_attributeValuesHasBeenSet = true;
77 m_attributeValues = std::forward<AttributeValuesT>(value);
78 }
79 template <typename AttributeValuesT = Aws::Vector<Aws::String>>
81 SetAttributeValues(std::forward<AttributeValuesT>(value));
82 return *this;
83 }
84 template <typename AttributeValuesT = Aws::String>
86 m_attributeValuesHasBeenSet = true;
87 m_attributeValues.emplace_back(std::forward<AttributeValuesT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_attributeName;
93
94 Aws::Vector<Aws::String> m_attributeValues;
95 bool m_attributeNameHasBeenSet = false;
96 bool m_attributeValuesHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace RDS
101} // namespace Aws
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DBClusterSnapshotAttribute & WithAttributeValues(AttributeValuesT &&value)
AWS_RDS_API DBClusterSnapshotAttribute(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API DBClusterSnapshotAttribute()=default
DBClusterSnapshotAttribute & WithAttributeName(AttributeNameT &&value)
DBClusterSnapshotAttribute & AddAttributeValues(AttributeValuesT &&value)
const Aws::Vector< Aws::String > & GetAttributeValues() const
AWS_RDS_API DBClusterSnapshotAttribute & operator=(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