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

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

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

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



/**
 * A detailed status of the parent step.
 */
public class ParentStepDetails private constructor(builder: Builder) {
    /**
     * The name of the automation action.
     */
    public val action: kotlin.String? = builder.action
    /**
     * The current repetition of the loop represented by an integer.
     */
    public val iteration: kotlin.Int? = builder.iteration
    /**
     * The current value of the specified iterator in the loop.
     */
    public val iteratorValue: kotlin.String? = builder.iteratorValue
    /**
     * The unique ID of a step execution.
     */
    public val stepExecutionId: kotlin.String? = builder.stepExecutionId
    /**
     * The name of the step.
     */
    public val stepName: kotlin.String? = builder.stepName

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

    override fun toString(): kotlin.String = buildString {
        append("ParentStepDetails(")
        append("action=$action,")
        append("iteration=$iteration,")
        append("iteratorValue=$iteratorValue,")
        append("stepExecutionId=$stepExecutionId,")
        append("stepName=$stepName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = action?.hashCode() ?: 0
        result = 31 * result + (iteration ?: 0)
        result = 31 * result + (iteratorValue?.hashCode() ?: 0)
        result = 31 * result + (stepExecutionId?.hashCode() ?: 0)
        result = 31 * result + (stepName?.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 ParentStepDetails

        if (action != other.action) return false
        if (iteration != other.iteration) return false
        if (iteratorValue != other.iteratorValue) return false
        if (stepExecutionId != other.stepExecutionId) return false
        if (stepName != other.stepName) return false

        return true
    }

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

    public class Builder {
        /**
         * The name of the automation action.
         */
        public var action: kotlin.String? = null
        /**
         * The current repetition of the loop represented by an integer.
         */
        public var iteration: kotlin.Int? = null
        /**
         * The current value of the specified iterator in the loop.
         */
        public var iteratorValue: kotlin.String? = null
        /**
         * The unique ID of a step execution.
         */
        public var stepExecutionId: kotlin.String? = null
        /**
         * The name of the step.
         */
        public var stepName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.ParentStepDetails) : this() {
            this.action = x.action
            this.iteration = x.iteration
            this.iteratorValue = x.iteratorValue
            this.stepExecutionId = x.stepExecutionId
            this.stepName = x.stepName
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy