commonMain.aws.sdk.kotlin.services.omics.model.GetRunResponse.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.content.Document
import aws.smithy.kotlin.runtime.time.Instant
public class GetRunResponse private constructor(builder: Builder) {
/**
* The computational accelerator used to run the workflow.
*/
public val accelerators: aws.sdk.kotlin.services.omics.model.Accelerators? = builder.accelerators
/**
* The run's ARN.
*/
public val arn: kotlin.String? = builder.arn
/**
* When the run was created.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* The run's definition.
*/
public val definition: kotlin.String? = builder.definition
/**
* The run's digest.
*/
public val digest: kotlin.String? = builder.digest
/**
* The reason a run has failed.
*/
public val failureReason: kotlin.String? = builder.failureReason
/**
* The run's ID.
*/
public val id: kotlin.String? = builder.id
/**
* The run's log level.
*/
public val logLevel: aws.sdk.kotlin.services.omics.model.RunLogLevel? = builder.logLevel
/**
* The location of the run log.
*/
public val logLocation: aws.sdk.kotlin.services.omics.model.RunLogLocation? = builder.logLocation
/**
* The run's name.
*/
public val name: kotlin.String? = builder.name
/**
* The run's output URI.
*/
public val outputUri: kotlin.String? = builder.outputUri
/**
* The run's parameters.
*/
public val parameters: aws.smithy.kotlin.runtime.content.Document? = builder.parameters
/**
* The run's priority.
*/
public val priority: kotlin.Int? = builder.priority
/**
* The run's resource digests.
*/
public val resourceDigests: Map? = builder.resourceDigests
/**
* The run's retention mode.
*/
public val retentionMode: aws.sdk.kotlin.services.omics.model.RunRetentionMode? = builder.retentionMode
/**
* The run's service role ARN.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The run's group ID.
*/
public val runGroupId: kotlin.String? = builder.runGroupId
/**
* The run's ID.
*/
public val runId: kotlin.String? = builder.runId
/**
* The destination for workflow outputs.
*/
public val runOutputUri: kotlin.String? = builder.runOutputUri
/**
* When the run started.
*/
public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
/**
* Who started the run.
*/
public val startedBy: kotlin.String? = builder.startedBy
/**
* The run's status.
*/
public val status: aws.sdk.kotlin.services.omics.model.RunStatus? = builder.status
/**
* The run's status message.
*/
public val statusMessage: kotlin.String? = builder.statusMessage
/**
* The run's stop time.
*/
public val stopTime: aws.smithy.kotlin.runtime.time.Instant? = builder.stopTime
/**
* The run's storage capacity in gibibytes. For dynamic storage, after the run has completed, this value is the maximum amount of storage used during the run.
*/
public val storageCapacity: kotlin.Int? = builder.storageCapacity
/**
* The run's storage type.
*/
public val storageType: aws.sdk.kotlin.services.omics.model.StorageType? = builder.storageType
/**
* The run's tags.
*/
public val tags: Map? = builder.tags
/**
* The universally unique identifier for a run.
*/
public val uuid: kotlin.String? = builder.uuid
/**
* The run's workflow ID.
*/
public val workflowId: kotlin.String? = builder.workflowId
/**
* The ID of the workflow owner.
*/
public val workflowOwnerId: kotlin.String? = builder.workflowOwnerId
/**
* The run's workflow type.
*/
public val workflowType: aws.sdk.kotlin.services.omics.model.WorkflowType? = builder.workflowType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.GetRunResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetRunResponse(")
append("accelerators=$accelerators,")
append("arn=$arn,")
append("creationTime=$creationTime,")
append("definition=$definition,")
append("digest=$digest,")
append("failureReason=$failureReason,")
append("id=$id,")
append("logLevel=$logLevel,")
append("logLocation=$logLocation,")
append("name=$name,")
append("outputUri=$outputUri,")
append("parameters=$parameters,")
append("priority=$priority,")
append("resourceDigests=$resourceDigests,")
append("retentionMode=$retentionMode,")
append("roleArn=$roleArn,")
append("runGroupId=$runGroupId,")
append("runId=$runId,")
append("runOutputUri=$runOutputUri,")
append("startTime=$startTime,")
append("startedBy=$startedBy,")
append("status=$status,")
append("statusMessage=$statusMessage,")
append("stopTime=$stopTime,")
append("storageCapacity=$storageCapacity,")
append("storageType=$storageType,")
append("tags=$tags,")
append("uuid=$uuid,")
append("workflowId=$workflowId,")
append("workflowOwnerId=$workflowOwnerId,")
append("workflowType=$workflowType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accelerators?.hashCode() ?: 0
result = 31 * result + (arn?.hashCode() ?: 0)
result = 31 * result + (creationTime?.hashCode() ?: 0)
result = 31 * result + (definition?.hashCode() ?: 0)
result = 31 * result + (digest?.hashCode() ?: 0)
result = 31 * result + (failureReason?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (logLevel?.hashCode() ?: 0)
result = 31 * result + (logLocation?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (outputUri?.hashCode() ?: 0)
result = 31 * result + (parameters?.hashCode() ?: 0)
result = 31 * result + (priority ?: 0)
result = 31 * result + (resourceDigests?.hashCode() ?: 0)
result = 31 * result + (retentionMode?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (runGroupId?.hashCode() ?: 0)
result = 31 * result + (runId?.hashCode() ?: 0)
result = 31 * result + (runOutputUri?.hashCode() ?: 0)
result = 31 * result + (startTime?.hashCode() ?: 0)
result = 31 * result + (startedBy?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (statusMessage?.hashCode() ?: 0)
result = 31 * result + (stopTime?.hashCode() ?: 0)
result = 31 * result + (storageCapacity ?: 0)
result = 31 * result + (storageType?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (uuid?.hashCode() ?: 0)
result = 31 * result + (workflowId?.hashCode() ?: 0)
result = 31 * result + (workflowOwnerId?.hashCode() ?: 0)
result = 31 * result + (workflowType?.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 GetRunResponse
if (accelerators != other.accelerators) return false
if (arn != other.arn) return false
if (creationTime != other.creationTime) return false
if (definition != other.definition) return false
if (digest != other.digest) return false
if (failureReason != other.failureReason) return false
if (id != other.id) return false
if (logLevel != other.logLevel) return false
if (logLocation != other.logLocation) return false
if (name != other.name) return false
if (outputUri != other.outputUri) return false
if (parameters != other.parameters) return false
if (priority != other.priority) return false
if (resourceDigests != other.resourceDigests) return false
if (retentionMode != other.retentionMode) return false
if (roleArn != other.roleArn) return false
if (runGroupId != other.runGroupId) return false
if (runId != other.runId) return false
if (runOutputUri != other.runOutputUri) return false
if (startTime != other.startTime) return false
if (startedBy != other.startedBy) return false
if (status != other.status) return false
if (statusMessage != other.statusMessage) return false
if (stopTime != other.stopTime) return false
if (storageCapacity != other.storageCapacity) return false
if (storageType != other.storageType) return false
if (tags != other.tags) return false
if (uuid != other.uuid) return false
if (workflowId != other.workflowId) return false
if (workflowOwnerId != other.workflowOwnerId) return false
if (workflowType != other.workflowType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.GetRunResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The computational accelerator used to run the workflow.
*/
public var accelerators: aws.sdk.kotlin.services.omics.model.Accelerators? = null
/**
* The run's ARN.
*/
public var arn: kotlin.String? = null
/**
* When the run was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The run's definition.
*/
public var definition: kotlin.String? = null
/**
* The run's digest.
*/
public var digest: kotlin.String? = null
/**
* The reason a run has failed.
*/
public var failureReason: kotlin.String? = null
/**
* The run's ID.
*/
public var id: kotlin.String? = null
/**
* The run's log level.
*/
public var logLevel: aws.sdk.kotlin.services.omics.model.RunLogLevel? = null
/**
* The location of the run log.
*/
public var logLocation: aws.sdk.kotlin.services.omics.model.RunLogLocation? = null
/**
* The run's name.
*/
public var name: kotlin.String? = null
/**
* The run's output URI.
*/
public var outputUri: kotlin.String? = null
/**
* The run's parameters.
*/
public var parameters: aws.smithy.kotlin.runtime.content.Document? = null
/**
* The run's priority.
*/
public var priority: kotlin.Int? = null
/**
* The run's resource digests.
*/
public var resourceDigests: Map? = null
/**
* The run's retention mode.
*/
public var retentionMode: aws.sdk.kotlin.services.omics.model.RunRetentionMode? = null
/**
* The run's service role ARN.
*/
public var roleArn: kotlin.String? = null
/**
* The run's group ID.
*/
public var runGroupId: kotlin.String? = null
/**
* The run's ID.
*/
public var runId: kotlin.String? = null
/**
* The destination for workflow outputs.
*/
public var runOutputUri: kotlin.String? = null
/**
* When the run started.
*/
public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Who started the run.
*/
public var startedBy: kotlin.String? = null
/**
* The run's status.
*/
public var status: aws.sdk.kotlin.services.omics.model.RunStatus? = null
/**
* The run's status message.
*/
public var statusMessage: kotlin.String? = null
/**
* The run's stop time.
*/
public var stopTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The run's storage capacity in gibibytes. For dynamic storage, after the run has completed, this value is the maximum amount of storage used during the run.
*/
public var storageCapacity: kotlin.Int? = null
/**
* The run's storage type.
*/
public var storageType: aws.sdk.kotlin.services.omics.model.StorageType? = null
/**
* The run's tags.
*/
public var tags: Map? = null
/**
* The universally unique identifier for a run.
*/
public var uuid: kotlin.String? = null
/**
* The run's workflow ID.
*/
public var workflowId: kotlin.String? = null
/**
* The ID of the workflow owner.
*/
public var workflowOwnerId: kotlin.String? = null
/**
* The run's workflow type.
*/
public var workflowType: aws.sdk.kotlin.services.omics.model.WorkflowType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.omics.model.GetRunResponse) : this() {
this.accelerators = x.accelerators
this.arn = x.arn
this.creationTime = x.creationTime
this.definition = x.definition
this.digest = x.digest
this.failureReason = x.failureReason
this.id = x.id
this.logLevel = x.logLevel
this.logLocation = x.logLocation
this.name = x.name
this.outputUri = x.outputUri
this.parameters = x.parameters
this.priority = x.priority
this.resourceDigests = x.resourceDigests
this.retentionMode = x.retentionMode
this.roleArn = x.roleArn
this.runGroupId = x.runGroupId
this.runId = x.runId
this.runOutputUri = x.runOutputUri
this.startTime = x.startTime
this.startedBy = x.startedBy
this.status = x.status
this.statusMessage = x.statusMessage
this.stopTime = x.stopTime
this.storageCapacity = x.storageCapacity
this.storageType = x.storageType
this.tags = x.tags
this.uuid = x.uuid
this.workflowId = x.workflowId
this.workflowOwnerId = x.workflowOwnerId
this.workflowType = x.workflowType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.omics.model.GetRunResponse = GetRunResponse(this)
/**
* construct an [aws.sdk.kotlin.services.omics.model.RunLogLocation] inside the given [block]
*/
public fun logLocation(block: aws.sdk.kotlin.services.omics.model.RunLogLocation.Builder.() -> kotlin.Unit) {
this.logLocation = aws.sdk.kotlin.services.omics.model.RunLogLocation.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}