commonMain.aws.sdk.kotlin.services.grafana.model.DescribeWorkspaceConfigurationResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grafana-jvm Show documentation
Show all versions of grafana-jvm Show documentation
The AWS SDK for Kotlin client for grafana
// 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
}
}
}