All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.model.DescribeTrustStoreRevocation.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 the revocations used by a trust store.
 */
public class DescribeTrustStoreRevocation private constructor(builder: Builder) {
    /**
     * The number of revoked certificates.
     */
    public val numberOfRevokedEntries: kotlin.Long? = builder.numberOfRevokedEntries
    /**
     * The revocation ID of a revocation file in use.
     */
    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.DescribeTrustStoreRevocation = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DescribeTrustStoreRevocation(")
        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 DescribeTrustStoreRevocation

        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.DescribeTrustStoreRevocation = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The number of revoked certificates.
         */
        public var numberOfRevokedEntries: kotlin.Long? = null
        /**
         * The revocation ID of a revocation file in use.
         */
        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.DescribeTrustStoreRevocation) : 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.DescribeTrustStoreRevocation = DescribeTrustStoreRevocation(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy