
commonMain.aws.sdk.kotlin.services.codestar.model.UpdateTeamMemberRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codestar.model
public class UpdateTeamMemberRequest private constructor(builder: Builder) {
/**
* The ID of the project.
*/
public val projectId: kotlin.String? = builder.projectId
/**
* The role assigned to the user in the project. Project roles have different levels of access. For more information, see [Working with Teams](http://docs.aws.amazon.com/codestar/latest/userguide/working-with-teams.html) in the *AWS CodeStar User Guide*.
*/
public val projectRole: kotlin.String? = builder.projectRole
/**
* Whether a team member is allowed to remotely access project resources using the SSH public key associated with the user's profile. Even if this is set to True, the user must associate a public key with their profile before the user can access resources.
*/
public val remoteAccessAllowed: kotlin.Boolean? = builder.remoteAccessAllowed
/**
* The Amazon Resource Name (ARN) of the user for whom you want to change team membership attributes.
*/
public val userArn: kotlin.String? = builder.userArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codestar.model.UpdateTeamMemberRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateTeamMemberRequest(")
append("projectId=$projectId,")
append("projectRole=$projectRole,")
append("remoteAccessAllowed=$remoteAccessAllowed,")
append("userArn=$userArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = projectId?.hashCode() ?: 0
result = 31 * result + (projectRole?.hashCode() ?: 0)
result = 31 * result + (remoteAccessAllowed?.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 UpdateTeamMemberRequest
if (projectId != other.projectId) return false
if (projectRole != other.projectRole) return false
if (remoteAccessAllowed != other.remoteAccessAllowed) return false
if (userArn != other.userArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codestar.model.UpdateTeamMemberRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the project.
*/
public var projectId: kotlin.String? = null
/**
* The role assigned to the user in the project. Project roles have different levels of access. For more information, see [Working with Teams](http://docs.aws.amazon.com/codestar/latest/userguide/working-with-teams.html) in the *AWS CodeStar User Guide*.
*/
public var projectRole: kotlin.String? = null
/**
* Whether a team member is allowed to remotely access project resources using the SSH public key associated with the user's profile. Even if this is set to True, the user must associate a public key with their profile before the user can access resources.
*/
public var remoteAccessAllowed: kotlin.Boolean? = null
/**
* The Amazon Resource Name (ARN) of the user for whom you want to change team membership attributes.
*/
public var userArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codestar.model.UpdateTeamMemberRequest) : this() {
this.projectId = x.projectId
this.projectRole = x.projectRole
this.remoteAccessAllowed = x.remoteAccessAllowed
this.userArn = x.userArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codestar.model.UpdateTeamMemberRequest = UpdateTeamMemberRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy