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

commonMain.aws.sdk.kotlin.services.datapipeline.model.ValidatePipelineDefinitionResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.datapipeline.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Contains the output of ValidatePipelineDefinition.
 */
public class ValidatePipelineDefinitionResponse private constructor(builder: Builder) {
    /**
     * Indicates whether there were validation errors.
     */
    public val errored: kotlin.Boolean = builder.errored
    /**
     * Any validation errors that were found.
     */
    public val validationErrors: List? = builder.validationErrors
    /**
     * Any validation warnings that were found.
     */
    public val validationWarnings: List? = builder.validationWarnings

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

    override fun toString(): kotlin.String = buildString {
        append("ValidatePipelineDefinitionResponse(")
        append("errored=$errored,")
        append("validationErrors=$validationErrors,")
        append("validationWarnings=$validationWarnings")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = errored.hashCode()
        result = 31 * result + (validationErrors?.hashCode() ?: 0)
        result = 31 * result + (validationWarnings?.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 ValidatePipelineDefinitionResponse

        if (errored != other.errored) return false
        if (validationErrors != other.validationErrors) return false
        if (validationWarnings != other.validationWarnings) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Indicates whether there were validation errors.
         */
        public var errored: kotlin.Boolean = false
        /**
         * Any validation errors that were found.
         */
        public var validationErrors: List? = null
        /**
         * Any validation warnings that were found.
         */
        public var validationWarnings: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datapipeline.model.ValidatePipelineDefinitionResponse) : this() {
            this.errored = x.errored
            this.validationErrors = x.validationErrors
            this.validationWarnings = x.validationWarnings
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy