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

commonMain.aws.sdk.kotlin.services.glue.model.AuditContext.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.glue.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * A structure containing the Lake Formation audit context.
 */
public class AuditContext private constructor(builder: Builder) {
    /**
     * A string containing the additional audit context information.
     */
    public val additionalAuditContext: kotlin.String? = builder.additionalAuditContext
    /**
     * All columns request for audit.
     */
    public val allColumnsRequested: kotlin.Boolean? = builder.allColumnsRequested
    /**
     * The requested columns for audit.
     */
    public val requestedColumns: List? = builder.requestedColumns

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

    override fun toString(): kotlin.String = buildString {
        append("AuditContext(")
        append("additionalAuditContext=$additionalAuditContext,")
        append("allColumnsRequested=$allColumnsRequested,")
        append("requestedColumns=$requestedColumns")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = additionalAuditContext?.hashCode() ?: 0
        result = 31 * result + (allColumnsRequested?.hashCode() ?: 0)
        result = 31 * result + (requestedColumns?.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 AuditContext

        if (additionalAuditContext != other.additionalAuditContext) return false
        if (allColumnsRequested != other.allColumnsRequested) return false
        if (requestedColumns != other.requestedColumns) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A string containing the additional audit context information.
         */
        public var additionalAuditContext: kotlin.String? = null
        /**
         * All columns request for audit.
         */
        public var allColumnsRequested: kotlin.Boolean? = null
        /**
         * The requested columns for audit.
         */
        public var requestedColumns: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.AuditContext) : this() {
            this.additionalAuditContext = x.additionalAuditContext
            this.allColumnsRequested = x.allColumnsRequested
            this.requestedColumns = x.requestedColumns
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy