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

commonMain.aws.sdk.kotlin.services.deadline.model.UpdatedSessionActionInfo.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.deadline.model

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

/**
 * The updated session action information as it relates to completion and progress of the session.
 */
public class UpdatedSessionActionInfo private constructor(builder: Builder) {
    /**
     * The status of the session upon completion.
     */
    public val completedStatus: aws.sdk.kotlin.services.deadline.model.CompletedStatus? = builder.completedStatus
    /**
     * The date and time the resource ended running.
     */
    public val endedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.endedAt
    /**
     * The process exit code.
     */
    public val processExitCode: kotlin.Int? = builder.processExitCode
    /**
     * A message to indicate the progress of the updated session action.
     */
    public val progressMessage: kotlin.String? = builder.progressMessage
    /**
     * The percentage completed.
     */
    public val progressPercent: kotlin.Float? = builder.progressPercent
    /**
     * The date and time the resource started running.
     */
    public val startedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.startedAt
    /**
     * The updated time.
     */
    public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt

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

    override fun toString(): kotlin.String = buildString {
        append("UpdatedSessionActionInfo(")
        append("completedStatus=$completedStatus,")
        append("endedAt=$endedAt,")
        append("processExitCode=$processExitCode,")
        append("progressMessage=*** Sensitive Data Redacted ***,")
        append("progressPercent=$progressPercent,")
        append("startedAt=$startedAt,")
        append("updatedAt=$updatedAt")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = completedStatus?.hashCode() ?: 0
        result = 31 * result + (endedAt?.hashCode() ?: 0)
        result = 31 * result + (processExitCode ?: 0)
        result = 31 * result + (progressMessage?.hashCode() ?: 0)
        result = 31 * result + (progressPercent?.hashCode() ?: 0)
        result = 31 * result + (startedAt?.hashCode() ?: 0)
        result = 31 * result + (updatedAt?.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 UpdatedSessionActionInfo

        if (completedStatus != other.completedStatus) return false
        if (endedAt != other.endedAt) return false
        if (processExitCode != other.processExitCode) return false
        if (progressMessage != other.progressMessage) return false
        if (!(progressPercent?.equals(other.progressPercent) ?: (other.progressPercent == null))) return false
        if (startedAt != other.startedAt) return false
        if (updatedAt != other.updatedAt) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The status of the session upon completion.
         */
        public var completedStatus: aws.sdk.kotlin.services.deadline.model.CompletedStatus? = null
        /**
         * The date and time the resource ended running.
         */
        public var endedAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The process exit code.
         */
        public var processExitCode: kotlin.Int? = null
        /**
         * A message to indicate the progress of the updated session action.
         */
        public var progressMessage: kotlin.String? = null
        /**
         * The percentage completed.
         */
        public var progressPercent: kotlin.Float? = null
        /**
         * The date and time the resource started running.
         */
        public var startedAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The updated time.
         */
        public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.deadline.model.UpdatedSessionActionInfo) : this() {
            this.completedStatus = x.completedStatus
            this.endedAt = x.endedAt
            this.processExitCode = x.processExitCode
            this.progressMessage = x.progressMessage
            this.progressPercent = x.progressPercent
            this.startedAt = x.startedAt
            this.updatedAt = x.updatedAt
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy