/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Provides information about logs to be activated for the specified broker. *

See Also:

AWS * API Reference

*/ class AwsAmazonMqBrokerLogsDetails { public: AWS_SECURITYHUB_API AwsAmazonMqBrokerLogsDetails(); AWS_SECURITYHUB_API AwsAmazonMqBrokerLogsDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsAmazonMqBrokerLogsDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Activates audit logging. Every user management action made using JMX or the * ActiveMQ Web Console is logged. Doesn't apply to RabbitMQ brokers.

*/ inline bool GetAudit() const{ return m_audit; } /** *

Activates audit logging. Every user management action made using JMX or the * ActiveMQ Web Console is logged. Doesn't apply to RabbitMQ brokers.

*/ inline bool AuditHasBeenSet() const { return m_auditHasBeenSet; } /** *

Activates audit logging. Every user management action made using JMX or the * ActiveMQ Web Console is logged. Doesn't apply to RabbitMQ brokers.

*/ inline void SetAudit(bool value) { m_auditHasBeenSet = true; m_audit = value; } /** *

Activates audit logging. Every user management action made using JMX or the * ActiveMQ Web Console is logged. Doesn't apply to RabbitMQ brokers.

*/ inline AwsAmazonMqBrokerLogsDetails& WithAudit(bool value) { SetAudit(value); return *this;} /** *

Activates general logging.

*/ inline bool GetGeneral() const{ return m_general; } /** *

Activates general logging.

*/ inline bool GeneralHasBeenSet() const { return m_generalHasBeenSet; } /** *

Activates general logging.

*/ inline void SetGeneral(bool value) { m_generalHasBeenSet = true; m_general = value; } /** *

Activates general logging.

*/ inline AwsAmazonMqBrokerLogsDetails& WithGeneral(bool value) { SetGeneral(value); return *this;} /** *

The location of the CloudWatch Logs log group where audit logs are sent. *

*/ inline const Aws::String& GetAuditLogGroup() const{ return m_auditLogGroup; } /** *

The location of the CloudWatch Logs log group where audit logs are sent. *

*/ inline bool AuditLogGroupHasBeenSet() const { return m_auditLogGroupHasBeenSet; } /** *

The location of the CloudWatch Logs log group where audit logs are sent. *

*/ inline void SetAuditLogGroup(const Aws::String& value) { m_auditLogGroupHasBeenSet = true; m_auditLogGroup = value; } /** *

The location of the CloudWatch Logs log group where audit logs are sent. *

*/ inline void SetAuditLogGroup(Aws::String&& value) { m_auditLogGroupHasBeenSet = true; m_auditLogGroup = std::move(value); } /** *

The location of the CloudWatch Logs log group where audit logs are sent. *

*/ inline void SetAuditLogGroup(const char* value) { m_auditLogGroupHasBeenSet = true; m_auditLogGroup.assign(value); } /** *

The location of the CloudWatch Logs log group where audit logs are sent. *

*/ inline AwsAmazonMqBrokerLogsDetails& WithAuditLogGroup(const Aws::String& value) { SetAuditLogGroup(value); return *this;} /** *

The location of the CloudWatch Logs log group where audit logs are sent. *

*/ inline AwsAmazonMqBrokerLogsDetails& WithAuditLogGroup(Aws::String&& value) { SetAuditLogGroup(std::move(value)); return *this;} /** *

The location of the CloudWatch Logs log group where audit logs are sent. *

*/ inline AwsAmazonMqBrokerLogsDetails& WithAuditLogGroup(const char* value) { SetAuditLogGroup(value); return *this;} /** *

The location of the CloudWatch Logs log group where general logs are sent. *

*/ inline const Aws::String& GetGeneralLogGroup() const{ return m_generalLogGroup; } /** *

The location of the CloudWatch Logs log group where general logs are sent. *

*/ inline bool GeneralLogGroupHasBeenSet() const { return m_generalLogGroupHasBeenSet; } /** *

The location of the CloudWatch Logs log group where general logs are sent. *

*/ inline void SetGeneralLogGroup(const Aws::String& value) { m_generalLogGroupHasBeenSet = true; m_generalLogGroup = value; } /** *

The location of the CloudWatch Logs log group where general logs are sent. *

*/ inline void SetGeneralLogGroup(Aws::String&& value) { m_generalLogGroupHasBeenSet = true; m_generalLogGroup = std::move(value); } /** *

The location of the CloudWatch Logs log group where general logs are sent. *

*/ inline void SetGeneralLogGroup(const char* value) { m_generalLogGroupHasBeenSet = true; m_generalLogGroup.assign(value); } /** *

The location of the CloudWatch Logs log group where general logs are sent. *

*/ inline AwsAmazonMqBrokerLogsDetails& WithGeneralLogGroup(const Aws::String& value) { SetGeneralLogGroup(value); return *this;} /** *

The location of the CloudWatch Logs log group where general logs are sent. *

*/ inline AwsAmazonMqBrokerLogsDetails& WithGeneralLogGroup(Aws::String&& value) { SetGeneralLogGroup(std::move(value)); return *this;} /** *

The location of the CloudWatch Logs log group where general logs are sent. *

*/ inline AwsAmazonMqBrokerLogsDetails& WithGeneralLogGroup(const char* value) { SetGeneralLogGroup(value); return *this;} /** *

The list of information about logs that are to be turned on for the * specified broker.

*/ inline const AwsAmazonMqBrokerLogsPendingDetails& GetPending() const{ return m_pending; } /** *

The list of information about logs that are to be turned on for the * specified broker.

*/ inline bool PendingHasBeenSet() const { return m_pendingHasBeenSet; } /** *

The list of information about logs that are to be turned on for the * specified broker.

*/ inline void SetPending(const AwsAmazonMqBrokerLogsPendingDetails& value) { m_pendingHasBeenSet = true; m_pending = value; } /** *

The list of information about logs that are to be turned on for the * specified broker.

*/ inline void SetPending(AwsAmazonMqBrokerLogsPendingDetails&& value) { m_pendingHasBeenSet = true; m_pending = std::move(value); } /** *

The list of information about logs that are to be turned on for the * specified broker.

*/ inline AwsAmazonMqBrokerLogsDetails& WithPending(const AwsAmazonMqBrokerLogsPendingDetails& value) { SetPending(value); return *this;} /** *

The list of information about logs that are to be turned on for the * specified broker.

*/ inline AwsAmazonMqBrokerLogsDetails& WithPending(AwsAmazonMqBrokerLogsPendingDetails&& value) { SetPending(std::move(value)); return *this;} private: bool m_audit; bool m_auditHasBeenSet = false; bool m_general; bool m_generalHasBeenSet = false; Aws::String m_auditLogGroup; bool m_auditLogGroupHasBeenSet = false; Aws::String m_generalLogGroup; bool m_generalLogGroupHasBeenSet = false; AwsAmazonMqBrokerLogsPendingDetails m_pending; bool m_pendingHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws