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

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

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

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

import aws.smithy.kotlin.runtime.time.Instant

public class DescribeUserProfileResponse private constructor(builder: Builder) {
    /**
     * The date and time when the user profile was created in AWS CodeStar, in timestamp format.
     */
    public val createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTimestamp
    /**
     * The display name shown for the user in AWS CodeStar projects. 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 for the user. Optional.
     */
    public val emailAddress: kotlin.String? = builder.emailAddress
    /**
     * The date and time when the user profile was last modified, in timestamp format.
     */
    public val lastModifiedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedTimestamp
    /**
     * The SSH public key associated with the user. This SSH public key is associated with the user profile, and can be used in conjunction with the associated private key for access to project resources, such as Amazon EC2 instances, if a project owner grants remote access to those resources.
     */
    public val sshPublicKey: kotlin.String? = builder.sshPublicKey
    /**
     * The Amazon Resource Name (ARN) of the user.
     */
    public val userArn: kotlin.String? = builder.userArn

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

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

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

        if (createdTimestamp != other.createdTimestamp) return false
        if (displayName != other.displayName) return false
        if (emailAddress != other.emailAddress) return false
        if (lastModifiedTimestamp != other.lastModifiedTimestamp) 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.DescribeUserProfileResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The date and time when the user profile was created in AWS CodeStar, in timestamp format.
         */
        public var createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The display name shown for the user in AWS CodeStar projects. 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 for the user. Optional.
         */
        public var emailAddress: kotlin.String? = null
        /**
         * The date and time when the user profile was last modified, in timestamp format.
         */
        public var lastModifiedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The SSH public key associated with the user. This SSH public key is associated with the user profile, and can be used in conjunction with the associated private key for access to project resources, such as Amazon EC2 instances, if a project owner grants remote access to those resources.
         */
        public var sshPublicKey: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the user.
         */
        public var userArn: kotlin.String? = null

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy