commonMain.aws.sdk.kotlin.services.dsql.model.DeleteMultiRegionClustersRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dsql-jvm Show documentation
Show all versions of dsql-jvm Show documentation
The AWS SDK for Kotlin client for DSQL
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dsql.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DeleteMultiRegionClustersRequest private constructor(builder: Builder) {
/**
* A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect.
*
* If you don't specify a client token, the Amazon Web Services SDK automatically generates one.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The ARNs of the clusters linked to the cluster you want to delete. also deletes these clusters as part of the operation.
*/
public val linkedClusterArns: List? = builder.linkedClusterArns
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dsql.model.DeleteMultiRegionClustersRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteMultiRegionClustersRequest(")
append("clientToken=$clientToken,")
append("linkedClusterArns=$linkedClusterArns")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (linkedClusterArns?.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 DeleteMultiRegionClustersRequest
if (clientToken != other.clientToken) return false
if (linkedClusterArns != other.linkedClusterArns) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dsql.model.DeleteMultiRegionClustersRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully. The subsequent retries with the same client token return the result from the original successful request and they have no additional effect.
*
* If you don't specify a client token, the Amazon Web Services SDK automatically generates one.
*/
public var clientToken: kotlin.String? = null
/**
* The ARNs of the clusters linked to the cluster you want to delete. also deletes these clusters as part of the operation.
*/
public var linkedClusterArns: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dsql.model.DeleteMultiRegionClustersRequest) : this() {
this.clientToken = x.clientToken
this.linkedClusterArns = x.linkedClusterArns
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dsql.model.DeleteMultiRegionClustersRequest = DeleteMultiRegionClustersRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy