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/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
37 {
38 public:
39 AWS_RDS_API DBClusterSnapshotAttribute() = default;
42
43 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
55 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
56 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
57 template<typename AttributeNameT = Aws::String>
58 void SetAttributeName(AttributeNameT&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::forward<AttributeNameT>(value); }
59 template<typename AttributeNameT = Aws::String>
60 DBClusterSnapshotAttribute& WithAttributeName(AttributeNameT&& value) { SetAttributeName(std::forward<AttributeNameT>(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 template<typename AttributeValuesT = Aws::Vector<Aws::String>>
75 void SetAttributeValues(AttributeValuesT&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = std::forward<AttributeValuesT>(value); }
76 template<typename AttributeValuesT = Aws::Vector<Aws::String>>
77 DBClusterSnapshotAttribute& WithAttributeValues(AttributeValuesT&& value) { SetAttributeValues(std::forward<AttributeValuesT>(value)); return *this;}
78 template<typename AttributeValuesT = Aws::String>
79 DBClusterSnapshotAttribute& AddAttributeValues(AttributeValuesT&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.emplace_back(std::forward<AttributeValuesT>(value)); return *this; }
81 private:
82
83 Aws::String m_attributeName;
84 bool m_attributeNameHasBeenSet = false;
85
86 Aws::Vector<Aws::String> m_attributeValues;
87 bool m_attributeValuesHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace RDS
92} // 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