
commonMain.aws.sdk.kotlin.services.codestar.model.DisassociateTeamMemberRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codestar.model
public class DisassociateTeamMemberRequest private constructor(builder: Builder) {
/**
* The ID of the AWS CodeStar project from which you want to remove a team member.
*/
public val projectId: kotlin.String? = builder.projectId
/**
* The Amazon Resource Name (ARN) of the IAM user or group whom you want to remove from the project.
*/
public val userArn: kotlin.String? = builder.userArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codestar.model.DisassociateTeamMemberRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DisassociateTeamMemberRequest(")
append("projectId=$projectId,")
append("userArn=$userArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = projectId?.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 DisassociateTeamMemberRequest
if (projectId != other.projectId) return false
if (userArn != other.userArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codestar.model.DisassociateTeamMemberRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the AWS CodeStar project from which you want to remove a team member.
*/
public var projectId: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the IAM user or group whom you want to remove from the project.
*/
public var userArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codestar.model.DisassociateTeamMemberRequest) : this() {
this.projectId = x.projectId
this.userArn = x.userArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codestar.model.DisassociateTeamMemberRequest = DisassociateTeamMemberRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy