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

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

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

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



public class CreateUserProfileRequest private constructor(builder: Builder) {
    /**
     * The name that will be displayed as the friendly name for the user in AWS CodeStar.
     */
    public val displayName: kotlin.String? = builder.displayName
    /**
     * The email address that will be displayed as part of the user's profile in AWS CodeStar.
     */
    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.CreateUserProfileRequest = Builder().apply(block).build()
    }

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

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

    public class Builder {
        /**
         * The name that will be displayed as the friendly name for the user in AWS CodeStar.
         */
        public var displayName: kotlin.String? = null
        /**
         * The email address that will be displayed as part of the user's profile in AWS CodeStar.
         */
        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.CreateUserProfileRequest) : 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.CreateUserProfileRequest = CreateUserProfileRequest(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy