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

commonMain.aws.sdk.kotlin.services.codestar.model.UpdateUserProfileResponse.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 UpdateUserProfileResponse private constructor(builder: Builder) {
    /**
     * The date the user profile was created, in timestamp format.
     */
    public val createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTimestamp
    /**
     * The name that is displayed as the friendly name for the user in AWS CodeStar.
     */
    public val displayName: kotlin.String? = builder.displayName
    /**
     * The email address that is displayed as part of the user's profile in AWS CodeStar.
     */
    public val emailAddress: kotlin.String? = builder.emailAddress
    /**
     * The date 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 in AWS CodeStar. This is the public portion of the public/private keypair the user can use to access project resources if a project owner allows the user remote access to those resources.
     */
    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.UpdateUserProfileResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("UpdateUserProfileResponse(")
        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 UpdateUserProfileResponse

        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.UpdateUserProfileResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The date the user profile was created, in timestamp format.
         */
        public var createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name that is displayed as the friendly name for the user in AWS CodeStar.
         */
        public var displayName: kotlin.String? = null
        /**
         * The email address that is displayed as part of the user's profile in AWS CodeStar.
         */
        public var emailAddress: kotlin.String? = null
        /**
         * The date 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 in AWS CodeStar. This is the public portion of the public/private keypair the user can use to access project resources if a project owner allows the user remote access to those resources.
         */
        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.UpdateUserProfileResponse) : 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.UpdateUserProfileResponse = UpdateUserProfileResponse(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy