/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Information about the client connection logging options for a Client VPN * endpoint.

See Also:

AWS * API Reference

*/ class ConnectionLogResponseOptions { public: AWS_EC2_API ConnectionLogResponseOptions(); AWS_EC2_API ConnectionLogResponseOptions(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ConnectionLogResponseOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); 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; /** *

Indicates whether client connection logging is enabled for the Client VPN * endpoint.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

Indicates whether client connection logging is enabled for the Client VPN * endpoint.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

Indicates whether client connection logging is enabled for the Client VPN * endpoint.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

Indicates whether client connection logging is enabled for the Client VPN * endpoint.

*/ inline ConnectionLogResponseOptions& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

The name of the Amazon CloudWatch Logs log group to which connection logging * data is published.

*/ inline const Aws::String& GetCloudwatchLogGroup() const{ return m_cloudwatchLogGroup; } /** *

The name of the Amazon CloudWatch Logs log group to which connection logging * data is published.

*/ inline bool CloudwatchLogGroupHasBeenSet() const { return m_cloudwatchLogGroupHasBeenSet; } /** *

The name of the Amazon CloudWatch Logs log group to which connection logging * data is published.

*/ inline void SetCloudwatchLogGroup(const Aws::String& value) { m_cloudwatchLogGroupHasBeenSet = true; m_cloudwatchLogGroup = value; } /** *

The name of the Amazon CloudWatch Logs log group to which connection logging * data is published.

*/ inline void SetCloudwatchLogGroup(Aws::String&& value) { m_cloudwatchLogGroupHasBeenSet = true; m_cloudwatchLogGroup = std::move(value); } /** *

The name of the Amazon CloudWatch Logs log group to which connection logging * data is published.

*/ inline void SetCloudwatchLogGroup(const char* value) { m_cloudwatchLogGroupHasBeenSet = true; m_cloudwatchLogGroup.assign(value); } /** *

The name of the Amazon CloudWatch Logs log group to which connection logging * data is published.

*/ inline ConnectionLogResponseOptions& WithCloudwatchLogGroup(const Aws::String& value) { SetCloudwatchLogGroup(value); return *this;} /** *

The name of the Amazon CloudWatch Logs log group to which connection logging * data is published.

*/ inline ConnectionLogResponseOptions& WithCloudwatchLogGroup(Aws::String&& value) { SetCloudwatchLogGroup(std::move(value)); return *this;} /** *

The name of the Amazon CloudWatch Logs log group to which connection logging * data is published.

*/ inline ConnectionLogResponseOptions& WithCloudwatchLogGroup(const char* value) { SetCloudwatchLogGroup(value); return *this;} /** *

The name of the Amazon CloudWatch Logs log stream to which connection logging * data is published.

*/ inline const Aws::String& GetCloudwatchLogStream() const{ return m_cloudwatchLogStream; } /** *

The name of the Amazon CloudWatch Logs log stream to which connection logging * data is published.

*/ inline bool CloudwatchLogStreamHasBeenSet() const { return m_cloudwatchLogStreamHasBeenSet; } /** *

The name of the Amazon CloudWatch Logs log stream to which connection logging * data is published.

*/ inline void SetCloudwatchLogStream(const Aws::String& value) { m_cloudwatchLogStreamHasBeenSet = true; m_cloudwatchLogStream = value; } /** *

The name of the Amazon CloudWatch Logs log stream to which connection logging * data is published.

*/ inline void SetCloudwatchLogStream(Aws::String&& value) { m_cloudwatchLogStreamHasBeenSet = true; m_cloudwatchLogStream = std::move(value); } /** *

The name of the Amazon CloudWatch Logs log stream to which connection logging * data is published.

*/ inline void SetCloudwatchLogStream(const char* value) { m_cloudwatchLogStreamHasBeenSet = true; m_cloudwatchLogStream.assign(value); } /** *

The name of the Amazon CloudWatch Logs log stream to which connection logging * data is published.

*/ inline ConnectionLogResponseOptions& WithCloudwatchLogStream(const Aws::String& value) { SetCloudwatchLogStream(value); return *this;} /** *

The name of the Amazon CloudWatch Logs log stream to which connection logging * data is published.

*/ inline ConnectionLogResponseOptions& WithCloudwatchLogStream(Aws::String&& value) { SetCloudwatchLogStream(std::move(value)); return *this;} /** *

The name of the Amazon CloudWatch Logs log stream to which connection logging * data is published.

*/ inline ConnectionLogResponseOptions& WithCloudwatchLogStream(const char* value) { SetCloudwatchLogStream(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; Aws::String m_cloudwatchLogGroup; bool m_cloudwatchLogGroupHasBeenSet = false; Aws::String m_cloudwatchLogStream; bool m_cloudwatchLogStreamHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws