
commonMain.aws.sdk.kotlin.services.lightsail.model.GetKeyPairResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
public class GetKeyPairResponse private constructor(builder: Builder) {
/**
* An array of key-value pairs containing information about the key pair.
*/
public val keyPair: aws.sdk.kotlin.services.lightsail.model.KeyPair? = builder.keyPair
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.GetKeyPairResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetKeyPairResponse(")
append("keyPair=$keyPair)")
}
override fun hashCode(): kotlin.Int {
var result = keyPair?.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 GetKeyPairResponse
if (keyPair != other.keyPair) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.GetKeyPairResponse = Builder(this).apply(block).build()
public class Builder {
/**
* An array of key-value pairs containing information about the key pair.
*/
public var keyPair: aws.sdk.kotlin.services.lightsail.model.KeyPair? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.GetKeyPairResponse) : this() {
this.keyPair = x.keyPair
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.GetKeyPairResponse = GetKeyPairResponse(this)
/**
* construct an [aws.sdk.kotlin.services.lightsail.model.KeyPair] inside the given [block]
*/
public fun keyPair(block: aws.sdk.kotlin.services.lightsail.model.KeyPair.Builder.() -> kotlin.Unit) {
this.keyPair = aws.sdk.kotlin.services.lightsail.model.KeyPair.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy