AWS SDK for C++  1.9.71
AWS SDK for C++
ConnectionLogResponseOptions.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 
47  inline bool GetEnabled() const{ return m_enabled; }
48 
53  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
54 
59  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
60 
65  inline ConnectionLogResponseOptions& WithEnabled(bool value) { SetEnabled(value); return *this;}
66 
67 
72  inline const Aws::String& GetCloudwatchLogGroup() const{ return m_cloudwatchLogGroup; }
73 
78  inline bool CloudwatchLogGroupHasBeenSet() const { return m_cloudwatchLogGroupHasBeenSet; }
79 
84  inline void SetCloudwatchLogGroup(const Aws::String& value) { m_cloudwatchLogGroupHasBeenSet = true; m_cloudwatchLogGroup = value; }
85 
90  inline void SetCloudwatchLogGroup(Aws::String&& value) { m_cloudwatchLogGroupHasBeenSet = true; m_cloudwatchLogGroup = std::move(value); }
91 
96  inline void SetCloudwatchLogGroup(const char* value) { m_cloudwatchLogGroupHasBeenSet = true; m_cloudwatchLogGroup.assign(value); }
97 
102  inline ConnectionLogResponseOptions& WithCloudwatchLogGroup(const Aws::String& value) { SetCloudwatchLogGroup(value); return *this;}
103 
108  inline ConnectionLogResponseOptions& WithCloudwatchLogGroup(Aws::String&& value) { SetCloudwatchLogGroup(std::move(value)); return *this;}
109 
114  inline ConnectionLogResponseOptions& WithCloudwatchLogGroup(const char* value) { SetCloudwatchLogGroup(value); return *this;}
115 
116 
121  inline const Aws::String& GetCloudwatchLogStream() const{ return m_cloudwatchLogStream; }
122 
127  inline bool CloudwatchLogStreamHasBeenSet() const { return m_cloudwatchLogStreamHasBeenSet; }
128 
133  inline void SetCloudwatchLogStream(const Aws::String& value) { m_cloudwatchLogStreamHasBeenSet = true; m_cloudwatchLogStream = value; }
134 
139  inline void SetCloudwatchLogStream(Aws::String&& value) { m_cloudwatchLogStreamHasBeenSet = true; m_cloudwatchLogStream = std::move(value); }
140 
145  inline void SetCloudwatchLogStream(const char* value) { m_cloudwatchLogStreamHasBeenSet = true; m_cloudwatchLogStream.assign(value); }
146 
151  inline ConnectionLogResponseOptions& WithCloudwatchLogStream(const Aws::String& value) { SetCloudwatchLogStream(value); return *this;}
152 
157  inline ConnectionLogResponseOptions& WithCloudwatchLogStream(Aws::String&& value) { SetCloudwatchLogStream(std::move(value)); return *this;}
158 
163  inline ConnectionLogResponseOptions& WithCloudwatchLogStream(const char* value) { SetCloudwatchLogStream(value); return *this;}
164 
165  private:
166 
167  bool m_enabled;
168  bool m_enabledHasBeenSet;
169 
170  Aws::String m_cloudwatchLogGroup;
171  bool m_cloudwatchLogGroupHasBeenSet;
172 
173  Aws::String m_cloudwatchLogStream;
174  bool m_cloudwatchLogStreamHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace EC2
179 } // namespace Aws
Aws::EC2::Model::ConnectionLogResponseOptions::SetCloudwatchLogStream
void SetCloudwatchLogStream(Aws::String &&value)
Definition: ConnectionLogResponseOptions.h:139
Aws::EC2::Model::ConnectionLogResponseOptions::operator=
ConnectionLogResponseOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ConnectionLogResponseOptions::SetCloudwatchLogGroup
void SetCloudwatchLogGroup(Aws::String &&value)
Definition: ConnectionLogResponseOptions.h:90
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::ConnectionLogResponseOptions::WithCloudwatchLogGroup
ConnectionLogResponseOptions & WithCloudwatchLogGroup(const Aws::String &value)
Definition: ConnectionLogResponseOptions.h:102
Aws::EC2::Model::ConnectionLogResponseOptions::CloudwatchLogGroupHasBeenSet
bool CloudwatchLogGroupHasBeenSet() const
Definition: ConnectionLogResponseOptions.h:78
Aws::EC2::Model::ConnectionLogResponseOptions::WithCloudwatchLogGroup
ConnectionLogResponseOptions & WithCloudwatchLogGroup(Aws::String &&value)
Definition: ConnectionLogResponseOptions.h:108
Aws::EC2::Model::ConnectionLogResponseOptions::SetCloudwatchLogStream
void SetCloudwatchLogStream(const char *value)
Definition: ConnectionLogResponseOptions.h:145
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ConnectionLogResponseOptions::GetEnabled
bool GetEnabled() const
Definition: ConnectionLogResponseOptions.h:47
Aws::EC2::Model::ConnectionLogResponseOptions::ConnectionLogResponseOptions
ConnectionLogResponseOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ConnectionLogResponseOptions::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ConnectionLogResponseOptions
Definition: ConnectionLogResponseOptions.h:33
Aws::EC2::Model::ConnectionLogResponseOptions::SetCloudwatchLogGroup
void SetCloudwatchLogGroup(const Aws::String &value)
Definition: ConnectionLogResponseOptions.h:84
AWSString.h
Aws::EC2::Model::ConnectionLogResponseOptions::CloudwatchLogStreamHasBeenSet
bool CloudwatchLogStreamHasBeenSet() const
Definition: ConnectionLogResponseOptions.h:127
Aws::EC2::Model::ConnectionLogResponseOptions::SetCloudwatchLogStream
void SetCloudwatchLogStream(const Aws::String &value)
Definition: ConnectionLogResponseOptions.h:133
Aws::EC2::Model::ConnectionLogResponseOptions::WithCloudwatchLogStream
ConnectionLogResponseOptions & WithCloudwatchLogStream(const char *value)
Definition: ConnectionLogResponseOptions.h:163
Aws::EC2::Model::ConnectionLogResponseOptions::SetCloudwatchLogGroup
void SetCloudwatchLogGroup(const char *value)
Definition: ConnectionLogResponseOptions.h:96
Aws::EC2::Model::ConnectionLogResponseOptions::GetCloudwatchLogStream
const Aws::String & GetCloudwatchLogStream() const
Definition: ConnectionLogResponseOptions.h:121
Aws::EC2::Model::ConnectionLogResponseOptions::WithCloudwatchLogGroup
ConnectionLogResponseOptions & WithCloudwatchLogGroup(const char *value)
Definition: ConnectionLogResponseOptions.h:114
Aws::EC2::Model::ConnectionLogResponseOptions::SetEnabled
void SetEnabled(bool value)
Definition: ConnectionLogResponseOptions.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ConnectionLogResponseOptions::WithCloudwatchLogStream
ConnectionLogResponseOptions & WithCloudwatchLogStream(const Aws::String &value)
Definition: ConnectionLogResponseOptions.h:151
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ConnectionLogResponseOptions::WithEnabled
ConnectionLogResponseOptions & WithEnabled(bool value)
Definition: ConnectionLogResponseOptions.h:65
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ConnectionLogResponseOptions::WithCloudwatchLogStream
ConnectionLogResponseOptions & WithCloudwatchLogStream(Aws::String &&value)
Definition: ConnectionLogResponseOptions.h:157
Aws::EC2::Model::ConnectionLogResponseOptions::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: ConnectionLogResponseOptions.h:53
Aws::EC2::Model::ConnectionLogResponseOptions::ConnectionLogResponseOptions
ConnectionLogResponseOptions()
EC2_EXPORTS.h
Aws::EC2::Model::ConnectionLogResponseOptions::GetCloudwatchLogGroup
const Aws::String & GetCloudwatchLogGroup() const
Definition: ConnectionLogResponseOptions.h:72
Aws::EC2::Model::ConnectionLogResponseOptions::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const