AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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