All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.ec2instanceconnect.model.SendSerialConsoleSshPublicKeyResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.ec2instanceconnect.model

import aws.smithy.kotlin.runtime.SdkDsl

public class SendSerialConsoleSshPublicKeyResponse 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.SendSerialConsoleSshPublicKeyResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("SendSerialConsoleSshPublicKeyResponse(")
        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 SendSerialConsoleSshPublicKeyResponse

        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.SendSerialConsoleSshPublicKeyResponse = 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.SendSerialConsoleSshPublicKeyResponse) : this() {
            this.requestId = x.requestId
            this.success = x.success
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.ec2instanceconnect.model.SendSerialConsoleSshPublicKeyResponse = SendSerialConsoleSshPublicKeyResponse(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy