commonMain.aws.sdk.kotlin.services.codestarconnections.model.UpdateRepositoryLinkRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codestarconnections.model
public class UpdateRepositoryLinkRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the connection for the repository link to be updated. The updated connection ARN must have the same providerType (such as GitHub) as the original connection ARN for the repo link.
*/
public val connectionArn: kotlin.String? = builder.connectionArn
/**
* The Amazon Resource Name (ARN) of the encryption key for the repository link to be updated.
*/
public val encryptionKeyArn: kotlin.String? = builder.encryptionKeyArn
/**
* The ID of the repository link to be updated.
*/
public val repositoryLinkId: kotlin.String? = builder.repositoryLinkId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codestarconnections.model.UpdateRepositoryLinkRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateRepositoryLinkRequest(")
append("connectionArn=$connectionArn,")
append("encryptionKeyArn=$encryptionKeyArn,")
append("repositoryLinkId=$repositoryLinkId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = connectionArn?.hashCode() ?: 0
result = 31 * result + (encryptionKeyArn?.hashCode() ?: 0)
result = 31 * result + (repositoryLinkId?.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 UpdateRepositoryLinkRequest
if (connectionArn != other.connectionArn) return false
if (encryptionKeyArn != other.encryptionKeyArn) return false
if (repositoryLinkId != other.repositoryLinkId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codestarconnections.model.UpdateRepositoryLinkRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Resource Name (ARN) of the connection for the repository link to be updated. The updated connection ARN must have the same providerType (such as GitHub) as the original connection ARN for the repo link.
*/
public var connectionArn: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the encryption key for the repository link to be updated.
*/
public var encryptionKeyArn: kotlin.String? = null
/**
* The ID of the repository link to be updated.
*/
public var repositoryLinkId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codestarconnections.model.UpdateRepositoryLinkRequest) : this() {
this.connectionArn = x.connectionArn
this.encryptionKeyArn = x.encryptionKeyArn
this.repositoryLinkId = x.repositoryLinkId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codestarconnections.model.UpdateRepositoryLinkRequest = UpdateRepositoryLinkRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy