commonMain.aws.sdk.kotlin.services.grafana.model.DescribeWorkspaceResponse.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 DescribeWorkspaceResponse private constructor(builder: Builder) {
/**
* A structure containing information about the workspace.
*/
public val workspace: aws.sdk.kotlin.services.grafana.model.WorkspaceDescription? = builder.workspace
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.grafana.model.DescribeWorkspaceResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeWorkspaceResponse(")
append("workspace=$workspace")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = workspace?.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 DescribeWorkspaceResponse
if (workspace != other.workspace) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.grafana.model.DescribeWorkspaceResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A structure containing information about the workspace.
*/
public var workspace: aws.sdk.kotlin.services.grafana.model.WorkspaceDescription? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.grafana.model.DescribeWorkspaceResponse) : this() {
this.workspace = x.workspace
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.grafana.model.DescribeWorkspaceResponse = DescribeWorkspaceResponse(this)
/**
* construct an [aws.sdk.kotlin.services.grafana.model.WorkspaceDescription] inside the given [block]
*/
public fun workspace(block: aws.sdk.kotlin.services.grafana.model.WorkspaceDescription.Builder.() -> kotlin.Unit) {
this.workspace = aws.sdk.kotlin.services.grafana.model.WorkspaceDescription.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}