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

commonMain.aws.sdk.kotlin.services.wafv2.model.GetLoggingConfigurationRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.wafv2.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetLoggingConfigurationRequest private constructor(builder: Builder) {
    /**
     * The owner of the logging configuration, which must be set to `CUSTOMER` for the configurations that you manage.
     *
     * The log scope `SECURITY_LAKE` indicates a configuration that is managed through Amazon Security Lake. You can use Security Lake to collect log and event data from various sources for normalization, analysis, and management. For information, see [Collecting data from Amazon Web Services services](https://docs.aws.amazon.com/security-lake/latest/userguide/internal-sources.html) in the *Amazon Security Lake user guide*.
     *
     * Default: `CUSTOMER`
     */
    public val logScope: aws.sdk.kotlin.services.wafv2.model.LogScope? = builder.logScope
    /**
     * Used to distinguish between various logging options. Currently, there is one option.
     *
     * Default: `WAF_LOGS`
     */
    public val logType: aws.sdk.kotlin.services.wafv2.model.LogType? = builder.logType
    /**
     * The Amazon Resource Name (ARN) of the web ACL for which you want to get the LoggingConfiguration.
     */
    public val resourceArn: kotlin.String? = builder.resourceArn

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

    override fun toString(): kotlin.String = buildString {
        append("GetLoggingConfigurationRequest(")
        append("logScope=$logScope,")
        append("logType=$logType,")
        append("resourceArn=$resourceArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = logScope?.hashCode() ?: 0
        result = 31 * result + (logType?.hashCode() ?: 0)
        result = 31 * result + (resourceArn?.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 GetLoggingConfigurationRequest

        if (logScope != other.logScope) return false
        if (logType != other.logType) return false
        if (resourceArn != other.resourceArn) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The owner of the logging configuration, which must be set to `CUSTOMER` for the configurations that you manage.
         *
         * The log scope `SECURITY_LAKE` indicates a configuration that is managed through Amazon Security Lake. You can use Security Lake to collect log and event data from various sources for normalization, analysis, and management. For information, see [Collecting data from Amazon Web Services services](https://docs.aws.amazon.com/security-lake/latest/userguide/internal-sources.html) in the *Amazon Security Lake user guide*.
         *
         * Default: `CUSTOMER`
         */
        public var logScope: aws.sdk.kotlin.services.wafv2.model.LogScope? = null
        /**
         * Used to distinguish between various logging options. Currently, there is one option.
         *
         * Default: `WAF_LOGS`
         */
        public var logType: aws.sdk.kotlin.services.wafv2.model.LogType? = null
        /**
         * The Amazon Resource Name (ARN) of the web ACL for which you want to get the LoggingConfiguration.
         */
        public var resourceArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wafv2.model.GetLoggingConfigurationRequest) : this() {
            this.logScope = x.logScope
            this.logType = x.logType
            this.resourceArn = x.resourceArn
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy