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

commonMain.aws.sdk.kotlin.services.iotsitewise.model.UpdateDashboardRequest.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.iotsitewise.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateDashboardRequest 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
    /**
     * The new dashboard definition, as specified in a JSON literal. For detailed information, see [Creating dashboards (CLI)](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/create-dashboards-using-aws-cli.html) in the *IoT SiteWise User Guide*.
     */
    public val dashboardDefinition: kotlin.String? = builder.dashboardDefinition
    /**
     * A new description for the dashboard.
     */
    public val dashboardDescription: kotlin.String? = builder.dashboardDescription
    /**
     * The ID of the dashboard to update.
     */
    public val dashboardId: kotlin.String? = builder.dashboardId
    /**
     * A new friendly name for the dashboard.
     */
    public val dashboardName: kotlin.String? = builder.dashboardName

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateDashboardRequest(")
        append("clientToken=$clientToken,")
        append("dashboardDefinition=$dashboardDefinition,")
        append("dashboardDescription=$dashboardDescription,")
        append("dashboardId=$dashboardId,")
        append("dashboardName=$dashboardName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (dashboardDefinition?.hashCode() ?: 0)
        result = 31 * result + (dashboardDescription?.hashCode() ?: 0)
        result = 31 * result + (dashboardId?.hashCode() ?: 0)
        result = 31 * result + (dashboardName?.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 UpdateDashboardRequest

        if (clientToken != other.clientToken) return false
        if (dashboardDefinition != other.dashboardDefinition) return false
        if (dashboardDescription != other.dashboardDescription) return false
        if (dashboardId != other.dashboardId) return false
        if (dashboardName != other.dashboardName) return false

        return true
    }

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

    @SdkDsl
    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
        /**
         * The new dashboard definition, as specified in a JSON literal. For detailed information, see [Creating dashboards (CLI)](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/create-dashboards-using-aws-cli.html) in the *IoT SiteWise User Guide*.
         */
        public var dashboardDefinition: kotlin.String? = null
        /**
         * A new description for the dashboard.
         */
        public var dashboardDescription: kotlin.String? = null
        /**
         * The ID of the dashboard to update.
         */
        public var dashboardId: kotlin.String? = null
        /**
         * A new friendly name for the dashboard.
         */
        public var dashboardName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotsitewise.model.UpdateDashboardRequest) : this() {
            this.clientToken = x.clientToken
            this.dashboardDefinition = x.dashboardDefinition
            this.dashboardDescription = x.dashboardDescription
            this.dashboardId = x.dashboardId
            this.dashboardName = x.dashboardName
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy