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

commonMain.aws.sdk.kotlin.services.grafana.model.DescribeWorkspaceConfigurationResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.grafana.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DescribeWorkspaceConfigurationResponse private constructor(builder: Builder) {
    /**
     * The configuration string for the workspace that you requested. For more information about the format and configuration options available, see [Working in your Grafana workspace](https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-workspace.html).
     */
    public val configuration: kotlin.String = requireNotNull(builder.configuration) { "A non-null value must be provided for configuration" }
    /**
     * The supported Grafana version for the workspace.
     */
    public val grafanaVersion: kotlin.String? = builder.grafanaVersion

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeWorkspaceConfigurationResponse(")
        append("configuration=$configuration,")
        append("grafanaVersion=$grafanaVersion")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = configuration.hashCode()
        result = 31 * result + (grafanaVersion?.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 DescribeWorkspaceConfigurationResponse

        if (configuration != other.configuration) return false
        if (grafanaVersion != other.grafanaVersion) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The configuration string for the workspace that you requested. For more information about the format and configuration options available, see [Working in your Grafana workspace](https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-workspace.html).
         */
        public var configuration: kotlin.String? = null
        /**
         * The supported Grafana version for the workspace.
         */
        public var grafanaVersion: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.grafana.model.DescribeWorkspaceConfigurationResponse) : this() {
            this.configuration = x.configuration
            this.grafanaVersion = x.grafanaVersion
        }

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

        internal fun correctErrors(): Builder {
            if (configuration == null) configuration = ""
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy