
commonMain.aws.sdk.kotlin.services.iot.model.ServerCertificateSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* An object that contains information about a server certificate.
*/
public class ServerCertificateSummary private constructor(builder: Builder) {
/**
* The ARN of the server certificate.
*/
public val serverCertificateArn: kotlin.String? = builder.serverCertificateArn
/**
* The status of the server certificate.
*/
public val serverCertificateStatus: aws.sdk.kotlin.services.iot.model.ServerCertificateStatus? = builder.serverCertificateStatus
/**
* Details that explain the status of the server certificate.
*/
public val serverCertificateStatusDetail: kotlin.String? = builder.serverCertificateStatusDetail
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.ServerCertificateSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ServerCertificateSummary(")
append("serverCertificateArn=$serverCertificateArn,")
append("serverCertificateStatus=$serverCertificateStatus,")
append("serverCertificateStatusDetail=$serverCertificateStatusDetail")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = serverCertificateArn?.hashCode() ?: 0
result = 31 * result + (serverCertificateStatus?.hashCode() ?: 0)
result = 31 * result + (serverCertificateStatusDetail?.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 ServerCertificateSummary
if (serverCertificateArn != other.serverCertificateArn) return false
if (serverCertificateStatus != other.serverCertificateStatus) return false
if (serverCertificateStatusDetail != other.serverCertificateStatusDetail) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.ServerCertificateSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN of the server certificate.
*/
public var serverCertificateArn: kotlin.String? = null
/**
* The status of the server certificate.
*/
public var serverCertificateStatus: aws.sdk.kotlin.services.iot.model.ServerCertificateStatus? = null
/**
* Details that explain the status of the server certificate.
*/
public var serverCertificateStatusDetail: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.ServerCertificateSummary) : this() {
this.serverCertificateArn = x.serverCertificateArn
this.serverCertificateStatus = x.serverCertificateStatus
this.serverCertificateStatusDetail = x.serverCertificateStatusDetail
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.ServerCertificateSummary = ServerCertificateSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy