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