commonMain.aws.sdk.kotlin.services.redshift.model.DisassociateDataShareConsumerRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshift-jvm Show documentation
Show all versions of redshift-jvm Show documentation
The AWS SDK for Kotlin client for Redshift
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshift.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DisassociateDataShareConsumerRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the consumer namespace that association for the datashare is removed from.
*/
public val consumerArn: kotlin.String? = builder.consumerArn
/**
* From a datashare consumer account, removes association of a datashare from all the existing and future namespaces in the specified Amazon Web Services Region.
*/
public val consumerRegion: kotlin.String? = builder.consumerRegion
/**
* The Amazon Resource Name (ARN) of the datashare to remove association for.
*/
public val dataShareArn: kotlin.String? = builder.dataShareArn
/**
* A value that specifies whether association for the datashare is removed from the entire account.
*/
public val disassociateEntireAccount: kotlin.Boolean? = builder.disassociateEntireAccount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshift.model.DisassociateDataShareConsumerRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DisassociateDataShareConsumerRequest(")
append("consumerArn=$consumerArn,")
append("consumerRegion=$consumerRegion,")
append("dataShareArn=$dataShareArn,")
append("disassociateEntireAccount=$disassociateEntireAccount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = consumerArn?.hashCode() ?: 0
result = 31 * result + (consumerRegion?.hashCode() ?: 0)
result = 31 * result + (dataShareArn?.hashCode() ?: 0)
result = 31 * result + (disassociateEntireAccount?.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 DisassociateDataShareConsumerRequest
if (consumerArn != other.consumerArn) return false
if (consumerRegion != other.consumerRegion) return false
if (dataShareArn != other.dataShareArn) return false
if (disassociateEntireAccount != other.disassociateEntireAccount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshift.model.DisassociateDataShareConsumerRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the consumer namespace that association for the datashare is removed from.
*/
public var consumerArn: kotlin.String? = null
/**
* From a datashare consumer account, removes association of a datashare from all the existing and future namespaces in the specified Amazon Web Services Region.
*/
public var consumerRegion: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the datashare to remove association for.
*/
public var dataShareArn: kotlin.String? = null
/**
* A value that specifies whether association for the datashare is removed from the entire account.
*/
public var disassociateEntireAccount: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshift.model.DisassociateDataShareConsumerRequest) : this() {
this.consumerArn = x.consumerArn
this.consumerRegion = x.consumerRegion
this.dataShareArn = x.dataShareArn
this.disassociateEntireAccount = x.disassociateEntireAccount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshift.model.DisassociateDataShareConsumerRequest = DisassociateDataShareConsumerRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}