AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CloudWatchLogOptionsSpecification.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/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API CloudWatchLogOptionsSpecification() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
43 inline bool GetLogEnabled() const { return m_logEnabled; }
44 inline bool LogEnabledHasBeenSet() const { return m_logEnabledHasBeenSet; }
45 inline void SetLogEnabled(bool value) {
46 m_logEnabledHasBeenSet = true;
47 m_logEnabled = value;
48 }
50 SetLogEnabled(value);
51 return *this;
52 }
54
56
60 inline const Aws::String& GetLogGroupArn() const { return m_logGroupArn; }
61 inline bool LogGroupArnHasBeenSet() const { return m_logGroupArnHasBeenSet; }
62 template <typename LogGroupArnT = Aws::String>
63 void SetLogGroupArn(LogGroupArnT&& value) {
64 m_logGroupArnHasBeenSet = true;
65 m_logGroupArn = std::forward<LogGroupArnT>(value);
66 }
67 template <typename LogGroupArnT = Aws::String>
69 SetLogGroupArn(std::forward<LogGroupArnT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetLogOutputFormat() const { return m_logOutputFormat; }
80 inline bool LogOutputFormatHasBeenSet() const { return m_logOutputFormatHasBeenSet; }
81 template <typename LogOutputFormatT = Aws::String>
82 void SetLogOutputFormat(LogOutputFormatT&& value) {
83 m_logOutputFormatHasBeenSet = true;
84 m_logOutputFormat = std::forward<LogOutputFormatT>(value);
85 }
86 template <typename LogOutputFormatT = Aws::String>
88 SetLogOutputFormat(std::forward<LogOutputFormatT>(value));
89 return *this;
90 }
92
94
99 inline bool GetBgpLogEnabled() const { return m_bgpLogEnabled; }
100 inline bool BgpLogEnabledHasBeenSet() const { return m_bgpLogEnabledHasBeenSet; }
101 inline void SetBgpLogEnabled(bool value) {
102 m_bgpLogEnabledHasBeenSet = true;
103 m_bgpLogEnabled = value;
104 }
106 SetBgpLogEnabled(value);
107 return *this;
108 }
110
112
116 inline const Aws::String& GetBgpLogGroupArn() const { return m_bgpLogGroupArn; }
117 inline bool BgpLogGroupArnHasBeenSet() const { return m_bgpLogGroupArnHasBeenSet; }
118 template <typename BgpLogGroupArnT = Aws::String>
119 void SetBgpLogGroupArn(BgpLogGroupArnT&& value) {
120 m_bgpLogGroupArnHasBeenSet = true;
121 m_bgpLogGroupArn = std::forward<BgpLogGroupArnT>(value);
122 }
123 template <typename BgpLogGroupArnT = Aws::String>
125 SetBgpLogGroupArn(std::forward<BgpLogGroupArnT>(value));
126 return *this;
127 }
129
131
136 inline const Aws::String& GetBgpLogOutputFormat() const { return m_bgpLogOutputFormat; }
137 inline bool BgpLogOutputFormatHasBeenSet() const { return m_bgpLogOutputFormatHasBeenSet; }
138 template <typename BgpLogOutputFormatT = Aws::String>
139 void SetBgpLogOutputFormat(BgpLogOutputFormatT&& value) {
140 m_bgpLogOutputFormatHasBeenSet = true;
141 m_bgpLogOutputFormat = std::forward<BgpLogOutputFormatT>(value);
142 }
143 template <typename BgpLogOutputFormatT = Aws::String>
145 SetBgpLogOutputFormat(std::forward<BgpLogOutputFormatT>(value));
146 return *this;
147 }
149 private:
150 bool m_logEnabled{false};
151
152 Aws::String m_logGroupArn;
153
154 Aws::String m_logOutputFormat;
155
156 bool m_bgpLogEnabled{false};
157
158 Aws::String m_bgpLogGroupArn;
159
160 Aws::String m_bgpLogOutputFormat;
161 bool m_logEnabledHasBeenSet = false;
162 bool m_logGroupArnHasBeenSet = false;
163 bool m_logOutputFormatHasBeenSet = false;
164 bool m_bgpLogEnabledHasBeenSet = false;
165 bool m_bgpLogGroupArnHasBeenSet = false;
166 bool m_bgpLogOutputFormatHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace EC2
171} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CloudWatchLogOptionsSpecification & WithBgpLogGroupArn(BgpLogGroupArnT &&value)
CloudWatchLogOptionsSpecification & WithLogGroupArn(LogGroupArnT &&value)
CloudWatchLogOptionsSpecification & WithLogOutputFormat(LogOutputFormatT &&value)
CloudWatchLogOptionsSpecification & WithLogEnabled(bool value)
CloudWatchLogOptionsSpecification & WithBgpLogOutputFormat(BgpLogOutputFormatT &&value)
AWS_EC2_API CloudWatchLogOptionsSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API CloudWatchLogOptionsSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CloudWatchLogOptionsSpecification & WithBgpLogEnabled(bool value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream