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

commonMain.aws.sdk.kotlin.services.ssm.model.SendCommandResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.ssm.model



public class SendCommandResponse private constructor(builder: Builder) {
    /**
     * The request as it was received by Systems Manager. Also provides the command ID which can be used future references to this request.
     */
    public val command: aws.sdk.kotlin.services.ssm.model.Command? = builder.command

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.SendCommandResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("SendCommandResponse(")
        append("command=$command")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = command?.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 SendCommandResponse

        if (command != other.command) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.SendCommandResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The request as it was received by Systems Manager. Also provides the command ID which can be used future references to this request.
         */
        public var command: aws.sdk.kotlin.services.ssm.model.Command? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.SendCommandResponse) : this() {
            this.command = x.command
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.ssm.model.Command] inside the given [block]
         */
        public fun command(block: aws.sdk.kotlin.services.ssm.model.Command.Builder.() -> kotlin.Unit) {
            this.command = aws.sdk.kotlin.services.ssm.model.Command.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy