/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/ec2/EC2_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSStreamFwd.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** * <p>Options for CloudWatch Logs as a logging destination.</p><p><h3>See * Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VerifiedAccessLogCloudWatchLogsDestinationOptions">AWS * API Reference</a></p> */ class VerifiedAccessLogCloudWatchLogsDestinationOptions { public: AWS_EC2_API VerifiedAccessLogCloudWatchLogsDestinationOptions(); AWS_EC2_API VerifiedAccessLogCloudWatchLogsDestinationOptions(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API VerifiedAccessLogCloudWatchLogsDestinationOptions& 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; /** * <p>Indicates whether logging is enabled.</p> */ inline bool GetEnabled() const{ return m_enabled; } /** * <p>Indicates whether logging is enabled.</p> */ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** * <p>Indicates whether logging is enabled.</p> */ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** * <p>Indicates whether logging is enabled.</p> */ inline VerifiedAccessLogCloudWatchLogsDestinationOptions& WithEnabled(bool value) { SetEnabled(value); return *this;} /** * <p>The ID of the CloudWatch Logs log group.</p> */ inline const Aws::String& GetLogGroup() const{ return m_logGroup; } /** * <p>The ID of the CloudWatch Logs log group.</p> */ inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; } /** * <p>The ID of the CloudWatch Logs log group.</p> */ inline void SetLogGroup(const Aws::String& value) { m_logGroupHasBeenSet = true; m_logGroup = value; } /** * <p>The ID of the CloudWatch Logs log group.</p> */ inline void SetLogGroup(Aws::String&& value) { m_logGroupHasBeenSet = true; m_logGroup = std::move(value); } /** * <p>The ID of the CloudWatch Logs log group.</p> */ inline void SetLogGroup(const char* value) { m_logGroupHasBeenSet = true; m_logGroup.assign(value); } /** * <p>The ID of the CloudWatch Logs log group.</p> */ inline VerifiedAccessLogCloudWatchLogsDestinationOptions& WithLogGroup(const Aws::String& value) { SetLogGroup(value); return *this;} /** * <p>The ID of the CloudWatch Logs log group.</p> */ inline VerifiedAccessLogCloudWatchLogsDestinationOptions& WithLogGroup(Aws::String&& value) { SetLogGroup(std::move(value)); return *this;} /** * <p>The ID of the CloudWatch Logs log group.</p> */ inline VerifiedAccessLogCloudWatchLogsDestinationOptions& WithLogGroup(const char* value) { SetLogGroup(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; Aws::String m_logGroup; bool m_logGroupHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws