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

commonMain.aws.sdk.kotlin.services.ivschat.model.UpdateLoggingConfigurationRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.ivschat.model



public class UpdateLoggingConfigurationRequest private constructor(builder: Builder) {
    /**
     * A complex type that contains a destination configuration for where chat content will be logged. There can be only one type of destination (`cloudWatchLogs`, `firehose`, or `s3`) in a `destinationConfiguration`.
     */
    public val destinationConfiguration: aws.sdk.kotlin.services.ivschat.model.DestinationConfiguration? = builder.destinationConfiguration
    /**
     * Identifier of the logging configuration to be updated.
     */
    public val identifier: kotlin.String = requireNotNull(builder.identifier) { "A non-null value must be provided for identifier" }
    /**
     * Logging-configuration name. The value does not need to be unique.
     */
    public val name: kotlin.String? = builder.name

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateLoggingConfigurationRequest(")
        append("destinationConfiguration=$destinationConfiguration,")
        append("identifier=$identifier,")
        append("name=$name")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = destinationConfiguration?.hashCode() ?: 0
        result = 31 * result + (identifier.hashCode())
        result = 31 * result + (name?.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 UpdateLoggingConfigurationRequest

        if (destinationConfiguration != other.destinationConfiguration) return false
        if (identifier != other.identifier) return false
        if (name != other.name) return false

        return true
    }

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

    public class Builder {
        /**
         * A complex type that contains a destination configuration for where chat content will be logged. There can be only one type of destination (`cloudWatchLogs`, `firehose`, or `s3`) in a `destinationConfiguration`.
         */
        public var destinationConfiguration: aws.sdk.kotlin.services.ivschat.model.DestinationConfiguration? = null
        /**
         * Identifier of the logging configuration to be updated.
         */
        public var identifier: kotlin.String? = null
        /**
         * Logging-configuration name. The value does not need to be unique.
         */
        public var name: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ivschat.model.UpdateLoggingConfigurationRequest) : this() {
            this.destinationConfiguration = x.destinationConfiguration
            this.identifier = x.identifier
            this.name = x.name
        }

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

        internal fun correctErrors(): Builder {
            if (identifier == null) identifier = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy