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

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

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

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



public class UpdatePackageConfigurationRequest private constructor(builder: Builder) {
    /**
     * A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * Configuration to manage job's package version reporting. This updates the thing's reserved named shadow that the job targets.
     */
    public val versionUpdateByJobsConfig: aws.sdk.kotlin.services.iot.model.VersionUpdateByJobsConfig? = builder.versionUpdateByJobsConfig

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

    override fun toString(): kotlin.String = buildString {
        append("UpdatePackageConfigurationRequest(")
        append("clientToken=$clientToken,")
        append("versionUpdateByJobsConfig=$versionUpdateByJobsConfig")
        append(")")
    }

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

        if (clientToken != other.clientToken) return false
        if (versionUpdateByJobsConfig != other.versionUpdateByJobsConfig) return false

        return true
    }

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

    public class Builder {
        /**
         * A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
         */
        public var clientToken: kotlin.String? = null
        /**
         * Configuration to manage job's package version reporting. This updates the thing's reserved named shadow that the job targets.
         */
        public var versionUpdateByJobsConfig: aws.sdk.kotlin.services.iot.model.VersionUpdateByJobsConfig? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.UpdatePackageConfigurationRequest) : this() {
            this.clientToken = x.clientToken
            this.versionUpdateByJobsConfig = x.versionUpdateByJobsConfig
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.iot.model.VersionUpdateByJobsConfig] inside the given [block]
         */
        public fun versionUpdateByJobsConfig(block: aws.sdk.kotlin.services.iot.model.VersionUpdateByJobsConfig.Builder.() -> kotlin.Unit) {
            this.versionUpdateByJobsConfig = aws.sdk.kotlin.services.iot.model.VersionUpdateByJobsConfig.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy