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

commonMain.aws.sdk.kotlin.services.neptune.model.PendingCloudwatchLogsExports.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.neptune.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * A list of the log types whose configuration is still pending. In other words, these log types are in the process of being activated or deactivated.
 *
 * Valid log types are: `audit` (to publish audit logs) and `slowquery` (to publish slow-query logs). See [Publishing Neptune logs to Amazon CloudWatch logs](https://docs.aws.amazon.com/neptune/latest/userguide/cloudwatch-logs.html).
 */
public class PendingCloudwatchLogsExports private constructor(builder: Builder) {
    /**
     * Log types that are in the process of being enabled. After they are enabled, these log types are exported to CloudWatch Logs.
     */
    public val logTypesToDisable: List? = builder.logTypesToDisable
    /**
     * Log types that are in the process of being deactivated. After they are deactivated, these log types aren't exported to CloudWatch Logs.
     */
    public val logTypesToEnable: List? = builder.logTypesToEnable

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

    override fun toString(): kotlin.String = buildString {
        append("PendingCloudwatchLogsExports(")
        append("logTypesToDisable=$logTypesToDisable,")
        append("logTypesToEnable=$logTypesToEnable")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = logTypesToDisable?.hashCode() ?: 0
        result = 31 * result + (logTypesToEnable?.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 PendingCloudwatchLogsExports

        if (logTypesToDisable != other.logTypesToDisable) return false
        if (logTypesToEnable != other.logTypesToEnable) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Log types that are in the process of being enabled. After they are enabled, these log types are exported to CloudWatch Logs.
         */
        public var logTypesToDisable: List? = null
        /**
         * Log types that are in the process of being deactivated. After they are deactivated, these log types aren't exported to CloudWatch Logs.
         */
        public var logTypesToEnable: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.neptune.model.PendingCloudwatchLogsExports) : this() {
            this.logTypesToDisable = x.logTypesToDisable
            this.logTypesToEnable = x.logTypesToEnable
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy