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

commonMain.aws.sdk.kotlin.services.apptest.model.M2NonManagedApplicationStepSummary.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.apptest.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Specifies the AWS Mainframe Modernization non-managed application step summary.
 */
public class M2NonManagedApplicationStepSummary private constructor(builder: Builder) {
    /**
     * The step input of the AWS Mainframe Modernization non-managed application step summary.
     */
    public val stepInput: aws.sdk.kotlin.services.apptest.model.M2NonManagedApplicationStepInput? = builder.stepInput
    /**
     * The step output of the AWS Mainframe Modernization non-managed application step summary.
     */
    public val stepOutput: aws.sdk.kotlin.services.apptest.model.M2NonManagedApplicationStepOutput? = builder.stepOutput

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

    override fun toString(): kotlin.String = buildString {
        append("M2NonManagedApplicationStepSummary(")
        append("stepInput=$stepInput,")
        append("stepOutput=$stepOutput")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = stepInput?.hashCode() ?: 0
        result = 31 * result + (stepOutput?.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 M2NonManagedApplicationStepSummary

        if (stepInput != other.stepInput) return false
        if (stepOutput != other.stepOutput) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The step input of the AWS Mainframe Modernization non-managed application step summary.
         */
        public var stepInput: aws.sdk.kotlin.services.apptest.model.M2NonManagedApplicationStepInput? = null
        /**
         * The step output of the AWS Mainframe Modernization non-managed application step summary.
         */
        public var stepOutput: aws.sdk.kotlin.services.apptest.model.M2NonManagedApplicationStepOutput? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.apptest.model.M2NonManagedApplicationStepSummary) : this() {
            this.stepInput = x.stepInput
            this.stepOutput = x.stepOutput
        }

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy