
commonMain.aws.sdk.kotlin.services.iottwinmaker.model.GetSyncJobRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iottwinmaker.model
public class GetSyncJobRequest private constructor(builder: Builder) {
/**
* The sync source.
*
* Currently the only supported syncSource is `SITEWISE `.
*/
public val syncSource: kotlin.String = requireNotNull(builder.syncSource) { "A non-null value must be provided for syncSource" }
/**
* The workspace ID.
*/
public val workspaceId: kotlin.String? = builder.workspaceId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iottwinmaker.model.GetSyncJobRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetSyncJobRequest(")
append("syncSource=$syncSource,")
append("workspaceId=$workspaceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = syncSource.hashCode()
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 GetSyncJobRequest
if (syncSource != other.syncSource) return false
if (workspaceId != other.workspaceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iottwinmaker.model.GetSyncJobRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The sync source.
*
* Currently the only supported syncSource is `SITEWISE `.
*/
public var syncSource: kotlin.String? = null
/**
* The workspace ID.
*/
public var workspaceId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.GetSyncJobRequest) : this() {
this.syncSource = x.syncSource
this.workspaceId = x.workspaceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iottwinmaker.model.GetSyncJobRequest = GetSyncJobRequest(this)
internal fun correctErrors(): Builder {
if (syncSource == null) syncSource = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy