
commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.model.TrustStore.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elasticloadbalancingv2.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about a trust store.
*/
public class TrustStore private constructor(builder: Builder) {
/**
* The name of the trust store.
*/
public val name: kotlin.String? = builder.name
/**
* The number of ca certificates in the trust store.
*/
public val numberOfCaCertificates: kotlin.Int? = builder.numberOfCaCertificates
/**
* The current status of the trust store.
*/
public val status: aws.sdk.kotlin.services.elasticloadbalancingv2.model.TrustStoreStatus? = builder.status
/**
* The number of revoked certificates in the trust store.
*/
public val totalRevokedEntries: kotlin.Long? = builder.totalRevokedEntries
/**
* The Amazon Resource Name (ARN) of the trust store.
*/
public val trustStoreArn: kotlin.String? = builder.trustStoreArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticloadbalancingv2.model.TrustStore = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TrustStore(")
append("name=$name,")
append("numberOfCaCertificates=$numberOfCaCertificates,")
append("status=$status,")
append("totalRevokedEntries=$totalRevokedEntries,")
append("trustStoreArn=$trustStoreArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = name?.hashCode() ?: 0
result = 31 * result + (numberOfCaCertificates ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (totalRevokedEntries?.hashCode() ?: 0)
result = 31 * result + (trustStoreArn?.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 TrustStore
if (name != other.name) return false
if (numberOfCaCertificates != other.numberOfCaCertificates) return false
if (status != other.status) return false
if (totalRevokedEntries != other.totalRevokedEntries) return false
if (trustStoreArn != other.trustStoreArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticloadbalancingv2.model.TrustStore = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the trust store.
*/
public var name: kotlin.String? = null
/**
* The number of ca certificates in the trust store.
*/
public var numberOfCaCertificates: kotlin.Int? = null
/**
* The current status of the trust store.
*/
public var status: aws.sdk.kotlin.services.elasticloadbalancingv2.model.TrustStoreStatus? = null
/**
* The number of revoked certificates in the trust store.
*/
public var totalRevokedEntries: kotlin.Long? = null
/**
* The Amazon Resource Name (ARN) of the trust store.
*/
public var trustStoreArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticloadbalancingv2.model.TrustStore) : this() {
this.name = x.name
this.numberOfCaCertificates = x.numberOfCaCertificates
this.status = x.status
this.totalRevokedEntries = x.totalRevokedEntries
this.trustStoreArn = x.trustStoreArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticloadbalancingv2.model.TrustStore = TrustStore(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy