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

commonMain.aws.sdk.kotlin.services.elasticbeanstalk.model.ManagedActionHistoryItem.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.elasticbeanstalk.model

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

/**
 * The record of a completed or failed managed action.
 */
public class ManagedActionHistoryItem private constructor(builder: Builder) {
    /**
     * A description of the managed action.
     */
    public val actionDescription: kotlin.String? = builder.actionDescription
    /**
     * A unique identifier for the managed action.
     */
    public val actionId: kotlin.String? = builder.actionId
    /**
     * The type of the managed action.
     */
    public val actionType: aws.sdk.kotlin.services.elasticbeanstalk.model.ActionType? = builder.actionType
    /**
     * The date and time that the action started executing.
     */
    public val executedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.executedTime
    /**
     * If the action failed, a description of the failure.
     */
    public val failureDescription: kotlin.String? = builder.failureDescription
    /**
     * If the action failed, the type of failure.
     */
    public val failureType: aws.sdk.kotlin.services.elasticbeanstalk.model.FailureType? = builder.failureType
    /**
     * The date and time that the action finished executing.
     */
    public val finishedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.finishedTime
    /**
     * The status of the action.
     */
    public val status: aws.sdk.kotlin.services.elasticbeanstalk.model.ActionHistoryStatus? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("ManagedActionHistoryItem(")
        append("actionDescription=$actionDescription,")
        append("actionId=$actionId,")
        append("actionType=$actionType,")
        append("executedTime=$executedTime,")
        append("failureDescription=$failureDescription,")
        append("failureType=$failureType,")
        append("finishedTime=$finishedTime,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = actionDescription?.hashCode() ?: 0
        result = 31 * result + (actionId?.hashCode() ?: 0)
        result = 31 * result + (actionType?.hashCode() ?: 0)
        result = 31 * result + (executedTime?.hashCode() ?: 0)
        result = 31 * result + (failureDescription?.hashCode() ?: 0)
        result = 31 * result + (failureType?.hashCode() ?: 0)
        result = 31 * result + (finishedTime?.hashCode() ?: 0)
        result = 31 * result + (status?.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 ManagedActionHistoryItem

        if (actionDescription != other.actionDescription) return false
        if (actionId != other.actionId) return false
        if (actionType != other.actionType) return false
        if (executedTime != other.executedTime) return false
        if (failureDescription != other.failureDescription) return false
        if (failureType != other.failureType) return false
        if (finishedTime != other.finishedTime) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A description of the managed action.
         */
        public var actionDescription: kotlin.String? = null
        /**
         * A unique identifier for the managed action.
         */
        public var actionId: kotlin.String? = null
        /**
         * The type of the managed action.
         */
        public var actionType: aws.sdk.kotlin.services.elasticbeanstalk.model.ActionType? = null
        /**
         * The date and time that the action started executing.
         */
        public var executedTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * If the action failed, a description of the failure.
         */
        public var failureDescription: kotlin.String? = null
        /**
         * If the action failed, the type of failure.
         */
        public var failureType: aws.sdk.kotlin.services.elasticbeanstalk.model.FailureType? = null
        /**
         * The date and time that the action finished executing.
         */
        public var finishedTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The status of the action.
         */
        public var status: aws.sdk.kotlin.services.elasticbeanstalk.model.ActionHistoryStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.elasticbeanstalk.model.ManagedActionHistoryItem) : this() {
            this.actionDescription = x.actionDescription
            this.actionId = x.actionId
            this.actionType = x.actionType
            this.executedTime = x.executedTime
            this.failureDescription = x.failureDescription
            this.failureType = x.failureType
            this.finishedTime = x.finishedTime
            this.status = x.status
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy