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

commonMain.aws.sdk.kotlin.services.bedrockdataautomationruntime.model.InvokeDataAutomationAsyncResponse.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

/**
 * Invoke Data Automation Async Response
 */
public class InvokeDataAutomationAsyncResponse private constructor(builder: Builder) {
    /**
     * ARN of the automation job
     */
    public val invocationArn: kotlin.String = requireNotNull(builder.invocationArn) { "A non-null value must be provided for invocationArn" }

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

    override fun toString(): kotlin.String = buildString {
        append("InvokeDataAutomationAsyncResponse(")
        append("invocationArn=$invocationArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = invocationArn.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 InvokeDataAutomationAsyncResponse

        if (invocationArn != other.invocationArn) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * ARN of the automation job
         */
        public var invocationArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.bedrockdataautomationruntime.model.InvokeDataAutomationAsyncResponse) : this() {
            this.invocationArn = x.invocationArn
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy