commonMain.aws.sdk.kotlin.services.neptune.model.RemoveFromGlobalClusterRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neptune-jvm Show documentation
Show all versions of neptune-jvm Show documentation
The AWS SDK for Kotlin client for Neptune
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.neptune.model
import aws.smithy.kotlin.runtime.SdkDsl
public class RemoveFromGlobalClusterRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) identifying the cluster to be detached from the Neptune global database cluster.
*/
public val dbClusterIdentifier: kotlin.String? = builder.dbClusterIdentifier
/**
* The identifier of the Neptune global database from which to detach the specified Neptune DB cluster.
*/
public val globalClusterIdentifier: kotlin.String? = builder.globalClusterIdentifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptune.model.RemoveFromGlobalClusterRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RemoveFromGlobalClusterRequest(")
append("dbClusterIdentifier=$dbClusterIdentifier,")
append("globalClusterIdentifier=$globalClusterIdentifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dbClusterIdentifier?.hashCode() ?: 0
result = 31 * result + (globalClusterIdentifier?.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 RemoveFromGlobalClusterRequest
if (dbClusterIdentifier != other.dbClusterIdentifier) return false
if (globalClusterIdentifier != other.globalClusterIdentifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptune.model.RemoveFromGlobalClusterRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) identifying the cluster to be detached from the Neptune global database cluster.
*/
public var dbClusterIdentifier: kotlin.String? = null
/**
* The identifier of the Neptune global database from which to detach the specified Neptune DB cluster.
*/
public var globalClusterIdentifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptune.model.RemoveFromGlobalClusterRequest) : this() {
this.dbClusterIdentifier = x.dbClusterIdentifier
this.globalClusterIdentifier = x.globalClusterIdentifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptune.model.RemoveFromGlobalClusterRequest = RemoveFromGlobalClusterRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}