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

commonMain.aws.sdk.kotlin.services.bedrockdataautomationruntime.model.GetDataAutomationStatusResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.bedrockdataautomationruntime.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Response of GetDataAutomationStatus API.
 */
public class GetDataAutomationStatusResponse private constructor(builder: Builder) {
    /**
     * Error Message.
     */
    public val errorMessage: kotlin.String? = builder.errorMessage
    /**
     * Error Type.
     */
    public val errorType: kotlin.String? = builder.errorType
    /**
     * Output configuration.
     */
    public val outputConfiguration: aws.sdk.kotlin.services.bedrockdataautomationruntime.model.OutputConfiguration? = builder.outputConfiguration
    /**
     * Job Status.
     */
    public val status: aws.sdk.kotlin.services.bedrockdataautomationruntime.model.AutomationJobStatus? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("GetDataAutomationStatusResponse(")
        append("errorMessage=$errorMessage,")
        append("errorType=$errorType,")
        append("outputConfiguration=$outputConfiguration,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = errorMessage?.hashCode() ?: 0
        result = 31 * result + (errorType?.hashCode() ?: 0)
        result = 31 * result + (outputConfiguration?.hashCode() ?: 0)
        result = 31 * result + (status?.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 GetDataAutomationStatusResponse

        if (errorMessage != other.errorMessage) return false
        if (errorType != other.errorType) return false
        if (outputConfiguration != other.outputConfiguration) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Error Message.
         */
        public var errorMessage: kotlin.String? = null
        /**
         * Error Type.
         */
        public var errorType: kotlin.String? = null
        /**
         * Output configuration.
         */
        public var outputConfiguration: aws.sdk.kotlin.services.bedrockdataautomationruntime.model.OutputConfiguration? = null
        /**
         * Job Status.
         */
        public var status: aws.sdk.kotlin.services.bedrockdataautomationruntime.model.AutomationJobStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.bedrockdataautomationruntime.model.GetDataAutomationStatusResponse) : this() {
            this.errorMessage = x.errorMessage
            this.errorType = x.errorType
            this.outputConfiguration = x.outputConfiguration
            this.status = x.status
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy