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

commonMain.aws.sdk.kotlin.services.lookoutmetrics.model.AttributeValue.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lookoutmetrics.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * An attribute value.
 */
public class AttributeValue private constructor(builder: Builder) {
    /**
     * A binary value.
     */
    public val b: kotlin.String? = builder.b
    /**
     * A list of binary values.
     */
    public val bs: List? = builder.bs
    /**
     * A number.
     */
    public val n: kotlin.String? = builder.n
    /**
     * A list of numbers.
     */
    public val ns: List? = builder.ns
    /**
     * A string.
     */
    public val s: kotlin.String? = builder.s
    /**
     * A list of strings.
     */
    public val ss: List? = builder.ss

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

    override fun toString(): kotlin.String = buildString {
        append("AttributeValue(")
        append("b=$b,")
        append("bs=$bs,")
        append("n=$n,")
        append("ns=$ns,")
        append("s=$s,")
        append("ss=$ss")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = b?.hashCode() ?: 0
        result = 31 * result + (bs?.hashCode() ?: 0)
        result = 31 * result + (n?.hashCode() ?: 0)
        result = 31 * result + (ns?.hashCode() ?: 0)
        result = 31 * result + (s?.hashCode() ?: 0)
        result = 31 * result + (ss?.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 AttributeValue

        if (b != other.b) return false
        if (bs != other.bs) return false
        if (n != other.n) return false
        if (ns != other.ns) return false
        if (s != other.s) return false
        if (ss != other.ss) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A binary value.
         */
        public var b: kotlin.String? = null
        /**
         * A list of binary values.
         */
        public var bs: List? = null
        /**
         * A number.
         */
        public var n: kotlin.String? = null
        /**
         * A list of numbers.
         */
        public var ns: List? = null
        /**
         * A string.
         */
        public var s: kotlin.String? = null
        /**
         * A list of strings.
         */
        public var ss: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lookoutmetrics.model.AttributeValue) : this() {
            this.b = x.b
            this.bs = x.bs
            this.n = x.n
            this.ns = x.ns
            this.s = x.s
            this.ss = x.ss
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy