
commonMain.aws.sdk.kotlin.services.iot.model.CaCertificate.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* A CA certificate.
*/
public class CaCertificate private constructor(builder: Builder) {
/**
* The ARN of the CA certificate.
*/
public val certificateArn: kotlin.String? = builder.certificateArn
/**
* The ID of the CA certificate.
*/
public val certificateId: kotlin.String? = builder.certificateId
/**
* The date the CA certificate was created.
*/
public val creationDate: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDate
/**
* The status of the CA certificate.
*
* The status value REGISTER_INACTIVE is deprecated and should not be used.
*/
public val status: aws.sdk.kotlin.services.iot.model.CaCertificateStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.CaCertificate = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CaCertificate(")
append("certificateArn=$certificateArn,")
append("certificateId=$certificateId,")
append("creationDate=$creationDate,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = certificateArn?.hashCode() ?: 0
result = 31 * result + (certificateId?.hashCode() ?: 0)
result = 31 * result + (creationDate?.hashCode() ?: 0)
result = 31 * result + (status?.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 CaCertificate
if (certificateArn != other.certificateArn) return false
if (certificateId != other.certificateId) return false
if (creationDate != other.creationDate) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.CaCertificate = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN of the CA certificate.
*/
public var certificateArn: kotlin.String? = null
/**
* The ID of the CA certificate.
*/
public var certificateId: kotlin.String? = null
/**
* The date the CA certificate was created.
*/
public var creationDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The status of the CA certificate.
*
* The status value REGISTER_INACTIVE is deprecated and should not be used.
*/
public var status: aws.sdk.kotlin.services.iot.model.CaCertificateStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.CaCertificate) : this() {
this.certificateArn = x.certificateArn
this.certificateId = x.certificateId
this.creationDate = x.creationDate
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.CaCertificate = CaCertificate(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy