commonMain.aws.sdk.kotlin.services.grafana.model.DeleteWorkspaceResponse.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 DeleteWorkspaceResponse private constructor(builder: Builder) {
/**
* A structure containing information about the workspace that was deleted.
*/
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.DeleteWorkspaceResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteWorkspaceResponse(")
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 DeleteWorkspaceResponse
if (workspace != other.workspace) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.grafana.model.DeleteWorkspaceResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A structure containing information about the workspace that was deleted.
*/
public var workspace: aws.sdk.kotlin.services.grafana.model.WorkspaceDescription? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.grafana.model.DeleteWorkspaceResponse) : this() {
this.workspace = x.workspace
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.grafana.model.DeleteWorkspaceResponse = DeleteWorkspaceResponse(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
}
}
}