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