commonMain.aws.sdk.kotlin.services.translate.model.UpdateParallelDataResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of translate-jvm Show documentation
Show all versions of translate-jvm Show documentation
The AWS SDK for Kotlin client for Translate
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.translate.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class UpdateParallelDataResponse private constructor(builder: Builder) {
/**
* The time that the most recent update was attempted.
*/
public val latestUpdateAttemptAt: aws.smithy.kotlin.runtime.time.Instant? = builder.latestUpdateAttemptAt
/**
* The status of the parallel data update attempt. When the updated parallel data resource is ready for you to use, the status is `ACTIVE`.
*/
public val latestUpdateAttemptStatus: aws.sdk.kotlin.services.translate.model.ParallelDataStatus? = builder.latestUpdateAttemptStatus
/**
* The name of the parallel data resource being updated.
*/
public val name: kotlin.String? = builder.name
/**
* The status of the parallel data resource that you are attempting to update. Your update request is accepted only if this status is either `ACTIVE` or `FAILED`.
*/
public val status: aws.sdk.kotlin.services.translate.model.ParallelDataStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.translate.model.UpdateParallelDataResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateParallelDataResponse(")
append("latestUpdateAttemptAt=$latestUpdateAttemptAt,")
append("latestUpdateAttemptStatus=$latestUpdateAttemptStatus,")
append("name=$name,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = latestUpdateAttemptAt?.hashCode() ?: 0
result = 31 * result + (latestUpdateAttemptStatus?.hashCode() ?: 0)
result = 31 * result + (name?.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 UpdateParallelDataResponse
if (latestUpdateAttemptAt != other.latestUpdateAttemptAt) return false
if (latestUpdateAttemptStatus != other.latestUpdateAttemptStatus) return false
if (name != other.name) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.translate.model.UpdateParallelDataResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The time that the most recent update was attempted.
*/
public var latestUpdateAttemptAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The status of the parallel data update attempt. When the updated parallel data resource is ready for you to use, the status is `ACTIVE`.
*/
public var latestUpdateAttemptStatus: aws.sdk.kotlin.services.translate.model.ParallelDataStatus? = null
/**
* The name of the parallel data resource being updated.
*/
public var name: kotlin.String? = null
/**
* The status of the parallel data resource that you are attempting to update. Your update request is accepted only if this status is either `ACTIVE` or `FAILED`.
*/
public var status: aws.sdk.kotlin.services.translate.model.ParallelDataStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.translate.model.UpdateParallelDataResponse) : this() {
this.latestUpdateAttemptAt = x.latestUpdateAttemptAt
this.latestUpdateAttemptStatus = x.latestUpdateAttemptStatus
this.name = x.name
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.translate.model.UpdateParallelDataResponse = UpdateParallelDataResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}