commonMain.aws.sdk.kotlin.services.redshift.model.RevokeEndpointAccessRequest.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
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshift.model
import aws.smithy.kotlin.runtime.SdkDsl
public class RevokeEndpointAccessRequest private constructor(builder: Builder) {
/**
* The Amazon Web Services account ID whose access is to be revoked.
*/
public val account: kotlin.String? = builder.account
/**
* The cluster to revoke access from.
*/
public val clusterIdentifier: kotlin.String? = builder.clusterIdentifier
/**
* Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted.
*/
public val force: kotlin.Boolean? = builder.force
/**
* The virtual private cloud (VPC) identifiers for which access is to be revoked.
*/
public val vpcIds: List? = builder.vpcIds
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshift.model.RevokeEndpointAccessRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RevokeEndpointAccessRequest(")
append("account=$account,")
append("clusterIdentifier=$clusterIdentifier,")
append("force=$force,")
append("vpcIds=$vpcIds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = account?.hashCode() ?: 0
result = 31 * result + (clusterIdentifier?.hashCode() ?: 0)
result = 31 * result + (force?.hashCode() ?: 0)
result = 31 * result + (vpcIds?.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 RevokeEndpointAccessRequest
if (account != other.account) return false
if (clusterIdentifier != other.clusterIdentifier) return false
if (force != other.force) return false
if (vpcIds != other.vpcIds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshift.model.RevokeEndpointAccessRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Web Services account ID whose access is to be revoked.
*/
public var account: kotlin.String? = null
/**
* The cluster to revoke access from.
*/
public var clusterIdentifier: kotlin.String? = null
/**
* Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted.
*/
public var force: kotlin.Boolean? = null
/**
* The virtual private cloud (VPC) identifiers for which access is to be revoked.
*/
public var vpcIds: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshift.model.RevokeEndpointAccessRequest) : this() {
this.account = x.account
this.clusterIdentifier = x.clusterIdentifier
this.force = x.force
this.vpcIds = x.vpcIds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshift.model.RevokeEndpointAccessRequest = RevokeEndpointAccessRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}