All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.securityhub.model.AwsAmazonMqBrokerLogsDetails.kt Maven / Gradle / Ivy

There is a newer version: 1.3.35
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.securityhub.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Provides information about logs to be activated for the specified broker.
 */
public class AwsAmazonMqBrokerLogsDetails private constructor(builder: Builder) {
    /**
     * Activates audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged. Doesn't apply to RabbitMQ brokers.
     */
    public val audit: kotlin.Boolean? = builder.audit
    /**
     * The location of the CloudWatch Logs log group where audit logs are sent.
     */
    public val auditLogGroup: kotlin.String? = builder.auditLogGroup
    /**
     * Activates general logging.
     */
    public val general: kotlin.Boolean? = builder.general
    /**
     * The location of the CloudWatch Logs log group where general logs are sent.
     */
    public val generalLogGroup: kotlin.String? = builder.generalLogGroup
    /**
     * The list of information about logs that are to be turned on for the specified broker.
     */
    public val pending: aws.sdk.kotlin.services.securityhub.model.AwsAmazonMqBrokerLogsPendingDetails? = builder.pending

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.securityhub.model.AwsAmazonMqBrokerLogsDetails = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("AwsAmazonMqBrokerLogsDetails(")
        append("audit=$audit,")
        append("auditLogGroup=$auditLogGroup,")
        append("general=$general,")
        append("generalLogGroup=$generalLogGroup,")
        append("pending=$pending")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = audit?.hashCode() ?: 0
        result = 31 * result + (auditLogGroup?.hashCode() ?: 0)
        result = 31 * result + (general?.hashCode() ?: 0)
        result = 31 * result + (generalLogGroup?.hashCode() ?: 0)
        result = 31 * result + (pending?.hashCode() ?: 0)
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as AwsAmazonMqBrokerLogsDetails

        if (audit != other.audit) return false
        if (auditLogGroup != other.auditLogGroup) return false
        if (general != other.general) return false
        if (generalLogGroup != other.generalLogGroup) return false
        if (pending != other.pending) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.securityhub.model.AwsAmazonMqBrokerLogsDetails = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * Activates audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged. Doesn't apply to RabbitMQ brokers.
         */
        public var audit: kotlin.Boolean? = null
        /**
         * The location of the CloudWatch Logs log group where audit logs are sent.
         */
        public var auditLogGroup: kotlin.String? = null
        /**
         * Activates general logging.
         */
        public var general: kotlin.Boolean? = null
        /**
         * The location of the CloudWatch Logs log group where general logs are sent.
         */
        public var generalLogGroup: kotlin.String? = null
        /**
         * The list of information about logs that are to be turned on for the specified broker.
         */
        public var pending: aws.sdk.kotlin.services.securityhub.model.AwsAmazonMqBrokerLogsPendingDetails? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.securityhub.model.AwsAmazonMqBrokerLogsDetails) : this() {
            this.audit = x.audit
            this.auditLogGroup = x.auditLogGroup
            this.general = x.general
            this.generalLogGroup = x.generalLogGroup
            this.pending = x.pending
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.securityhub.model.AwsAmazonMqBrokerLogsDetails = AwsAmazonMqBrokerLogsDetails(this)

        /**
         * construct an [aws.sdk.kotlin.services.securityhub.model.AwsAmazonMqBrokerLogsPendingDetails] inside the given [block]
         */
        public fun pending(block: aws.sdk.kotlin.services.securityhub.model.AwsAmazonMqBrokerLogsPendingDetails.Builder.() -> kotlin.Unit) {
            this.pending = aws.sdk.kotlin.services.securityhub.model.AwsAmazonMqBrokerLogsPendingDetails.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy