AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CloudwatchLogsExportConfiguration.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
41 public:
42 AWS_RDS_API CloudwatchLogsExportConfiguration() = default;
45
46 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
50
58 inline const Aws::Vector<Aws::String>& GetEnableLogTypes() const { return m_enableLogTypes; }
59 inline bool EnableLogTypesHasBeenSet() const { return m_enableLogTypesHasBeenSet; }
60 template <typename EnableLogTypesT = Aws::Vector<Aws::String>>
61 void SetEnableLogTypes(EnableLogTypesT&& value) {
62 m_enableLogTypesHasBeenSet = true;
63 m_enableLogTypes = std::forward<EnableLogTypesT>(value);
64 }
65 template <typename EnableLogTypesT = Aws::Vector<Aws::String>>
67 SetEnableLogTypes(std::forward<EnableLogTypesT>(value));
68 return *this;
69 }
70 template <typename EnableLogTypesT = Aws::String>
72 m_enableLogTypesHasBeenSet = true;
73 m_enableLogTypes.emplace_back(std::forward<EnableLogTypesT>(value));
74 return *this;
75 }
77
79
87 inline const Aws::Vector<Aws::String>& GetDisableLogTypes() const { return m_disableLogTypes; }
88 inline bool DisableLogTypesHasBeenSet() const { return m_disableLogTypesHasBeenSet; }
89 template <typename DisableLogTypesT = Aws::Vector<Aws::String>>
90 void SetDisableLogTypes(DisableLogTypesT&& value) {
91 m_disableLogTypesHasBeenSet = true;
92 m_disableLogTypes = std::forward<DisableLogTypesT>(value);
93 }
94 template <typename DisableLogTypesT = Aws::Vector<Aws::String>>
96 SetDisableLogTypes(std::forward<DisableLogTypesT>(value));
97 return *this;
98 }
99 template <typename DisableLogTypesT = Aws::String>
101 m_disableLogTypesHasBeenSet = true;
102 m_disableLogTypes.emplace_back(std::forward<DisableLogTypesT>(value));
103 return *this;
104 }
106 private:
107 Aws::Vector<Aws::String> m_enableLogTypes;
108
109 Aws::Vector<Aws::String> m_disableLogTypes;
110 bool m_enableLogTypesHasBeenSet = false;
111 bool m_disableLogTypesHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace RDS
116} // namespace Aws
CloudwatchLogsExportConfiguration & WithEnableLogTypes(EnableLogTypesT &&value)
CloudwatchLogsExportConfiguration & AddEnableLogTypes(EnableLogTypesT &&value)
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
CloudwatchLogsExportConfiguration & AddDisableLogTypes(DisableLogTypesT &&value)
AWS_RDS_API CloudwatchLogsExportConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API CloudwatchLogsExportConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::String > & GetDisableLogTypes() const
CloudwatchLogsExportConfiguration & WithDisableLogTypes(DisableLogTypesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream