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

commonMain.aws.sdk.kotlin.services.cloudwatch.model.GetDashboardResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.cloudwatch.model



public class GetDashboardResponse private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the dashboard.
     */
    public val dashboardArn: kotlin.String? = builder.dashboardArn
    /**
     * The detailed information about the dashboard, including what widgets are included and their location on the dashboard. For more information about the `DashboardBody` syntax, see [Dashboard Body Structure and Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html).
     */
    public val dashboardBody: kotlin.String? = builder.dashboardBody
    /**
     * The name of the dashboard.
     */
    public val dashboardName: kotlin.String? = builder.dashboardName

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

    override fun toString(): kotlin.String = buildString {
        append("GetDashboardResponse(")
        append("dashboardArn=$dashboardArn,")
        append("dashboardBody=$dashboardBody,")
        append("dashboardName=$dashboardName")
        append(")")
    }

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

        if (dashboardArn != other.dashboardArn) return false
        if (dashboardBody != other.dashboardBody) return false
        if (dashboardName != other.dashboardName) return false

        return true
    }

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

    public class Builder {
        /**
         * The Amazon Resource Name (ARN) of the dashboard.
         */
        public var dashboardArn: kotlin.String? = null
        /**
         * The detailed information about the dashboard, including what widgets are included and their location on the dashboard. For more information about the `DashboardBody` syntax, see [Dashboard Body Structure and Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html).
         */
        public var dashboardBody: kotlin.String? = null
        /**
         * The name of the dashboard.
         */
        public var dashboardName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cloudwatch.model.GetDashboardResponse) : this() {
            this.dashboardArn = x.dashboardArn
            this.dashboardBody = x.dashboardBody
            this.dashboardName = x.dashboardName
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy