commonMain.aws.sdk.kotlin.services.comprehend.model.StopSentimentDetectionJobResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of comprehend-jvm Show documentation
Show all versions of comprehend-jvm Show documentation
The AWS SDK for Kotlin client for Comprehend
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.comprehend.model
import aws.smithy.kotlin.runtime.SdkDsl
public class StopSentimentDetectionJobResponse private constructor(builder: Builder) {
/**
* The identifier of the sentiment detection job to stop.
*/
public val jobId: kotlin.String? = builder.jobId
/**
* Either `STOP_REQUESTED` if the job is currently running, or `STOPPED` if the job was previously stopped with the `StopSentimentDetectionJob` operation.
*/
public val jobStatus: aws.sdk.kotlin.services.comprehend.model.JobStatus? = builder.jobStatus
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.comprehend.model.StopSentimentDetectionJobResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StopSentimentDetectionJobResponse(")
append("jobId=$jobId,")
append("jobStatus=$jobStatus")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = jobId?.hashCode() ?: 0
result = 31 * result + (jobStatus?.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 StopSentimentDetectionJobResponse
if (jobId != other.jobId) return false
if (jobStatus != other.jobStatus) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.comprehend.model.StopSentimentDetectionJobResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The identifier of the sentiment detection job to stop.
*/
public var jobId: kotlin.String? = null
/**
* Either `STOP_REQUESTED` if the job is currently running, or `STOPPED` if the job was previously stopped with the `StopSentimentDetectionJob` operation.
*/
public var jobStatus: aws.sdk.kotlin.services.comprehend.model.JobStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.comprehend.model.StopSentimentDetectionJobResponse) : this() {
this.jobId = x.jobId
this.jobStatus = x.jobStatus
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.comprehend.model.StopSentimentDetectionJobResponse = StopSentimentDetectionJobResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}