
commonMain.aws.sdk.kotlin.services.iottwinmaker.model.GetMetadataTransferJobResponse.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 GetMetadataTransferJobResponse 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 metadata transfer job's 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 description.
*/
public val description: kotlin.String? = builder.description
/**
* The metadata transfer job's destination.
*/
public val destination: aws.sdk.kotlin.services.iottwinmaker.model.DestinationConfiguration? = builder.destination
/**
* 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's role.
*/
public val metadataTransferJobRole: kotlin.String = requireNotNull(builder.metadataTransferJobRole) { "A non-null value must be provided for metadataTransferJobRole" }
/**
* The metadata transfer job's progress.
*/
public val progress: aws.sdk.kotlin.services.iottwinmaker.model.MetadataTransferJobProgress? = builder.progress
/**
* The metadata transfer job's report URL.
*/
public val reportUrl: kotlin.String? = builder.reportUrl
/**
* The metadata transfer job's sources.
*/
public val sources: List = requireNotNull(builder.sources) { "A non-null value must be provided for sources" }
/**
* The metadata transfer job's status.
*/
public val status: aws.sdk.kotlin.services.iottwinmaker.model.MetadataTransferJobStatus? = builder.status
/**
* The metadata transfer job's update DateTime property.
*/
public val updateDateTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.updateDateTime) { "A non-null value must be provided for updateDateTime" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iottwinmaker.model.GetMetadataTransferJobResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetMetadataTransferJobResponse(")
append("arn=$arn,")
append("creationDateTime=$creationDateTime,")
append("description=$description,")
append("destination=$destination,")
append("metadataTransferJobId=$metadataTransferJobId,")
append("metadataTransferJobRole=$metadataTransferJobRole,")
append("progress=$progress,")
append("reportUrl=$reportUrl,")
append("sources=$sources,")
append("status=$status,")
append("updateDateTime=$updateDateTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn.hashCode()
result = 31 * result + (creationDateTime.hashCode())
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (destination?.hashCode() ?: 0)
result = 31 * result + (metadataTransferJobId.hashCode())
result = 31 * result + (metadataTransferJobRole.hashCode())
result = 31 * result + (progress?.hashCode() ?: 0)
result = 31 * result + (reportUrl?.hashCode() ?: 0)
result = 31 * result + (sources.hashCode())
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (updateDateTime.hashCode())
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 GetMetadataTransferJobResponse
if (arn != other.arn) return false
if (creationDateTime != other.creationDateTime) return false
if (description != other.description) return false
if (destination != other.destination) return false
if (metadataTransferJobId != other.metadataTransferJobId) return false
if (metadataTransferJobRole != other.metadataTransferJobRole) return false
if (progress != other.progress) return false
if (reportUrl != other.reportUrl) return false
if (sources != other.sources) return false
if (status != other.status) return false
if (updateDateTime != other.updateDateTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iottwinmaker.model.GetMetadataTransferJobResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The metadata transfer job ARN.
*/
public var arn: kotlin.String? = null
/**
* The metadata transfer job's creation DateTime property.
*/
public var creationDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The metadata transfer job description.
*/
public var description: kotlin.String? = null
/**
* The metadata transfer job's destination.
*/
public var destination: aws.sdk.kotlin.services.iottwinmaker.model.DestinationConfiguration? = null
/**
* The metadata transfer job Id.
*/
public var metadataTransferJobId: kotlin.String? = null
/**
* The metadata transfer job's role.
*/
public var metadataTransferJobRole: kotlin.String? = null
/**
* The metadata transfer job's progress.
*/
public var progress: aws.sdk.kotlin.services.iottwinmaker.model.MetadataTransferJobProgress? = null
/**
* The metadata transfer job's report URL.
*/
public var reportUrl: kotlin.String? = null
/**
* The metadata transfer job's sources.
*/
public var sources: List? = null
/**
* The metadata transfer job's status.
*/
public var status: aws.sdk.kotlin.services.iottwinmaker.model.MetadataTransferJobStatus? = null
/**
* The metadata transfer job's update DateTime property.
*/
public var updateDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.GetMetadataTransferJobResponse) : this() {
this.arn = x.arn
this.creationDateTime = x.creationDateTime
this.description = x.description
this.destination = x.destination
this.metadataTransferJobId = x.metadataTransferJobId
this.metadataTransferJobRole = x.metadataTransferJobRole
this.progress = x.progress
this.reportUrl = x.reportUrl
this.sources = x.sources
this.status = x.status
this.updateDateTime = x.updateDateTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iottwinmaker.model.GetMetadataTransferJobResponse = GetMetadataTransferJobResponse(this)
/**
* construct an [aws.sdk.kotlin.services.iottwinmaker.model.DestinationConfiguration] inside the given [block]
*/
public fun destination(block: aws.sdk.kotlin.services.iottwinmaker.model.DestinationConfiguration.Builder.() -> kotlin.Unit) {
this.destination = aws.sdk.kotlin.services.iottwinmaker.model.DestinationConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.iottwinmaker.model.MetadataTransferJobProgress] inside the given [block]
*/
public fun progress(block: aws.sdk.kotlin.services.iottwinmaker.model.MetadataTransferJobProgress.Builder.() -> kotlin.Unit) {
this.progress = aws.sdk.kotlin.services.iottwinmaker.model.MetadataTransferJobProgress.invoke(block)
}
/**
* 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 = ""
if (metadataTransferJobRole == null) metadataTransferJobRole = ""
if (sources == null) sources = emptyList()
if (updateDateTime == null) updateDateTime = Instant.fromEpochSeconds(0)
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy