
commonMain.aws.sdk.kotlin.services.quicksight.model.UpdateDataSetPermissionsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
class UpdateDataSetPermissionsRequest private constructor(builder: Builder) {
/**
* The Amazon Web Services account ID.
*/
val awsAccountId: kotlin.String? = builder.awsAccountId
/**
* The ID for the dataset whose permissions you want to update. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
*/
val dataSetId: kotlin.String? = builder.dataSetId
/**
* The resource permissions that you want to grant to the dataset.
*/
val grantPermissions: List? = builder.grantPermissions
/**
* The resource permissions that you want to revoke from the dataset.
*/
val revokePermissions: List? = builder.revokePermissions
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.UpdateDataSetPermissionsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateDataSetPermissionsRequest(")
append("awsAccountId=$awsAccountId,")
append("dataSetId=$dataSetId,")
append("grantPermissions=$grantPermissions,")
append("revokePermissions=$revokePermissions)")
}
override fun hashCode(): kotlin.Int {
var result = awsAccountId?.hashCode() ?: 0
result = 31 * result + (dataSetId?.hashCode() ?: 0)
result = 31 * result + (grantPermissions?.hashCode() ?: 0)
result = 31 * result + (revokePermissions?.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 UpdateDataSetPermissionsRequest
if (awsAccountId != other.awsAccountId) return false
if (dataSetId != other.dataSetId) return false
if (grantPermissions != other.grantPermissions) return false
if (revokePermissions != other.revokePermissions) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.UpdateDataSetPermissionsRequest = Builder(this).apply(block).build()
class Builder {
/**
* The Amazon Web Services account ID.
*/
var awsAccountId: kotlin.String? = null
/**
* The ID for the dataset whose permissions you want to update. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
*/
var dataSetId: kotlin.String? = null
/**
* The resource permissions that you want to grant to the dataset.
*/
var grantPermissions: List? = null
/**
* The resource permissions that you want to revoke from the dataset.
*/
var revokePermissions: List? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.UpdateDataSetPermissionsRequest) : this() {
this.awsAccountId = x.awsAccountId
this.dataSetId = x.dataSetId
this.grantPermissions = x.grantPermissions
this.revokePermissions = x.revokePermissions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.UpdateDataSetPermissionsRequest = UpdateDataSetPermissionsRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy