
commonMain.aws.sdk.kotlin.services.codestar.model.AssociateTeamMemberRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codestar.model
public class AssociateTeamMemberRequest private constructor(builder: Builder) {
/**
* A user- or system-generated token that identifies the entity that requested the team member association to the project. This token can be used to repeat the request.
*/
public val clientRequestToken: kotlin.String? = builder.clientRequestToken
/**
* The ID of the project to which you will add the IAM user.
*/
public val projectId: kotlin.String? = builder.projectId
/**
* The AWS CodeStar project role that will apply to this user. This role determines what actions a user can take in an AWS CodeStar project.
*/
public val projectRole: kotlin.String? = builder.projectRole
/**
* Whether the team member is allowed to use an SSH public/private key pair to remotely access project resources, for example Amazon EC2 instances.
*/
public val remoteAccessAllowed: kotlin.Boolean? = builder.remoteAccessAllowed
/**
* The Amazon Resource Name (ARN) for the IAM user you want to add to the AWS CodeStar 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.AssociateTeamMemberRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AssociateTeamMemberRequest(")
append("clientRequestToken=$clientRequestToken,")
append("projectId=$projectId,")
append("projectRole=$projectRole,")
append("remoteAccessAllowed=$remoteAccessAllowed,")
append("userArn=$userArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientRequestToken?.hashCode() ?: 0
result = 31 * 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 AssociateTeamMemberRequest
if (clientRequestToken != other.clientRequestToken) return false
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.AssociateTeamMemberRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A user- or system-generated token that identifies the entity that requested the team member association to the project. This token can be used to repeat the request.
*/
public var clientRequestToken: kotlin.String? = null
/**
* The ID of the project to which you will add the IAM user.
*/
public var projectId: kotlin.String? = null
/**
* The AWS CodeStar project role that will apply to this user. This role determines what actions a user can take in an AWS CodeStar project.
*/
public var projectRole: kotlin.String? = null
/**
* Whether the team member is allowed to use an SSH public/private key pair to remotely access project resources, for example Amazon EC2 instances.
*/
public var remoteAccessAllowed: kotlin.Boolean? = null
/**
* The Amazon Resource Name (ARN) for the IAM user you want to add to the AWS CodeStar project.
*/
public var userArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codestar.model.AssociateTeamMemberRequest) : this() {
this.clientRequestToken = x.clientRequestToken
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.AssociateTeamMemberRequest = AssociateTeamMemberRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy