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

commonMain.aws.sdk.kotlin.services.apptest.model.CompareDataSetsStepInput.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 compare data sets step input.
 */
public class CompareDataSetsStepInput private constructor(builder: Builder) {
    /**
     * The source data sets of the compare data sets step input location.
     */
    public val sourceDataSets: List = requireNotNull(builder.sourceDataSets) { "A non-null value must be provided for sourceDataSets" }
    /**
     * The source location of the compare data sets step input location.
     */
    public val sourceLocation: kotlin.String = requireNotNull(builder.sourceLocation) { "A non-null value must be provided for sourceLocation" }
    /**
     * The target data sets of the compare data sets step input location.
     */
    public val targetDataSets: List = requireNotNull(builder.targetDataSets) { "A non-null value must be provided for targetDataSets" }
    /**
     * The target location of the compare data sets step input location.
     */
    public val targetLocation: kotlin.String = requireNotNull(builder.targetLocation) { "A non-null value must be provided for targetLocation" }

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

    override fun toString(): kotlin.String = buildString {
        append("CompareDataSetsStepInput(")
        append("sourceDataSets=$sourceDataSets,")
        append("sourceLocation=$sourceLocation,")
        append("targetDataSets=$targetDataSets,")
        append("targetLocation=$targetLocation")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = sourceDataSets.hashCode()
        result = 31 * result + (sourceLocation.hashCode())
        result = 31 * result + (targetDataSets.hashCode())
        result = 31 * result + (targetLocation.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 CompareDataSetsStepInput

        if (sourceDataSets != other.sourceDataSets) return false
        if (sourceLocation != other.sourceLocation) return false
        if (targetDataSets != other.targetDataSets) return false
        if (targetLocation != other.targetLocation) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The source data sets of the compare data sets step input location.
         */
        public var sourceDataSets: List? = null
        /**
         * The source location of the compare data sets step input location.
         */
        public var sourceLocation: kotlin.String? = null
        /**
         * The target data sets of the compare data sets step input location.
         */
        public var targetDataSets: List? = null
        /**
         * The target location of the compare data sets step input location.
         */
        public var targetLocation: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.apptest.model.CompareDataSetsStepInput) : this() {
            this.sourceDataSets = x.sourceDataSets
            this.sourceLocation = x.sourceLocation
            this.targetDataSets = x.targetDataSets
            this.targetLocation = x.targetLocation
        }

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

        internal fun correctErrors(): Builder {
            if (sourceDataSets == null) sourceDataSets = emptyList()
            if (sourceLocation == null) sourceLocation = ""
            if (targetDataSets == null) targetDataSets = emptyList()
            if (targetLocation == null) targetLocation = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy