AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DBSnapshotAttributesResult.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#include <aws/rds/model/DBSnapshotAttribute.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace RDS {
22namespace Model {
23
34 public:
35 AWS_RDS_API DBSnapshotAttributesResult() = default;
38
39 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
46 inline const Aws::String& GetDBSnapshotIdentifier() const { return m_dBSnapshotIdentifier; }
47 inline bool DBSnapshotIdentifierHasBeenSet() const { return m_dBSnapshotIdentifierHasBeenSet; }
48 template <typename DBSnapshotIdentifierT = Aws::String>
49 void SetDBSnapshotIdentifier(DBSnapshotIdentifierT&& value) {
50 m_dBSnapshotIdentifierHasBeenSet = true;
51 m_dBSnapshotIdentifier = std::forward<DBSnapshotIdentifierT>(value);
52 }
53 template <typename DBSnapshotIdentifierT = Aws::String>
54 DBSnapshotAttributesResult& WithDBSnapshotIdentifier(DBSnapshotIdentifierT&& value) {
55 SetDBSnapshotIdentifier(std::forward<DBSnapshotIdentifierT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<DBSnapshotAttribute>& GetDBSnapshotAttributes() const { return m_dBSnapshotAttributes; }
65 inline bool DBSnapshotAttributesHasBeenSet() const { return m_dBSnapshotAttributesHasBeenSet; }
66 template <typename DBSnapshotAttributesT = Aws::Vector<DBSnapshotAttribute>>
67 void SetDBSnapshotAttributes(DBSnapshotAttributesT&& value) {
68 m_dBSnapshotAttributesHasBeenSet = true;
69 m_dBSnapshotAttributes = std::forward<DBSnapshotAttributesT>(value);
70 }
71 template <typename DBSnapshotAttributesT = Aws::Vector<DBSnapshotAttribute>>
72 DBSnapshotAttributesResult& WithDBSnapshotAttributes(DBSnapshotAttributesT&& value) {
73 SetDBSnapshotAttributes(std::forward<DBSnapshotAttributesT>(value));
74 return *this;
75 }
76 template <typename DBSnapshotAttributesT = DBSnapshotAttribute>
77 DBSnapshotAttributesResult& AddDBSnapshotAttributes(DBSnapshotAttributesT&& value) {
78 m_dBSnapshotAttributesHasBeenSet = true;
79 m_dBSnapshotAttributes.emplace_back(std::forward<DBSnapshotAttributesT>(value));
80 return *this;
81 }
83 private:
84 Aws::String m_dBSnapshotIdentifier;
85
86 Aws::Vector<DBSnapshotAttribute> m_dBSnapshotAttributes;
87 bool m_dBSnapshotIdentifierHasBeenSet = false;
88 bool m_dBSnapshotAttributesHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace RDS
93} // namespace Aws
DBSnapshotAttributesResult & AddDBSnapshotAttributes(DBSnapshotAttributesT &&value)
DBSnapshotAttributesResult & WithDBSnapshotIdentifier(DBSnapshotIdentifierT &&value)
AWS_RDS_API DBSnapshotAttributesResult()=default
void SetDBSnapshotIdentifier(DBSnapshotIdentifierT &&value)
void SetDBSnapshotAttributes(DBSnapshotAttributesT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DBSnapshotAttributesResult & WithDBSnapshotAttributes(DBSnapshotAttributesT &&value)
AWS_RDS_API DBSnapshotAttributesResult(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< DBSnapshotAttribute > & GetDBSnapshotAttributes() const
AWS_RDS_API DBSnapshotAttributesResult & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
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