
commonMain.aws.sdk.kotlin.services.codestar.model.UpdateUserProfileRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codestar.model
public class UpdateUserProfileRequest private constructor(builder: Builder) {
/**
* 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 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 name that will be displayed as the friendly name for the user in AWS CodeStar.
*/
public val userArn: kotlin.String? = builder.userArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codestar.model.UpdateUserProfileRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateUserProfileRequest(")
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 UpdateUserProfileRequest
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.UpdateUserProfileRequest = Builder(this).apply(block).build()
public class Builder {
/**
* 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 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 name that will be displayed as the friendly name for the user in AWS CodeStar.
*/
public var userArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codestar.model.UpdateUserProfileRequest) : 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.UpdateUserProfileRequest = UpdateUserProfileRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy