
commonMain.aws.sdk.kotlin.services.iottwinmaker.model.SyncJobSummary.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
/**
* The SyncJob summary.
*/
public class SyncJobSummary private constructor(builder: Builder) {
/**
* The SyncJob summary ARN.
*/
public val arn: kotlin.String? = builder.arn
/**
* The creation date and time.
*/
public val creationDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDateTime
/**
* The SyncJob summaries status.
*/
public val status: aws.sdk.kotlin.services.iottwinmaker.model.SyncJobStatus? = builder.status
/**
* The sync source.
*/
public val syncSource: kotlin.String? = builder.syncSource
/**
* The update date and time.
*/
public val updateDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.updateDateTime
/**
* The ID of the workspace that contains the sync job.
*/
public val workspaceId: kotlin.String? = builder.workspaceId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iottwinmaker.model.SyncJobSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SyncJobSummary(")
append("arn=$arn,")
append("creationDateTime=$creationDateTime,")
append("status=$status,")
append("syncSource=$syncSource,")
append("updateDateTime=$updateDateTime,")
append("workspaceId=$workspaceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (creationDateTime?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (syncSource?.hashCode() ?: 0)
result = 31 * result + (updateDateTime?.hashCode() ?: 0)
result = 31 * result + (workspaceId?.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 SyncJobSummary
if (arn != other.arn) return false
if (creationDateTime != other.creationDateTime) return false
if (status != other.status) return false
if (syncSource != other.syncSource) return false
if (updateDateTime != other.updateDateTime) return false
if (workspaceId != other.workspaceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iottwinmaker.model.SyncJobSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The SyncJob summary ARN.
*/
public var arn: kotlin.String? = null
/**
* The creation date and time.
*/
public var creationDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The SyncJob summaries status.
*/
public var status: aws.sdk.kotlin.services.iottwinmaker.model.SyncJobStatus? = null
/**
* The sync source.
*/
public var syncSource: kotlin.String? = null
/**
* The update date and time.
*/
public var updateDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The ID of the workspace that contains the sync job.
*/
public var workspaceId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.SyncJobSummary) : this() {
this.arn = x.arn
this.creationDateTime = x.creationDateTime
this.status = x.status
this.syncSource = x.syncSource
this.updateDateTime = x.updateDateTime
this.workspaceId = x.workspaceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iottwinmaker.model.SyncJobSummary = SyncJobSummary(this)
/**
* construct an [aws.sdk.kotlin.services.iottwinmaker.model.SyncJobStatus] inside the given [block]
*/
public fun status(block: aws.sdk.kotlin.services.iottwinmaker.model.SyncJobStatus.Builder.() -> kotlin.Unit) {
this.status = aws.sdk.kotlin.services.iottwinmaker.model.SyncJobStatus.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy