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

Options for CloudWatch Logs as a logging destination.

See * Also:

AWS * API Reference

*/ class VerifiedAccessLogCloudWatchLogsDestination { public: AWS_EC2_API VerifiedAccessLogCloudWatchLogsDestination(); AWS_EC2_API VerifiedAccessLogCloudWatchLogsDestination(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API VerifiedAccessLogCloudWatchLogsDestination& 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 logging is enabled.

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

Indicates whether logging is enabled.

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

Indicates whether logging is enabled.

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

Indicates whether logging is enabled.

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

The delivery status for access logs.

*/ inline const VerifiedAccessLogDeliveryStatus& GetDeliveryStatus() const{ return m_deliveryStatus; } /** *

The delivery status for access logs.

*/ inline bool DeliveryStatusHasBeenSet() const { return m_deliveryStatusHasBeenSet; } /** *

The delivery status for access logs.

*/ inline void SetDeliveryStatus(const VerifiedAccessLogDeliveryStatus& value) { m_deliveryStatusHasBeenSet = true; m_deliveryStatus = value; } /** *

The delivery status for access logs.

*/ inline void SetDeliveryStatus(VerifiedAccessLogDeliveryStatus&& value) { m_deliveryStatusHasBeenSet = true; m_deliveryStatus = std::move(value); } /** *

The delivery status for access logs.

*/ inline VerifiedAccessLogCloudWatchLogsDestination& WithDeliveryStatus(const VerifiedAccessLogDeliveryStatus& value) { SetDeliveryStatus(value); return *this;} /** *

The delivery status for access logs.

*/ inline VerifiedAccessLogCloudWatchLogsDestination& WithDeliveryStatus(VerifiedAccessLogDeliveryStatus&& value) { SetDeliveryStatus(std::move(value)); return *this;} /** *

The ID of the CloudWatch Logs log group.

*/ inline const Aws::String& GetLogGroup() const{ return m_logGroup; } /** *

The ID of the CloudWatch Logs log group.

*/ inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; } /** *

The ID of the CloudWatch Logs log group.

*/ inline void SetLogGroup(const Aws::String& value) { m_logGroupHasBeenSet = true; m_logGroup = value; } /** *

The ID of the CloudWatch Logs log group.

*/ inline void SetLogGroup(Aws::String&& value) { m_logGroupHasBeenSet = true; m_logGroup = std::move(value); } /** *

The ID of the CloudWatch Logs log group.

*/ inline void SetLogGroup(const char* value) { m_logGroupHasBeenSet = true; m_logGroup.assign(value); } /** *

The ID of the CloudWatch Logs log group.

*/ inline VerifiedAccessLogCloudWatchLogsDestination& WithLogGroup(const Aws::String& value) { SetLogGroup(value); return *this;} /** *

The ID of the CloudWatch Logs log group.

*/ inline VerifiedAccessLogCloudWatchLogsDestination& WithLogGroup(Aws::String&& value) { SetLogGroup(std::move(value)); return *this;} /** *

The ID of the CloudWatch Logs log group.

*/ inline VerifiedAccessLogCloudWatchLogsDestination& WithLogGroup(const char* value) { SetLogGroup(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; VerifiedAccessLogDeliveryStatus m_deliveryStatus; bool m_deliveryStatusHasBeenSet = false; Aws::String m_logGroup; bool m_logGroupHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws