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

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

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

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



/**
 * An Identity and Access Management (IAM) policy assignment.
 */
class IamPolicyAssignment private constructor(builder: Builder) {
    /**
     * Assignment ID.
     */
    val assignmentId: kotlin.String? = builder.assignmentId
    /**
     * Assignment name.
     */
    val assignmentName: kotlin.String? = builder.assignmentName
    /**
     * Assignment status.
     */
    val assignmentStatus: aws.sdk.kotlin.services.quicksight.model.AssignmentStatus? = builder.assignmentStatus
    /**
     * The Amazon Web Services account ID.
     */
    val awsAccountId: kotlin.String? = builder.awsAccountId
    /**
     * Identities.
     */
    val identities: Map>? = builder.identities
    /**
     * The Amazon Resource Name (ARN) for the IAM policy.
     */
    val policyArn: kotlin.String? = builder.policyArn

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

    override fun toString(): kotlin.String = buildString {
        append("IamPolicyAssignment(")
        append("assignmentId=$assignmentId,")
        append("assignmentName=$assignmentName,")
        append("assignmentStatus=$assignmentStatus,")
        append("awsAccountId=$awsAccountId,")
        append("identities=$identities,")
        append("policyArn=$policyArn)")
    }

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

        if (assignmentId != other.assignmentId) return false
        if (assignmentName != other.assignmentName) return false
        if (assignmentStatus != other.assignmentStatus) return false
        if (awsAccountId != other.awsAccountId) return false
        if (identities != other.identities) return false
        if (policyArn != other.policyArn) return false

        return true
    }

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

    class Builder {
        /**
         * Assignment ID.
         */
        var assignmentId: kotlin.String? = null
        /**
         * Assignment name.
         */
        var assignmentName: kotlin.String? = null
        /**
         * Assignment status.
         */
        var assignmentStatus: aws.sdk.kotlin.services.quicksight.model.AssignmentStatus? = null
        /**
         * The Amazon Web Services account ID.
         */
        var awsAccountId: kotlin.String? = null
        /**
         * Identities.
         */
        var identities: Map>? = null
        /**
         * The Amazon Resource Name (ARN) for the IAM policy.
         */
        var policyArn: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.quicksight.model.IamPolicyAssignment) : this() {
            this.assignmentId = x.assignmentId
            this.assignmentName = x.assignmentName
            this.assignmentStatus = x.assignmentStatus
            this.awsAccountId = x.awsAccountId
            this.identities = x.identities
            this.policyArn = x.policyArn
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy