AWS SDK for C++  1.9.71
AWS SDK for C++
ConnectionLogOptions.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline bool GetEnabled() const{ return m_enabled; }
47 
51  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
52 
56  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
57 
61  inline ConnectionLogOptions& WithEnabled(bool value) { SetEnabled(value); return *this;}
62 
63 
68  inline const Aws::String& GetCloudwatchLogGroup() const{ return m_cloudwatchLogGroup; }
69 
74  inline bool CloudwatchLogGroupHasBeenSet() const { return m_cloudwatchLogGroupHasBeenSet; }
75 
80  inline void SetCloudwatchLogGroup(const Aws::String& value) { m_cloudwatchLogGroupHasBeenSet = true; m_cloudwatchLogGroup = value; }
81 
86  inline void SetCloudwatchLogGroup(Aws::String&& value) { m_cloudwatchLogGroupHasBeenSet = true; m_cloudwatchLogGroup = std::move(value); }
87 
92  inline void SetCloudwatchLogGroup(const char* value) { m_cloudwatchLogGroupHasBeenSet = true; m_cloudwatchLogGroup.assign(value); }
93 
98  inline ConnectionLogOptions& WithCloudwatchLogGroup(const Aws::String& value) { SetCloudwatchLogGroup(value); return *this;}
99 
104  inline ConnectionLogOptions& WithCloudwatchLogGroup(Aws::String&& value) { SetCloudwatchLogGroup(std::move(value)); return *this;}
105 
110  inline ConnectionLogOptions& WithCloudwatchLogGroup(const char* value) { SetCloudwatchLogGroup(value); return *this;}
111 
112 
117  inline const Aws::String& GetCloudwatchLogStream() const{ return m_cloudwatchLogStream; }
118 
123  inline bool CloudwatchLogStreamHasBeenSet() const { return m_cloudwatchLogStreamHasBeenSet; }
124 
129  inline void SetCloudwatchLogStream(const Aws::String& value) { m_cloudwatchLogStreamHasBeenSet = true; m_cloudwatchLogStream = value; }
130 
135  inline void SetCloudwatchLogStream(Aws::String&& value) { m_cloudwatchLogStreamHasBeenSet = true; m_cloudwatchLogStream = std::move(value); }
136 
141  inline void SetCloudwatchLogStream(const char* value) { m_cloudwatchLogStreamHasBeenSet = true; m_cloudwatchLogStream.assign(value); }
142 
147  inline ConnectionLogOptions& WithCloudwatchLogStream(const Aws::String& value) { SetCloudwatchLogStream(value); return *this;}
148 
153  inline ConnectionLogOptions& WithCloudwatchLogStream(Aws::String&& value) { SetCloudwatchLogStream(std::move(value)); return *this;}
154 
159  inline ConnectionLogOptions& WithCloudwatchLogStream(const char* value) { SetCloudwatchLogStream(value); return *this;}
160 
161  private:
162 
163  bool m_enabled;
164  bool m_enabledHasBeenSet;
165 
166  Aws::String m_cloudwatchLogGroup;
167  bool m_cloudwatchLogGroupHasBeenSet;
168 
169  Aws::String m_cloudwatchLogStream;
170  bool m_cloudwatchLogStreamHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace EC2
175 } // namespace Aws
Aws::EC2::Model::ConnectionLogOptions::WithCloudwatchLogStream
ConnectionLogOptions & WithCloudwatchLogStream(Aws::String &&value)
Definition: ConnectionLogOptions.h:153
Aws::EC2::Model::ConnectionLogOptions::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ConnectionLogOptions::SetCloudwatchLogGroup
void SetCloudwatchLogGroup(const Aws::String &value)
Definition: ConnectionLogOptions.h:80
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ConnectionLogOptions::GetEnabled
bool GetEnabled() const
Definition: ConnectionLogOptions.h:46
Aws::EC2::Model::ConnectionLogOptions::SetCloudwatchLogStream
void SetCloudwatchLogStream(Aws::String &&value)
Definition: ConnectionLogOptions.h:135
AWSStreamFwd.h
Aws::EC2::Model::ConnectionLogOptions::operator=
ConnectionLogOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ConnectionLogOptions::WithCloudwatchLogStream
ConnectionLogOptions & WithCloudwatchLogStream(const Aws::String &value)
Definition: ConnectionLogOptions.h:147
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ConnectionLogOptions::ConnectionLogOptions
ConnectionLogOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ConnectionLogOptions::SetCloudwatchLogGroup
void SetCloudwatchLogGroup(const char *value)
Definition: ConnectionLogOptions.h:92
Aws::EC2::Model::ConnectionLogOptions::CloudwatchLogStreamHasBeenSet
bool CloudwatchLogStreamHasBeenSet() const
Definition: ConnectionLogOptions.h:123
Aws::EC2::Model::ConnectionLogOptions::ConnectionLogOptions
ConnectionLogOptions()
AWSString.h
Aws::EC2::Model::ConnectionLogOptions::GetCloudwatchLogGroup
const Aws::String & GetCloudwatchLogGroup() const
Definition: ConnectionLogOptions.h:68
Aws::EC2::Model::ConnectionLogOptions::SetCloudwatchLogGroup
void SetCloudwatchLogGroup(Aws::String &&value)
Definition: ConnectionLogOptions.h:86
Aws::EC2::Model::ConnectionLogOptions::WithEnabled
ConnectionLogOptions & WithEnabled(bool value)
Definition: ConnectionLogOptions.h:61
Aws::EC2::Model::ConnectionLogOptions::GetCloudwatchLogStream
const Aws::String & GetCloudwatchLogStream() const
Definition: ConnectionLogOptions.h:117
Aws::EC2::Model::ConnectionLogOptions::SetCloudwatchLogStream
void SetCloudwatchLogStream(const Aws::String &value)
Definition: ConnectionLogOptions.h:129
Aws::EC2::Model::ConnectionLogOptions::WithCloudwatchLogGroup
ConnectionLogOptions & WithCloudwatchLogGroup(Aws::String &&value)
Definition: ConnectionLogOptions.h:104
Aws::EC2::Model::ConnectionLogOptions::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: ConnectionLogOptions.h:51
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ConnectionLogOptions::SetCloudwatchLogStream
void SetCloudwatchLogStream(const char *value)
Definition: ConnectionLogOptions.h:141
Aws::EC2::Model::ConnectionLogOptions::WithCloudwatchLogGroup
ConnectionLogOptions & WithCloudwatchLogGroup(const Aws::String &value)
Definition: ConnectionLogOptions.h:98
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ConnectionLogOptions::WithCloudwatchLogGroup
ConnectionLogOptions & WithCloudwatchLogGroup(const char *value)
Definition: ConnectionLogOptions.h:110
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ConnectionLogOptions::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ConnectionLogOptions::CloudwatchLogGroupHasBeenSet
bool CloudwatchLogGroupHasBeenSet() const
Definition: ConnectionLogOptions.h:74
Aws::EC2::Model::ConnectionLogOptions
Definition: ConnectionLogOptions.h:33
EC2_EXPORTS.h
Aws::EC2::Model::ConnectionLogOptions::WithCloudwatchLogStream
ConnectionLogOptions & WithCloudwatchLogStream(const char *value)
Definition: ConnectionLogOptions.h:159
Aws::EC2::Model::ConnectionLogOptions::SetEnabled
void SetEnabled(bool value)
Definition: ConnectionLogOptions.h:56