commonMain.aws.sdk.kotlin.services.ec2instanceconnect.model.SendSshPublicKeyResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ec2instanceconnect-jvm Show documentation
Show all versions of ec2instanceconnect-jvm Show documentation
The AWS SDK for Kotlin client for EC2 Instance Connect
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ec2instanceconnect.model
import aws.smithy.kotlin.runtime.SdkDsl
public class SendSshPublicKeyResponse private constructor(builder: Builder) {
/**
* The ID of the request. Please provide this ID when contacting AWS Support for assistance.
*/
public val requestId: kotlin.String? = builder.requestId
/**
* Is true if the request succeeds and an error otherwise.
*/
public val success: kotlin.Boolean = builder.success
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ec2instanceconnect.model.SendSshPublicKeyResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SendSshPublicKeyResponse(")
append("requestId=$requestId,")
append("success=$success")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = requestId?.hashCode() ?: 0
result = 31 * result + (success.hashCode())
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 SendSshPublicKeyResponse
if (requestId != other.requestId) return false
if (success != other.success) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ec2instanceconnect.model.SendSshPublicKeyResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the request. Please provide this ID when contacting AWS Support for assistance.
*/
public var requestId: kotlin.String? = null
/**
* Is true if the request succeeds and an error otherwise.
*/
public var success: kotlin.Boolean = false
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ec2instanceconnect.model.SendSshPublicKeyResponse) : this() {
this.requestId = x.requestId
this.success = x.success
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ec2instanceconnect.model.SendSshPublicKeyResponse = SendSshPublicKeyResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy