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

commonMain.aws.sdk.kotlin.services.rum.model.CwLog.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.rum.model



/**
 * A structure that contains the information about whether the app monitor stores copies of the data that RUM collects in CloudWatch Logs. If it does, this structure also contains the name of the log group.
 */
public class CwLog private constructor(builder: Builder) {
    /**
     * Indicated whether the app monitor stores copies of the data that RUM collects in CloudWatch Logs.
     */
    public val cwLogEnabled: kotlin.Boolean? = builder.cwLogEnabled
    /**
     * The name of the log group where the copies are stored.
     */
    public val cwLogGroup: kotlin.String? = builder.cwLogGroup

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

    override fun toString(): kotlin.String = buildString {
        append("CwLog(")
        append("cwLogEnabled=$cwLogEnabled,")
        append("cwLogGroup=$cwLogGroup")
        append(")")
    }

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

        if (cwLogEnabled != other.cwLogEnabled) return false
        if (cwLogGroup != other.cwLogGroup) return false

        return true
    }

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

    public class Builder {
        /**
         * Indicated whether the app monitor stores copies of the data that RUM collects in CloudWatch Logs.
         */
        public var cwLogEnabled: kotlin.Boolean? = null
        /**
         * The name of the log group where the copies are stored.
         */
        public var cwLogGroup: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.rum.model.CwLog) : this() {
            this.cwLogEnabled = x.cwLogEnabled
            this.cwLogGroup = x.cwLogGroup
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy