AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CloudWatchLogOptions.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 CloudWatchLogOptions() = 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>
68 CloudWatchLogOptions& WithLogGroupArn(LogGroupArnT&& value) {
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>
87 CloudWatchLogOptions& WithLogOutputFormat(LogOutputFormatT&& value) {
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
115 inline const Aws::String& GetBgpLogGroupArn() const { return m_bgpLogGroupArn; }
116 inline bool BgpLogGroupArnHasBeenSet() const { return m_bgpLogGroupArnHasBeenSet; }
117 template <typename BgpLogGroupArnT = Aws::String>
118 void SetBgpLogGroupArn(BgpLogGroupArnT&& value) {
119 m_bgpLogGroupArnHasBeenSet = true;
120 m_bgpLogGroupArn = std::forward<BgpLogGroupArnT>(value);
121 }
122 template <typename BgpLogGroupArnT = Aws::String>
123 CloudWatchLogOptions& WithBgpLogGroupArn(BgpLogGroupArnT&& value) {
124 SetBgpLogGroupArn(std::forward<BgpLogGroupArnT>(value));
125 return *this;
126 }
128
130
135 inline const Aws::String& GetBgpLogOutputFormat() const { return m_bgpLogOutputFormat; }
136 inline bool BgpLogOutputFormatHasBeenSet() const { return m_bgpLogOutputFormatHasBeenSet; }
137 template <typename BgpLogOutputFormatT = Aws::String>
138 void SetBgpLogOutputFormat(BgpLogOutputFormatT&& value) {
139 m_bgpLogOutputFormatHasBeenSet = true;
140 m_bgpLogOutputFormat = std::forward<BgpLogOutputFormatT>(value);
141 }
142 template <typename BgpLogOutputFormatT = Aws::String>
143 CloudWatchLogOptions& WithBgpLogOutputFormat(BgpLogOutputFormatT&& value) {
144 SetBgpLogOutputFormat(std::forward<BgpLogOutputFormatT>(value));
145 return *this;
146 }
148 private:
149 bool m_logEnabled{false};
150
151 Aws::String m_logGroupArn;
152
153 Aws::String m_logOutputFormat;
154
155 bool m_bgpLogEnabled{false};
156
157 Aws::String m_bgpLogGroupArn;
158
159 Aws::String m_bgpLogOutputFormat;
160 bool m_logEnabledHasBeenSet = false;
161 bool m_logGroupArnHasBeenSet = false;
162 bool m_logOutputFormatHasBeenSet = false;
163 bool m_bgpLogEnabledHasBeenSet = false;
164 bool m_bgpLogGroupArnHasBeenSet = false;
165 bool m_bgpLogOutputFormatHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace EC2
170} // namespace Aws
CloudWatchLogOptions & WithLogEnabled(bool value)
AWS_EC2_API CloudWatchLogOptions()=default
void SetLogOutputFormat(LogOutputFormatT &&value)
CloudWatchLogOptions & WithLogOutputFormat(LogOutputFormatT &&value)
CloudWatchLogOptions & WithLogGroupArn(LogGroupArnT &&value)
CloudWatchLogOptions & WithBgpLogGroupArn(BgpLogGroupArnT &&value)
void SetLogGroupArn(LogGroupArnT &&value)
const Aws::String & GetBgpLogOutputFormat() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetBgpLogOutputFormat(BgpLogOutputFormatT &&value)
const Aws::String & GetBgpLogGroupArn() const
void SetBgpLogGroupArn(BgpLogGroupArnT &&value)
AWS_EC2_API CloudWatchLogOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API CloudWatchLogOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetLogGroupArn() const
CloudWatchLogOptions & WithBgpLogEnabled(bool value)
const Aws::String & GetLogOutputFormat() const
CloudWatchLogOptions & WithBgpLogOutputFormat(BgpLogOutputFormatT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream