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

commonMain.aws.sdk.kotlin.services.neptunedata.model.MlResourceDefinition.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.neptunedata.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Defines a Neptune ML resource.
 */
public class MlResourceDefinition private constructor(builder: Builder) {
    /**
     * The resource ARN.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * The CloudWatch log URL for the resource.
     */
    public val cloudwatchLogUrl: kotlin.String? = builder.cloudwatchLogUrl
    /**
     * The failure reason, in case of a failure.
     */
    public val failureReason: kotlin.String? = builder.failureReason
    /**
     * The resource name.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The output location.
     */
    public val outputLocation: kotlin.String? = builder.outputLocation
    /**
     * The resource status.
     */
    public val status: kotlin.String? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("MlResourceDefinition(")
        append("arn=$arn,")
        append("cloudwatchLogUrl=$cloudwatchLogUrl,")
        append("failureReason=$failureReason,")
        append("name=$name,")
        append("outputLocation=$outputLocation,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (cloudwatchLogUrl?.hashCode() ?: 0)
        result = 31 * result + (failureReason?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (outputLocation?.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 MlResourceDefinition

        if (arn != other.arn) return false
        if (cloudwatchLogUrl != other.cloudwatchLogUrl) return false
        if (failureReason != other.failureReason) return false
        if (name != other.name) return false
        if (outputLocation != other.outputLocation) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The resource ARN.
         */
        public var arn: kotlin.String? = null
        /**
         * The CloudWatch log URL for the resource.
         */
        public var cloudwatchLogUrl: kotlin.String? = null
        /**
         * The failure reason, in case of a failure.
         */
        public var failureReason: kotlin.String? = null
        /**
         * The resource name.
         */
        public var name: kotlin.String? = null
        /**
         * The output location.
         */
        public var outputLocation: kotlin.String? = null
        /**
         * The resource status.
         */
        public var status: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.neptunedata.model.MlResourceDefinition) : this() {
            this.arn = x.arn
            this.cloudwatchLogUrl = x.cloudwatchLogUrl
            this.failureReason = x.failureReason
            this.name = x.name
            this.outputLocation = x.outputLocation
            this.status = x.status
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy