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

commonMain.aws.sdk.kotlin.services.apptest.model.CreateCloudFormationStepOutput.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

/**
 * Creates a CloudFormation step output.
 */
public class CreateCloudFormationStepOutput private constructor(builder: Builder) {
    /**
     * The exports of the CloudFormation step output.
     */
    public val exports: Map? = builder.exports
    /**
     * The stack ID of the CloudFormation step output.
     */
    public val stackId: kotlin.String = requireNotNull(builder.stackId) { "A non-null value must be provided for stackId" }

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

    override fun toString(): kotlin.String = buildString {
        append("CreateCloudFormationStepOutput(")
        append("exports=$exports,")
        append("stackId=$stackId")
        append(")")
    }

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

        if (exports != other.exports) return false
        if (stackId != other.stackId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The exports of the CloudFormation step output.
         */
        public var exports: Map? = null
        /**
         * The stack ID of the CloudFormation step output.
         */
        public var stackId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.apptest.model.CreateCloudFormationStepOutput) : this() {
            this.exports = x.exports
            this.stackId = x.stackId
        }

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

        internal fun correctErrors(): Builder {
            if (stackId == null) stackId = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy