commonMain.aws.sdk.kotlin.services.iotsitewise.model.BatchDisassociateProjectAssetsRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotsitewise-jvm Show documentation
Show all versions of iotsitewise-jvm Show documentation
The AWS SDK for Kotlin client for IoTSiteWise
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotsitewise.model
import aws.smithy.kotlin.runtime.SdkDsl
public class BatchDisassociateProjectAssetsRequest private constructor(builder: Builder) {
/**
* The IDs of the assets to be disassociated from the project.
*/
public val assetIds: List? = builder.assetIds
/**
* A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The ID of the project from which to disassociate the assets.
*/
public val projectId: kotlin.String? = builder.projectId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotsitewise.model.BatchDisassociateProjectAssetsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchDisassociateProjectAssetsRequest(")
append("assetIds=$assetIds,")
append("clientToken=$clientToken,")
append("projectId=$projectId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = assetIds?.hashCode() ?: 0
result = 31 * result + (clientToken?.hashCode() ?: 0)
result = 31 * result + (projectId?.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 BatchDisassociateProjectAssetsRequest
if (assetIds != other.assetIds) return false
if (clientToken != other.clientToken) return false
if (projectId != other.projectId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotsitewise.model.BatchDisassociateProjectAssetsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The IDs of the assets to be disassociated from the project.
*/
public var assetIds: List? = null
/**
* A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
*/
public var clientToken: kotlin.String? = null
/**
* The ID of the project from which to disassociate the assets.
*/
public var projectId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotsitewise.model.BatchDisassociateProjectAssetsRequest) : this() {
this.assetIds = x.assetIds
this.clientToken = x.clientToken
this.projectId = x.projectId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotsitewise.model.BatchDisassociateProjectAssetsRequest = BatchDisassociateProjectAssetsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy