AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DBSnapshotAttribute.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
32 public:
33 AWS_RDS_API DBSnapshotAttribute() = default;
34 AWS_RDS_API DBSnapshotAttribute(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
47 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
48 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
49 template <typename AttributeNameT = Aws::String>
50 void SetAttributeName(AttributeNameT&& value) {
51 m_attributeNameHasBeenSet = true;
52 m_attributeName = std::forward<AttributeNameT>(value);
53 }
54 template <typename AttributeNameT = Aws::String>
55 DBSnapshotAttribute& WithAttributeName(AttributeNameT&& value) {
56 SetAttributeName(std::forward<AttributeNameT>(value));
57 return *this;
58 }
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) {
74 m_attributeValuesHasBeenSet = true;
75 m_attributeValues = std::forward<AttributeValuesT>(value);
76 }
77 template <typename AttributeValuesT = Aws::Vector<Aws::String>>
78 DBSnapshotAttribute& WithAttributeValues(AttributeValuesT&& value) {
79 SetAttributeValues(std::forward<AttributeValuesT>(value));
80 return *this;
81 }
82 template <typename AttributeValuesT = Aws::String>
83 DBSnapshotAttribute& AddAttributeValues(AttributeValuesT&& value) {
84 m_attributeValuesHasBeenSet = true;
85 m_attributeValues.emplace_back(std::forward<AttributeValuesT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_attributeName;
91
92 Aws::Vector<Aws::String> m_attributeValues;
93 bool m_attributeNameHasBeenSet = false;
94 bool m_attributeValuesHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace RDS
99} // 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