AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCloudwatchLogGroup(const Aws::String& value) { m_cloudwatchLogGroupHasBeenSet = true; m_cloudwatchLogGroup = value; }
61 inline void SetCloudwatchLogGroup(Aws::String&& value) { m_cloudwatchLogGroupHasBeenSet = true; m_cloudwatchLogGroup = std::move(value); }
62 inline void SetCloudwatchLogGroup(const char* value) { m_cloudwatchLogGroupHasBeenSet = true; m_cloudwatchLogGroup.assign(value); }
64 inline ConnectionLogOptions& WithCloudwatchLogGroup(Aws::String&& value) { SetCloudwatchLogGroup(std::move(value)); return *this;}
65 inline ConnectionLogOptions& WithCloudwatchLogGroup(const char* value) { SetCloudwatchLogGroup(value); return *this;}
67
69
73 inline const Aws::String& GetCloudwatchLogStream() const{ return m_cloudwatchLogStream; }
74 inline bool CloudwatchLogStreamHasBeenSet() const { return m_cloudwatchLogStreamHasBeenSet; }
75 inline void SetCloudwatchLogStream(const Aws::String& value) { m_cloudwatchLogStreamHasBeenSet = true; m_cloudwatchLogStream = value; }
76 inline void SetCloudwatchLogStream(Aws::String&& value) { m_cloudwatchLogStreamHasBeenSet = true; m_cloudwatchLogStream = std::move(value); }
77 inline void SetCloudwatchLogStream(const char* value) { m_cloudwatchLogStreamHasBeenSet = true; m_cloudwatchLogStream.assign(value); }
79 inline ConnectionLogOptions& WithCloudwatchLogStream(Aws::String&& value) { SetCloudwatchLogStream(std::move(value)); return *this;}
80 inline ConnectionLogOptions& WithCloudwatchLogStream(const char* value) { SetCloudwatchLogStream(value); return *this;}
82 private:
83
84 bool m_enabled;
85 bool m_enabledHasBeenSet = false;
86
87 Aws::String m_cloudwatchLogGroup;
88 bool m_cloudwatchLogGroupHasBeenSet = false;
89
90 Aws::String m_cloudwatchLogStream;
91 bool m_cloudwatchLogStreamHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace EC2
96} // namespace Aws
AWS_EC2_API ConnectionLogOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ConnectionLogOptions & WithCloudwatchLogGroup(const char *value)
void SetCloudwatchLogGroup(const Aws::String &value)
const Aws::String & GetCloudwatchLogStream() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ConnectionLogOptions & WithCloudwatchLogStream(const Aws::String &value)
void SetCloudwatchLogGroup(Aws::String &&value)
void SetCloudwatchLogStream(const Aws::String &value)
ConnectionLogOptions & WithCloudwatchLogGroup(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ConnectionLogOptions & WithCloudwatchLogGroup(const Aws::String &value)
ConnectionLogOptions & WithCloudwatchLogStream(Aws::String &&value)
AWS_EC2_API ConnectionLogOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
ConnectionLogOptions & WithCloudwatchLogStream(const char *value)
void SetCloudwatchLogStream(Aws::String &&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