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

commonMain.aws.sdk.kotlin.services.route53.model.DnssecStatus.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.route53.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * A string representing the status of DNSSEC signing.
 */
public class DnssecStatus private constructor(builder: Builder) {
    /**
     * A string that represents the current hosted zone signing status.
     *
     * Status can have one of the following values:
     *
     * ## SIGNING
     * DNSSEC signing is enabled for the hosted zone.
     *
     * ## NOT_SIGNING
     * DNSSEC signing is not enabled for the hosted zone.
     *
     * ## DELETING
     * DNSSEC signing is in the process of being removed for the hosted zone.
     *
     * ## ACTION_NEEDED
     * There is a problem with signing in the hosted zone that requires you to take action to resolve. For example, the customer managed key might have been deleted, or the permissions for the customer managed key might have been changed.
     *
     * ## INTERNAL_FAILURE
     * There was an error during a request. Before you can continue to work with DNSSEC signing, including with key-signing keys (KSKs), you must correct the problem by enabling or disabling DNSSEC signing for the hosted zone.
     */
    public val serveSignature: kotlin.String? = builder.serveSignature
    /**
     * The status message provided for the following DNSSEC signing status: `INTERNAL_FAILURE`. The status message includes information about what the problem might be and steps that you can take to correct the issue.
     */
    public val statusMessage: kotlin.String? = builder.statusMessage

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53.model.DnssecStatus = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DnssecStatus(")
        append("serveSignature=$serveSignature,")
        append("statusMessage=$statusMessage")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = serveSignature?.hashCode() ?: 0
        result = 31 * result + (statusMessage?.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 DnssecStatus

        if (serveSignature != other.serveSignature) return false
        if (statusMessage != other.statusMessage) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53.model.DnssecStatus = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * A string that represents the current hosted zone signing status.
         *
         * Status can have one of the following values:
         *
         * ## SIGNING
         * DNSSEC signing is enabled for the hosted zone.
         *
         * ## NOT_SIGNING
         * DNSSEC signing is not enabled for the hosted zone.
         *
         * ## DELETING
         * DNSSEC signing is in the process of being removed for the hosted zone.
         *
         * ## ACTION_NEEDED
         * There is a problem with signing in the hosted zone that requires you to take action to resolve. For example, the customer managed key might have been deleted, or the permissions for the customer managed key might have been changed.
         *
         * ## INTERNAL_FAILURE
         * There was an error during a request. Before you can continue to work with DNSSEC signing, including with key-signing keys (KSKs), you must correct the problem by enabling or disabling DNSSEC signing for the hosted zone.
         */
        public var serveSignature: kotlin.String? = null
        /**
         * The status message provided for the following DNSSEC signing status: `INTERNAL_FAILURE`. The status message includes information about what the problem might be and steps that you can take to correct the issue.
         */
        public var statusMessage: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.route53.model.DnssecStatus) : this() {
            this.serveSignature = x.serveSignature
            this.statusMessage = x.statusMessage
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.route53.model.DnssecStatus = DnssecStatus(this)

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy