AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ConnectionLogOptions.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_EC2_API ConnectionLogOptions() = default;
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline bool GetEnabled() const { return m_enabled; }
48 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
49 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
50 inline ConnectionLogOptions& WithEnabled(bool value) { SetEnabled(value); return *this;}
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) { m_cloudwatchLogGroupHasBeenSet = true; m_cloudwatchLogGroup = std::forward<CloudwatchLogGroupT>(value); }
62 template<typename CloudwatchLogGroupT = Aws::String>
63 ConnectionLogOptions& WithCloudwatchLogGroup(CloudwatchLogGroupT&& value) { SetCloudwatchLogGroup(std::forward<CloudwatchLogGroupT>(value)); return *this;}
65
67
71 inline const Aws::String& GetCloudwatchLogStream() const { return m_cloudwatchLogStream; }
72 inline bool CloudwatchLogStreamHasBeenSet() const { return m_cloudwatchLogStreamHasBeenSet; }
73 template<typename CloudwatchLogStreamT = Aws::String>
74 void SetCloudwatchLogStream(CloudwatchLogStreamT&& value) { m_cloudwatchLogStreamHasBeenSet = true; m_cloudwatchLogStream = std::forward<CloudwatchLogStreamT>(value); }
75 template<typename CloudwatchLogStreamT = Aws::String>
76 ConnectionLogOptions& WithCloudwatchLogStream(CloudwatchLogStreamT&& value) { SetCloudwatchLogStream(std::forward<CloudwatchLogStreamT>(value)); return *this;}
78 private:
79
80 bool m_enabled{false};
81 bool m_enabledHasBeenSet = false;
82
83 Aws::String m_cloudwatchLogGroup;
84 bool m_cloudwatchLogGroupHasBeenSet = false;
85
86 Aws::String m_cloudwatchLogStream;
87 bool m_cloudwatchLogStreamHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace EC2
92} // 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