commonMain.aws.sdk.kotlin.services.omics.model.GetRunTaskResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of omics-jvm Show documentation
Show all versions of omics-jvm Show documentation
The AWS SDK for Kotlin client for Omics
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.omics.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class GetRunTaskResponse private constructor(builder: Builder) {
/**
* The task's CPU usage.
*/
public val cpus: kotlin.Int? = builder.cpus
/**
* When the task was created.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* The reason a task has failed.
*/
public val failureReason: kotlin.String? = builder.failureReason
/**
* The number of Graphics Processing Units (GPU) specified in the task.
*/
public val gpus: kotlin.Int? = builder.gpus
/**
* The instance type for a task.
*/
public val instanceType: kotlin.String? = builder.instanceType
/**
* The task's log stream.
*/
public val logStream: kotlin.String? = builder.logStream
/**
* The task's memory use in gigabytes.
*/
public val memory: kotlin.Int? = builder.memory
/**
* The task's name.
*/
public val name: kotlin.String? = builder.name
/**
* The task's start time.
*/
public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
/**
* The task's status.
*/
public val status: aws.sdk.kotlin.services.omics.model.TaskStatus? = builder.status
/**
* The task's status message.
*/
public val statusMessage: kotlin.String? = builder.statusMessage
/**
* The task's stop time.
*/
public val stopTime: aws.smithy.kotlin.runtime.time.Instant? = builder.stopTime
/**
* The task's ID.
*/
public val taskId: kotlin.String? = builder.taskId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.GetRunTaskResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetRunTaskResponse(")
append("cpus=$cpus,")
append("creationTime=$creationTime,")
append("failureReason=$failureReason,")
append("gpus=$gpus,")
append("instanceType=$instanceType,")
append("logStream=$logStream,")
append("memory=$memory,")
append("name=$name,")
append("startTime=$startTime,")
append("status=$status,")
append("statusMessage=$statusMessage,")
append("stopTime=$stopTime,")
append("taskId=$taskId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cpus ?: 0
result = 31 * result + (creationTime?.hashCode() ?: 0)
result = 31 * result + (failureReason?.hashCode() ?: 0)
result = 31 * result + (gpus ?: 0)
result = 31 * result + (instanceType?.hashCode() ?: 0)
result = 31 * result + (logStream?.hashCode() ?: 0)
result = 31 * result + (memory ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (startTime?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (statusMessage?.hashCode() ?: 0)
result = 31 * result + (stopTime?.hashCode() ?: 0)
result = 31 * result + (taskId?.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 GetRunTaskResponse
if (cpus != other.cpus) return false
if (creationTime != other.creationTime) return false
if (failureReason != other.failureReason) return false
if (gpus != other.gpus) return false
if (instanceType != other.instanceType) return false
if (logStream != other.logStream) return false
if (memory != other.memory) return false
if (name != other.name) return false
if (startTime != other.startTime) return false
if (status != other.status) return false
if (statusMessage != other.statusMessage) return false
if (stopTime != other.stopTime) return false
if (taskId != other.taskId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.GetRunTaskResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The task's CPU usage.
*/
public var cpus: kotlin.Int? = null
/**
* When the task was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The reason a task has failed.
*/
public var failureReason: kotlin.String? = null
/**
* The number of Graphics Processing Units (GPU) specified in the task.
*/
public var gpus: kotlin.Int? = null
/**
* The instance type for a task.
*/
public var instanceType: kotlin.String? = null
/**
* The task's log stream.
*/
public var logStream: kotlin.String? = null
/**
* The task's memory use in gigabytes.
*/
public var memory: kotlin.Int? = null
/**
* The task's name.
*/
public var name: kotlin.String? = null
/**
* The task's start time.
*/
public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The task's status.
*/
public var status: aws.sdk.kotlin.services.omics.model.TaskStatus? = null
/**
* The task's status message.
*/
public var statusMessage: kotlin.String? = null
/**
* The task's stop time.
*/
public var stopTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The task's ID.
*/
public var taskId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.omics.model.GetRunTaskResponse) : this() {
this.cpus = x.cpus
this.creationTime = x.creationTime
this.failureReason = x.failureReason
this.gpus = x.gpus
this.instanceType = x.instanceType
this.logStream = x.logStream
this.memory = x.memory
this.name = x.name
this.startTime = x.startTime
this.status = x.status
this.statusMessage = x.statusMessage
this.stopTime = x.stopTime
this.taskId = x.taskId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.omics.model.GetRunTaskResponse = GetRunTaskResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}