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

commonMain.aws.sdk.kotlin.services.iot.model.UpdateDimensionResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.iot.model

import aws.smithy.kotlin.runtime.time.Instant

public class UpdateDimensionResponse private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN)of the created dimension.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * The date and time, in milliseconds since epoch, when the dimension was initially created.
     */
    public val creationDate: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDate
    /**
     * The date and time, in milliseconds since epoch, when the dimension was most recently updated.
     */
    public val lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedDate
    /**
     * A unique identifier for the dimension.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The value or list of values used to scope the dimension. For example, for topic filters, this is the pattern used to match the MQTT topic name.
     */
    public val stringValues: List? = builder.stringValues
    /**
     * The type of the dimension.
     */
    public val type: aws.sdk.kotlin.services.iot.model.DimensionType? = builder.type

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateDimensionResponse(")
        append("arn=$arn,")
        append("creationDate=$creationDate,")
        append("lastModifiedDate=$lastModifiedDate,")
        append("name=$name,")
        append("stringValues=$stringValues,")
        append("type=$type")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (creationDate?.hashCode() ?: 0)
        result = 31 * result + (lastModifiedDate?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (stringValues?.hashCode() ?: 0)
        result = 31 * result + (type?.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 UpdateDimensionResponse

        if (arn != other.arn) return false
        if (creationDate != other.creationDate) return false
        if (lastModifiedDate != other.lastModifiedDate) return false
        if (name != other.name) return false
        if (stringValues != other.stringValues) return false
        if (type != other.type) return false

        return true
    }

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

    public class Builder {
        /**
         * The Amazon Resource Name (ARN)of the created dimension.
         */
        public var arn: kotlin.String? = null
        /**
         * The date and time, in milliseconds since epoch, when the dimension was initially created.
         */
        public var creationDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The date and time, in milliseconds since epoch, when the dimension was most recently updated.
         */
        public var lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A unique identifier for the dimension.
         */
        public var name: kotlin.String? = null
        /**
         * The value or list of values used to scope the dimension. For example, for topic filters, this is the pattern used to match the MQTT topic name.
         */
        public var stringValues: List? = null
        /**
         * The type of the dimension.
         */
        public var type: aws.sdk.kotlin.services.iot.model.DimensionType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.UpdateDimensionResponse) : this() {
            this.arn = x.arn
            this.creationDate = x.creationDate
            this.lastModifiedDate = x.lastModifiedDate
            this.name = x.name
            this.stringValues = x.stringValues
            this.type = x.type
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy