All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.quicksight.model.DescribeAnalysisPermissionsResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.quicksight.model



class DescribeAnalysisPermissionsResponse private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the analysis whose permissions you're describing.
     */
    val analysisArn: kotlin.String? = builder.analysisArn
    /**
     * The ID of the analysis whose permissions you're describing.
     */
    val analysisId: kotlin.String? = builder.analysisId
    /**
     * A structure that describes the principals and the resource-level permissions on an analysis.
     */
    val permissions: List? = builder.permissions
    /**
     * The Amazon Web Services request ID for this operation.
     */
    val requestId: kotlin.String? = builder.requestId
    /**
     * The HTTP status of the request.
     */
    val status: kotlin.Int = builder.status

    companion object {
        operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.DescribeAnalysisPermissionsResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DescribeAnalysisPermissionsResponse(")
        append("analysisArn=$analysisArn,")
        append("analysisId=$analysisId,")
        append("permissions=$permissions,")
        append("requestId=$requestId,")
        append("status=$status)")
    }

    override fun hashCode(): kotlin.Int {
        var result = analysisArn?.hashCode() ?: 0
        result = 31 * result + (analysisId?.hashCode() ?: 0)
        result = 31 * result + (permissions?.hashCode() ?: 0)
        result = 31 * result + (requestId?.hashCode() ?: 0)
        result = 31 * result + (status)
        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 DescribeAnalysisPermissionsResponse

        if (analysisArn != other.analysisArn) return false
        if (analysisId != other.analysisId) return false
        if (permissions != other.permissions) return false
        if (requestId != other.requestId) return false
        if (status != other.status) return false

        return true
    }

    inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.DescribeAnalysisPermissionsResponse = Builder(this).apply(block).build()

    class Builder {
        /**
         * The Amazon Resource Name (ARN) of the analysis whose permissions you're describing.
         */
        var analysisArn: kotlin.String? = null
        /**
         * The ID of the analysis whose permissions you're describing.
         */
        var analysisId: kotlin.String? = null
        /**
         * A structure that describes the principals and the resource-level permissions on an analysis.
         */
        var permissions: List? = null
        /**
         * The Amazon Web Services request ID for this operation.
         */
        var requestId: kotlin.String? = null
        /**
         * The HTTP status of the request.
         */
        var status: kotlin.Int = 0

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.DescribeAnalysisPermissionsResponse) : this() {
            this.analysisArn = x.analysisArn
            this.analysisId = x.analysisId
            this.permissions = x.permissions
            this.requestId = x.requestId
            this.status = x.status
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.quicksight.model.DescribeAnalysisPermissionsResponse = DescribeAnalysisPermissionsResponse(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy