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

commonMain.aws.sdk.kotlin.services.codestar.model.UpdateTeamMemberResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.codestar.model



public class UpdateTeamMemberResponse private constructor(builder: Builder) {
    /**
     * The project role granted to the user.
     */
    public val projectRole: kotlin.String? = builder.projectRole
    /**
     * Whether a team member is allowed to remotely access project resources using the SSH public key associated with the user's profile.
     */
    public val remoteAccessAllowed: kotlin.Boolean? = builder.remoteAccessAllowed
    /**
     * The Amazon Resource Name (ARN) of the user whose team membership attributes were updated.
     */
    public val userArn: kotlin.String? = builder.userArn

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateTeamMemberResponse(")
        append("projectRole=$projectRole,")
        append("remoteAccessAllowed=$remoteAccessAllowed,")
        append("userArn=$userArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = projectRole?.hashCode() ?: 0
        result = 31 * result + (remoteAccessAllowed?.hashCode() ?: 0)
        result = 31 * result + (userArn?.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 UpdateTeamMemberResponse

        if (projectRole != other.projectRole) return false
        if (remoteAccessAllowed != other.remoteAccessAllowed) return false
        if (userArn != other.userArn) return false

        return true
    }

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

    public class Builder {
        /**
         * The project role granted to the user.
         */
        public var projectRole: kotlin.String? = null
        /**
         * Whether a team member is allowed to remotely access project resources using the SSH public key associated with the user's profile.
         */
        public var remoteAccessAllowed: kotlin.Boolean? = null
        /**
         * The Amazon Resource Name (ARN) of the user whose team membership attributes were updated.
         */
        public var userArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codestar.model.UpdateTeamMemberResponse) : this() {
            this.projectRole = x.projectRole
            this.remoteAccessAllowed = x.remoteAccessAllowed
            this.userArn = x.userArn
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy