
commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.model.TrustStoreRevocation.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 revocation file in use by a trust store.
*/
public class TrustStoreRevocation private constructor(builder: Builder) {
/**
* The number of revoked certificates.
*/
public val numberOfRevokedEntries: kotlin.Long? = builder.numberOfRevokedEntries
/**
* The revocation ID of the revocation file.
*/
public val revocationId: kotlin.Long? = builder.revocationId
/**
* The type of revocation file.
*/
public val revocationType: aws.sdk.kotlin.services.elasticloadbalancingv2.model.RevocationType? = builder.revocationType
/**
* 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.TrustStoreRevocation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TrustStoreRevocation(")
append("numberOfRevokedEntries=$numberOfRevokedEntries,")
append("revocationId=$revocationId,")
append("revocationType=$revocationType,")
append("trustStoreArn=$trustStoreArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = numberOfRevokedEntries?.hashCode() ?: 0
result = 31 * result + (revocationId?.hashCode() ?: 0)
result = 31 * result + (revocationType?.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 TrustStoreRevocation
if (numberOfRevokedEntries != other.numberOfRevokedEntries) return false
if (revocationId != other.revocationId) return false
if (revocationType != other.revocationType) return false
if (trustStoreArn != other.trustStoreArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticloadbalancingv2.model.TrustStoreRevocation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The number of revoked certificates.
*/
public var numberOfRevokedEntries: kotlin.Long? = null
/**
* The revocation ID of the revocation file.
*/
public var revocationId: kotlin.Long? = null
/**
* The type of revocation file.
*/
public var revocationType: aws.sdk.kotlin.services.elasticloadbalancingv2.model.RevocationType? = 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.TrustStoreRevocation) : this() {
this.numberOfRevokedEntries = x.numberOfRevokedEntries
this.revocationId = x.revocationId
this.revocationType = x.revocationType
this.trustStoreArn = x.trustStoreArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticloadbalancingv2.model.TrustStoreRevocation = TrustStoreRevocation(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy