AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ConnectionLogResponseOptions.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 ConnectionLogResponseOptions() = 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
42 inline bool GetEnabled() const { return m_enabled; }
43 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
44 inline void SetEnabled(bool value) {
45 m_enabledHasBeenSet = true;
46 m_enabled = value;
47 }
49 SetEnabled(value);
50 return *this;
51 }
53
55
59 inline const Aws::String& GetCloudwatchLogGroup() const { return m_cloudwatchLogGroup; }
60 inline bool CloudwatchLogGroupHasBeenSet() const { return m_cloudwatchLogGroupHasBeenSet; }
61 template <typename CloudwatchLogGroupT = Aws::String>
62 void SetCloudwatchLogGroup(CloudwatchLogGroupT&& value) {
63 m_cloudwatchLogGroupHasBeenSet = true;
64 m_cloudwatchLogGroup = std::forward<CloudwatchLogGroupT>(value);
65 }
66 template <typename CloudwatchLogGroupT = Aws::String>
68 SetCloudwatchLogGroup(std::forward<CloudwatchLogGroupT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetCloudwatchLogStream() const { return m_cloudwatchLogStream; }
79 inline bool CloudwatchLogStreamHasBeenSet() const { return m_cloudwatchLogStreamHasBeenSet; }
80 template <typename CloudwatchLogStreamT = Aws::String>
81 void SetCloudwatchLogStream(CloudwatchLogStreamT&& value) {
82 m_cloudwatchLogStreamHasBeenSet = true;
83 m_cloudwatchLogStream = std::forward<CloudwatchLogStreamT>(value);
84 }
85 template <typename CloudwatchLogStreamT = Aws::String>
87 SetCloudwatchLogStream(std::forward<CloudwatchLogStreamT>(value));
88 return *this;
89 }
91 private:
92 bool m_enabled{false};
93
94 Aws::String m_cloudwatchLogGroup;
95
96 Aws::String m_cloudwatchLogStream;
97 bool m_enabledHasBeenSet = false;
98 bool m_cloudwatchLogGroupHasBeenSet = false;
99 bool m_cloudwatchLogStreamHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace EC2
104} // namespace Aws
ConnectionLogResponseOptions & WithCloudwatchLogGroup(CloudwatchLogGroupT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ConnectionLogResponseOptions & WithEnabled(bool value)
void SetCloudwatchLogStream(CloudwatchLogStreamT &&value)
ConnectionLogResponseOptions & WithCloudwatchLogStream(CloudwatchLogStreamT &&value)
AWS_EC2_API ConnectionLogResponseOptions()=default
AWS_EC2_API ConnectionLogResponseOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API ConnectionLogResponseOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream