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

commonMain.aws.sdk.kotlin.services.lightsail.model.RelationalDatabaseParameter.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lightsail.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Describes the parameters of a database.
 */
public class RelationalDatabaseParameter private constructor(builder: Builder) {
    /**
     * Specifies the valid range of values for the parameter.
     */
    public val allowedValues: kotlin.String? = builder.allowedValues
    /**
     * Indicates when parameter updates are applied.
     *
     * Can be `immediate` or `pending-reboot`.
     */
    public val applyMethod: kotlin.String? = builder.applyMethod
    /**
     * Specifies the engine-specific parameter type.
     */
    public val applyType: kotlin.String? = builder.applyType
    /**
     * Specifies the valid data type for the parameter.
     */
    public val dataType: kotlin.String? = builder.dataType
    /**
     * Provides a description of the parameter.
     */
    public val description: kotlin.String? = builder.description
    /**
     * A Boolean value indicating whether the parameter can be modified.
     */
    public val isModifiable: kotlin.Boolean? = builder.isModifiable
    /**
     * Specifies the name of the parameter.
     */
    public val parameterName: kotlin.String? = builder.parameterName
    /**
     * Specifies the value of the parameter.
     */
    public val parameterValue: kotlin.String? = builder.parameterValue

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

    override fun toString(): kotlin.String = buildString {
        append("RelationalDatabaseParameter(")
        append("allowedValues=$allowedValues,")
        append("applyMethod=$applyMethod,")
        append("applyType=$applyType,")
        append("dataType=$dataType,")
        append("description=$description,")
        append("isModifiable=$isModifiable,")
        append("parameterName=$parameterName,")
        append("parameterValue=$parameterValue")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = allowedValues?.hashCode() ?: 0
        result = 31 * result + (applyMethod?.hashCode() ?: 0)
        result = 31 * result + (applyType?.hashCode() ?: 0)
        result = 31 * result + (dataType?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (isModifiable?.hashCode() ?: 0)
        result = 31 * result + (parameterName?.hashCode() ?: 0)
        result = 31 * result + (parameterValue?.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 RelationalDatabaseParameter

        if (allowedValues != other.allowedValues) return false
        if (applyMethod != other.applyMethod) return false
        if (applyType != other.applyType) return false
        if (dataType != other.dataType) return false
        if (description != other.description) return false
        if (isModifiable != other.isModifiable) return false
        if (parameterName != other.parameterName) return false
        if (parameterValue != other.parameterValue) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Specifies the valid range of values for the parameter.
         */
        public var allowedValues: kotlin.String? = null
        /**
         * Indicates when parameter updates are applied.
         *
         * Can be `immediate` or `pending-reboot`.
         */
        public var applyMethod: kotlin.String? = null
        /**
         * Specifies the engine-specific parameter type.
         */
        public var applyType: kotlin.String? = null
        /**
         * Specifies the valid data type for the parameter.
         */
        public var dataType: kotlin.String? = null
        /**
         * Provides a description of the parameter.
         */
        public var description: kotlin.String? = null
        /**
         * A Boolean value indicating whether the parameter can be modified.
         */
        public var isModifiable: kotlin.Boolean? = null
        /**
         * Specifies the name of the parameter.
         */
        public var parameterName: kotlin.String? = null
        /**
         * Specifies the value of the parameter.
         */
        public var parameterValue: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lightsail.model.RelationalDatabaseParameter) : this() {
            this.allowedValues = x.allowedValues
            this.applyMethod = x.applyMethod
            this.applyType = x.applyType
            this.dataType = x.dataType
            this.description = x.description
            this.isModifiable = x.isModifiable
            this.parameterName = x.parameterName
            this.parameterValue = x.parameterValue
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy