
commonMain.aws.sdk.kotlin.services.iottwinmaker.model.CreateMetadataTransferJobResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iottwinmaker.model
import aws.smithy.kotlin.runtime.time.Instant
public class CreateMetadataTransferJobResponse private constructor(builder: Builder) {
/**
* The metadata transfer job ARN.
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
/**
* The The metadata transfer job creation DateTime property.
*/
public val creationDateTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.creationDateTime) { "A non-null value must be provided for creationDateTime" }
/**
* The metadata transfer job Id.
*/
public val metadataTransferJobId: kotlin.String = requireNotNull(builder.metadataTransferJobId) { "A non-null value must be provided for metadataTransferJobId" }
/**
* The metadata transfer job response status.
*/
public val status: aws.sdk.kotlin.services.iottwinmaker.model.MetadataTransferJobStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iottwinmaker.model.CreateMetadataTransferJobResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateMetadataTransferJobResponse(")
append("arn=$arn,")
append("creationDateTime=$creationDateTime,")
append("metadataTransferJobId=$metadataTransferJobId,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn.hashCode()
result = 31 * result + (creationDateTime.hashCode())
result = 31 * result + (metadataTransferJobId.hashCode())
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 CreateMetadataTransferJobResponse
if (arn != other.arn) return false
if (creationDateTime != other.creationDateTime) return false
if (metadataTransferJobId != other.metadataTransferJobId) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iottwinmaker.model.CreateMetadataTransferJobResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The metadata transfer job ARN.
*/
public var arn: kotlin.String? = null
/**
* The The metadata transfer job creation DateTime property.
*/
public var creationDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The metadata transfer job Id.
*/
public var metadataTransferJobId: kotlin.String? = null
/**
* The metadata transfer job response status.
*/
public var status: aws.sdk.kotlin.services.iottwinmaker.model.MetadataTransferJobStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.CreateMetadataTransferJobResponse) : this() {
this.arn = x.arn
this.creationDateTime = x.creationDateTime
this.metadataTransferJobId = x.metadataTransferJobId
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iottwinmaker.model.CreateMetadataTransferJobResponse = CreateMetadataTransferJobResponse(this)
/**
* construct an [aws.sdk.kotlin.services.iottwinmaker.model.MetadataTransferJobStatus] inside the given [block]
*/
public fun status(block: aws.sdk.kotlin.services.iottwinmaker.model.MetadataTransferJobStatus.Builder.() -> kotlin.Unit) {
this.status = aws.sdk.kotlin.services.iottwinmaker.model.MetadataTransferJobStatus.invoke(block)
}
internal fun correctErrors(): Builder {
if (arn == null) arn = ""
if (creationDateTime == null) creationDateTime = Instant.fromEpochSeconds(0)
if (metadataTransferJobId == null) metadataTransferJobId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy