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

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

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

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



/**
 * Information about a user's profile in AWS CodeStar.
 */
public class UserProfileSummary private constructor(builder: Builder) {
    /**
     * The display name of a user in AWS CodeStar. For example, this could be set to both first and last name ("Mary Major") or a single name ("Mary"). The display name is also used to generate the initial icon associated with the user in AWS CodeStar projects. If spaces are included in the display name, the first character that appears after the space will be used as the second character in the user initial icon. The initial icon displays a maximum of two characters, so a display name with more than one space (for example "Mary Jane Major") would generate an initial icon using the first character and the first character after the space ("MJ", not "MM").
     */
    public val displayName: kotlin.String? = builder.displayName
    /**
     * The email address associated with the user.
     */
    public val emailAddress: kotlin.String? = builder.emailAddress
    /**
     * The SSH public key associated with the user in AWS CodeStar. If a project owner allows the user remote access to project resources, this public key will be used along with the user's private key for SSH access.
     */
    public val sshPublicKey: kotlin.String? = builder.sshPublicKey
    /**
     * The Amazon Resource Name (ARN) of the user in IAM.
     */
    public val userArn: kotlin.String? = builder.userArn

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

    override fun toString(): kotlin.String = buildString {
        append("UserProfileSummary(")
        append("displayName=*** Sensitive Data Redacted ***,")
        append("emailAddress=*** Sensitive Data Redacted ***,")
        append("sshPublicKey=$sshPublicKey,")
        append("userArn=$userArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = displayName?.hashCode() ?: 0
        result = 31 * result + (emailAddress?.hashCode() ?: 0)
        result = 31 * result + (sshPublicKey?.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 UserProfileSummary

        if (displayName != other.displayName) return false
        if (emailAddress != other.emailAddress) return false
        if (sshPublicKey != other.sshPublicKey) return false
        if (userArn != other.userArn) return false

        return true
    }

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

    public class Builder {
        /**
         * The display name of a user in AWS CodeStar. For example, this could be set to both first and last name ("Mary Major") or a single name ("Mary"). The display name is also used to generate the initial icon associated with the user in AWS CodeStar projects. If spaces are included in the display name, the first character that appears after the space will be used as the second character in the user initial icon. The initial icon displays a maximum of two characters, so a display name with more than one space (for example "Mary Jane Major") would generate an initial icon using the first character and the first character after the space ("MJ", not "MM").
         */
        public var displayName: kotlin.String? = null
        /**
         * The email address associated with the user.
         */
        public var emailAddress: kotlin.String? = null
        /**
         * The SSH public key associated with the user in AWS CodeStar. If a project owner allows the user remote access to project resources, this public key will be used along with the user's private key for SSH access.
         */
        public var sshPublicKey: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the user in IAM.
         */
        public var userArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codestar.model.UserProfileSummary) : this() {
            this.displayName = x.displayName
            this.emailAddress = x.emailAddress
            this.sshPublicKey = x.sshPublicKey
            this.userArn = x.userArn
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy