
commonMain.aws.sdk.kotlin.services.ivsrealtime.model.ImportPublicKeyResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ivsrealtime.model
import aws.smithy.kotlin.runtime.SdkDsl
public class ImportPublicKeyResponse private constructor(builder: Builder) {
/**
* The public key that was imported.
*/
public val publicKey: aws.sdk.kotlin.services.ivsrealtime.model.PublicKey? = builder.publicKey
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ivsrealtime.model.ImportPublicKeyResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ImportPublicKeyResponse(")
append("publicKey=$publicKey")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = publicKey?.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 ImportPublicKeyResponse
if (publicKey != other.publicKey) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ivsrealtime.model.ImportPublicKeyResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The public key that was imported.
*/
public var publicKey: aws.sdk.kotlin.services.ivsrealtime.model.PublicKey? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ivsrealtime.model.ImportPublicKeyResponse) : this() {
this.publicKey = x.publicKey
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ivsrealtime.model.ImportPublicKeyResponse = ImportPublicKeyResponse(this)
/**
* construct an [aws.sdk.kotlin.services.ivsrealtime.model.PublicKey] inside the given [block]
*/
public fun publicKey(block: aws.sdk.kotlin.services.ivsrealtime.model.PublicKey.Builder.() -> kotlin.Unit) {
this.publicKey = aws.sdk.kotlin.services.ivsrealtime.model.PublicKey.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy