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

commonMain.aws.sdk.kotlin.services.sagemakerruntime.model.InvokeEndpointAsyncResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.sagemakerruntime.model



public class InvokeEndpointAsyncResponse private constructor(builder: Builder) {
    /**
     * The Amazon S3 URI where the inference failure response payload is stored.
     */
    public val failureLocation: kotlin.String? = builder.failureLocation
    /**
     * Identifier for an inference request. This will be the same as the `InferenceId` specified in the input. Amazon SageMaker will generate an identifier for you if you do not specify one.
     */
    public val inferenceId: kotlin.String? = builder.inferenceId
    /**
     * The Amazon S3 URI where the inference response payload is stored.
     */
    public val outputLocation: kotlin.String? = builder.outputLocation

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

    override fun toString(): kotlin.String = buildString {
        append("InvokeEndpointAsyncResponse(")
        append("failureLocation=$failureLocation,")
        append("inferenceId=$inferenceId,")
        append("outputLocation=$outputLocation")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = failureLocation?.hashCode() ?: 0
        result = 31 * result + (inferenceId?.hashCode() ?: 0)
        result = 31 * result + (outputLocation?.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 InvokeEndpointAsyncResponse

        if (failureLocation != other.failureLocation) return false
        if (inferenceId != other.inferenceId) return false
        if (outputLocation != other.outputLocation) return false

        return true
    }

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

    public class Builder {
        /**
         * The Amazon S3 URI where the inference failure response payload is stored.
         */
        public var failureLocation: kotlin.String? = null
        /**
         * Identifier for an inference request. This will be the same as the `InferenceId` specified in the input. Amazon SageMaker will generate an identifier for you if you do not specify one.
         */
        public var inferenceId: kotlin.String? = null
        /**
         * The Amazon S3 URI where the inference response payload is stored.
         */
        public var outputLocation: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sagemakerruntime.model.InvokeEndpointAsyncResponse) : this() {
            this.failureLocation = x.failureLocation
            this.inferenceId = x.inferenceId
            this.outputLocation = x.outputLocation
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy