
commonMain.aws.sdk.kotlin.services.acmpca.model.DeleteCertificateAuthorityRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.acmpca.model
public class DeleteCertificateAuthorityRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) that was returned when you called [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html). This must have the following form:
*
* `arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 `.
*/
public val certificateAuthorityArn: kotlin.String? = builder.certificateAuthorityArn
/**
* The number of days to make a CA restorable after it has been deleted. This can be anywhere from 7 to 30 days, with 30 being the default.
*/
public val permanentDeletionTimeInDays: kotlin.Int? = builder.permanentDeletionTimeInDays
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.acmpca.model.DeleteCertificateAuthorityRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteCertificateAuthorityRequest(")
append("certificateAuthorityArn=$certificateAuthorityArn,")
append("permanentDeletionTimeInDays=$permanentDeletionTimeInDays")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = certificateAuthorityArn?.hashCode() ?: 0
result = 31 * result + (permanentDeletionTimeInDays ?: 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 DeleteCertificateAuthorityRequest
if (certificateAuthorityArn != other.certificateAuthorityArn) return false
if (permanentDeletionTimeInDays != other.permanentDeletionTimeInDays) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.acmpca.model.DeleteCertificateAuthorityRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Resource Name (ARN) that was returned when you called [CreateCertificateAuthority](https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html). This must have the following form:
*
* `arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 `.
*/
public var certificateAuthorityArn: kotlin.String? = null
/**
* The number of days to make a CA restorable after it has been deleted. This can be anywhere from 7 to 30 days, with 30 being the default.
*/
public var permanentDeletionTimeInDays: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.acmpca.model.DeleteCertificateAuthorityRequest) : this() {
this.certificateAuthorityArn = x.certificateAuthorityArn
this.permanentDeletionTimeInDays = x.permanentDeletionTimeInDays
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.acmpca.model.DeleteCertificateAuthorityRequest = DeleteCertificateAuthorityRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy