
commonMain.aws.sdk.kotlin.services.codecommit.model.UpdateRepositoryEncryptionKeyResponse.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
public class UpdateRepositoryEncryptionKeyResponse private constructor(builder: Builder) {
/**
* The ID of the encryption key.
*/
public val kmsKeyId: kotlin.String? = builder.kmsKeyId
/**
* The ID of the encryption key formerly used to encrypt and decrypt the repository.
*/
public val originalKmsKeyId: kotlin.String? = builder.originalKmsKeyId
/**
* The ID of the repository.
*/
public val repositoryId: kotlin.String? = builder.repositoryId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.UpdateRepositoryEncryptionKeyResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateRepositoryEncryptionKeyResponse(")
append("kmsKeyId=$kmsKeyId,")
append("originalKmsKeyId=$originalKmsKeyId,")
append("repositoryId=$repositoryId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = kmsKeyId?.hashCode() ?: 0
result = 31 * result + (originalKmsKeyId?.hashCode() ?: 0)
result = 31 * result + (repositoryId?.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 UpdateRepositoryEncryptionKeyResponse
if (kmsKeyId != other.kmsKeyId) return false
if (originalKmsKeyId != other.originalKmsKeyId) return false
if (repositoryId != other.repositoryId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.UpdateRepositoryEncryptionKeyResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the encryption key.
*/
public var kmsKeyId: kotlin.String? = null
/**
* The ID of the encryption key formerly used to encrypt and decrypt the repository.
*/
public var originalKmsKeyId: kotlin.String? = null
/**
* The ID of the repository.
*/
public var repositoryId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.UpdateRepositoryEncryptionKeyResponse) : this() {
this.kmsKeyId = x.kmsKeyId
this.originalKmsKeyId = x.originalKmsKeyId
this.repositoryId = x.repositoryId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.UpdateRepositoryEncryptionKeyResponse = UpdateRepositoryEncryptionKeyResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy