AWS SDK for C++

AWS SDK for C++ Version 1.11.605

Loading...
Searching...
No Matches
ConnectionLogResponseOptions.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 ConnectionLogResponseOptions() = 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
48 inline bool GetEnabled() const { return m_enabled; }
49 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
50 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
51 inline ConnectionLogResponseOptions& WithEnabled(bool value) { SetEnabled(value); return *this;}
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) { m_cloudwatchLogGroupHasBeenSet = true; m_cloudwatchLogGroup = std::forward<CloudwatchLogGroupT>(value); }
63 template<typename CloudwatchLogGroupT = Aws::String>
64 ConnectionLogResponseOptions& WithCloudwatchLogGroup(CloudwatchLogGroupT&& value) { SetCloudwatchLogGroup(std::forward<CloudwatchLogGroupT>(value)); return *this;}
66
68
72 inline const Aws::String& GetCloudwatchLogStream() const { return m_cloudwatchLogStream; }
73 inline bool CloudwatchLogStreamHasBeenSet() const { return m_cloudwatchLogStreamHasBeenSet; }
74 template<typename CloudwatchLogStreamT = Aws::String>
75 void SetCloudwatchLogStream(CloudwatchLogStreamT&& value) { m_cloudwatchLogStreamHasBeenSet = true; m_cloudwatchLogStream = std::forward<CloudwatchLogStreamT>(value); }
76 template<typename CloudwatchLogStreamT = Aws::String>
77 ConnectionLogResponseOptions& WithCloudwatchLogStream(CloudwatchLogStreamT&& value) { SetCloudwatchLogStream(std::forward<CloudwatchLogStreamT>(value)); return *this;}
79 private:
80
81 bool m_enabled{false};
82 bool m_enabledHasBeenSet = false;
83
84 Aws::String m_cloudwatchLogGroup;
85 bool m_cloudwatchLogGroupHasBeenSet = false;
86
87 Aws::String m_cloudwatchLogStream;
88 bool m_cloudwatchLogStreamHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace EC2
93} // 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