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

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

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

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



/**
 * IAM policy assignment summary.
 */
class IamPolicyAssignmentSummary private constructor(builder: Builder) {
    /**
     * Assignment name.
     */
    val assignmentName: kotlin.String? = builder.assignmentName
    /**
     * Assignment status.
     */
    val assignmentStatus: aws.sdk.kotlin.services.quicksight.model.AssignmentStatus? = builder.assignmentStatus

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

    override fun toString(): kotlin.String = buildString {
        append("IamPolicyAssignmentSummary(")
        append("assignmentName=$assignmentName,")
        append("assignmentStatus=$assignmentStatus)")
    }

    override fun hashCode(): kotlin.Int {
        var result = assignmentName?.hashCode() ?: 0
        result = 31 * result + (assignmentStatus?.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 IamPolicyAssignmentSummary

        if (assignmentName != other.assignmentName) return false
        if (assignmentStatus != other.assignmentStatus) return false

        return true
    }

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

    class Builder {
        /**
         * Assignment name.
         */
        var assignmentName: kotlin.String? = null
        /**
         * Assignment status.
         */
        var assignmentStatus: aws.sdk.kotlin.services.quicksight.model.AssignmentStatus? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.IamPolicyAssignmentSummary) : this() {
            this.assignmentName = x.assignmentName
            this.assignmentStatus = x.assignmentStatus
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy