
commonMain.aws.sdk.kotlin.services.iot.model.DeleteCertificateRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* The input for the DeleteCertificate operation.
*/
public class DeleteCertificateRequest private constructor(builder: Builder) {
/**
* The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
*/
public val certificateId: kotlin.String? = builder.certificateId
/**
* Forces the deletion of a certificate if it is inactive and is not attached to an IoT thing.
*/
public val forceDelete: kotlin.Boolean? = builder.forceDelete
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.DeleteCertificateRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteCertificateRequest(")
append("certificateId=$certificateId,")
append("forceDelete=$forceDelete")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = certificateId?.hashCode() ?: 0
result = 31 * result + (forceDelete?.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 DeleteCertificateRequest
if (certificateId != other.certificateId) return false
if (forceDelete != other.forceDelete) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.DeleteCertificateRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
*/
public var certificateId: kotlin.String? = null
/**
* Forces the deletion of a certificate if it is inactive and is not attached to an IoT thing.
*/
public var forceDelete: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.DeleteCertificateRequest) : this() {
this.certificateId = x.certificateId
this.forceDelete = x.forceDelete
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.DeleteCertificateRequest = DeleteCertificateRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy