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