
commonMain.aws.sdk.kotlin.services.codecommit.model.UpdateRepositoryNameRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codecommit.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Represents the input of an update repository description operation.
*/
public class UpdateRepositoryNameRequest private constructor(builder: Builder) {
/**
* The new name for the repository.
*/
public val newName: kotlin.String? = builder.newName
/**
* The current name of the repository.
*/
public val oldName: kotlin.String? = builder.oldName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.UpdateRepositoryNameRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateRepositoryNameRequest(")
append("newName=$newName,")
append("oldName=$oldName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = newName?.hashCode() ?: 0
result = 31 * result + (oldName?.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 UpdateRepositoryNameRequest
if (newName != other.newName) return false
if (oldName != other.oldName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.UpdateRepositoryNameRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The new name for the repository.
*/
public var newName: kotlin.String? = null
/**
* The current name of the repository.
*/
public var oldName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.UpdateRepositoryNameRequest) : this() {
this.newName = x.newName
this.oldName = x.oldName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.UpdateRepositoryNameRequest = UpdateRepositoryNameRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy