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

commonMain.aws.sdk.kotlin.services.lightsail.model.SetupExecutionDetails.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lightsail.model

import aws.smithy.kotlin.runtime.time.Instant

/**
 * Returns details about the commands that were run.
 */
public class SetupExecutionDetails private constructor(builder: Builder) {
    /**
     * The command that was executed.
     */
    public val command: kotlin.String? = builder.command
    /**
     * The timestamp for when the request was run.
     */
    public val dateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.dateTime
    /**
     * The name of the target resource.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The text written by the command to stderr.
     */
    public val standardError: kotlin.String? = builder.standardError
    /**
     * The text written by the command to stdout.
     */
    public val standardOutput: kotlin.String? = builder.standardOutput
    /**
     * The status of the `SetupInstanceHttps` request.
     */
    public val status: aws.sdk.kotlin.services.lightsail.model.SetupStatus? = builder.status
    /**
     * The current version of the script..
     */
    public val version: kotlin.String? = builder.version

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

    override fun toString(): kotlin.String = buildString {
        append("SetupExecutionDetails(")
        append("command=$command,")
        append("dateTime=$dateTime,")
        append("name=$name,")
        append("standardError=$standardError,")
        append("standardOutput=$standardOutput,")
        append("status=$status,")
        append("version=$version")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = command?.hashCode() ?: 0
        result = 31 * result + (dateTime?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (standardError?.hashCode() ?: 0)
        result = 31 * result + (standardOutput?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (version?.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 SetupExecutionDetails

        if (command != other.command) return false
        if (dateTime != other.dateTime) return false
        if (name != other.name) return false
        if (standardError != other.standardError) return false
        if (standardOutput != other.standardOutput) return false
        if (status != other.status) return false
        if (version != other.version) return false

        return true
    }

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

    public class Builder {
        /**
         * The command that was executed.
         */
        public var command: kotlin.String? = null
        /**
         * The timestamp for when the request was run.
         */
        public var dateTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the target resource.
         */
        public var name: kotlin.String? = null
        /**
         * The text written by the command to stderr.
         */
        public var standardError: kotlin.String? = null
        /**
         * The text written by the command to stdout.
         */
        public var standardOutput: kotlin.String? = null
        /**
         * The status of the `SetupInstanceHttps` request.
         */
        public var status: aws.sdk.kotlin.services.lightsail.model.SetupStatus? = null
        /**
         * The current version of the script..
         */
        public var version: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lightsail.model.SetupExecutionDetails) : this() {
            this.command = x.command
            this.dateTime = x.dateTime
            this.name = x.name
            this.standardError = x.standardError
            this.standardOutput = x.standardOutput
            this.status = x.status
            this.version = x.version
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy