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

commonMain.aws.sdk.kotlin.services.comprehend.model.DescribeSentimentDetectionJobResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.comprehend.model



public class DescribeSentimentDetectionJobResponse private constructor(builder: Builder) {
    /**
     * An object that contains the properties associated with a sentiment detection job.
     */
    public val sentimentDetectionJobProperties: aws.sdk.kotlin.services.comprehend.model.SentimentDetectionJobProperties? = builder.sentimentDetectionJobProperties

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

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

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

        if (sentimentDetectionJobProperties != other.sentimentDetectionJobProperties) return false

        return true
    }

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

    public class Builder {
        /**
         * An object that contains the properties associated with a sentiment detection job.
         */
        public var sentimentDetectionJobProperties: aws.sdk.kotlin.services.comprehend.model.SentimentDetectionJobProperties? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.comprehend.model.DescribeSentimentDetectionJobResponse) : this() {
            this.sentimentDetectionJobProperties = x.sentimentDetectionJobProperties
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy