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