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

commonMain.aws.sdk.kotlin.services.pi.model.FeatureMetadata.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.pi.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The metadata for a feature. For example, the metadata might indicate that a feature is turned on or off on a specific DB instance.
 */
public class FeatureMetadata private constructor(builder: Builder) {
    /**
     * The status of the feature on the DB instance. Possible values include the following:
     * + `ENABLED` - The feature is enabled on the instance.
     * + `DISABLED` - The feature is disabled on the instance.
     * + `UNSUPPORTED` - The feature isn't supported on the instance.
     * + `ENABLED_PENDING_REBOOT` - The feature is enabled on the instance but requires a reboot to take effect.
     * + `DISABLED_PENDING_REBOOT` - The feature is disabled on the instance but requires a reboot to take effect.
     * + `UNKNOWN` - The feature status couldn't be determined.
     */
    public val status: aws.sdk.kotlin.services.pi.model.FeatureStatus? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("FeatureMetadata(")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = status?.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 FeatureMetadata

        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The status of the feature on the DB instance. Possible values include the following:
         * + `ENABLED` - The feature is enabled on the instance.
         * + `DISABLED` - The feature is disabled on the instance.
         * + `UNSUPPORTED` - The feature isn't supported on the instance.
         * + `ENABLED_PENDING_REBOOT` - The feature is enabled on the instance but requires a reboot to take effect.
         * + `DISABLED_PENDING_REBOOT` - The feature is disabled on the instance but requires a reboot to take effect.
         * + `UNKNOWN` - The feature status couldn't be determined.
         */
        public var status: aws.sdk.kotlin.services.pi.model.FeatureStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pi.model.FeatureMetadata) : this() {
            this.status = x.status
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy