commonMain.aws.sdk.kotlin.services.snowball.model.DescribeJobResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snowball-jvm Show documentation
Show all versions of snowball-jvm Show documentation
The AWS SDK for Kotlin client for Snowball
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.snowball.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeJobResponse private constructor(builder: Builder) {
/**
* Information about a specific job, including shipping information, job status, and other important metadata.
*/
public val jobMetadata: aws.sdk.kotlin.services.snowball.model.JobMetadata? = builder.jobMetadata
/**
* Information about a specific job part (in the case of an export job), including shipping information, job status, and other important metadata.
*/
public val subJobMetadata: List? = builder.subJobMetadata
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.snowball.model.DescribeJobResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeJobResponse(")
append("jobMetadata=$jobMetadata,")
append("subJobMetadata=$subJobMetadata")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = jobMetadata?.hashCode() ?: 0
result = 31 * result + (subJobMetadata?.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 DescribeJobResponse
if (jobMetadata != other.jobMetadata) return false
if (subJobMetadata != other.subJobMetadata) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.snowball.model.DescribeJobResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Information about a specific job, including shipping information, job status, and other important metadata.
*/
public var jobMetadata: aws.sdk.kotlin.services.snowball.model.JobMetadata? = null
/**
* Information about a specific job part (in the case of an export job), including shipping information, job status, and other important metadata.
*/
public var subJobMetadata: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.snowball.model.DescribeJobResponse) : this() {
this.jobMetadata = x.jobMetadata
this.subJobMetadata = x.subJobMetadata
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.snowball.model.DescribeJobResponse = DescribeJobResponse(this)
/**
* construct an [aws.sdk.kotlin.services.snowball.model.JobMetadata] inside the given [block]
*/
public fun jobMetadata(block: aws.sdk.kotlin.services.snowball.model.JobMetadata.Builder.() -> kotlin.Unit) {
this.jobMetadata = aws.sdk.kotlin.services.snowball.model.JobMetadata.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}