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

commonMain.aws.sdk.kotlin.services.neptune.model.ResetDbParameterGroupRequest.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.neptune.model

import aws.smithy.kotlin.runtime.SdkDsl

public class ResetDbParameterGroupRequest private constructor(builder: Builder) {
    /**
     * The name of the DB parameter group.
     *
     * Constraints:
     * + Must match the name of an existing DBParameterGroup.
     */
    public val dbParameterGroupName: kotlin.String? = builder.dbParameterGroupName
    /**
     * To reset the entire DB parameter group, specify the `DBParameterGroup` name and `ResetAllParameters` parameters. To reset specific parameters, provide a list of the following: `ParameterName` and `ApplyMethod`. A maximum of 20 parameters can be modified in a single request.
     *
     * Valid Values (for Apply method): `pending-reboot`
     */
    public val parameters: List? = builder.parameters
    /**
     * Specifies whether (`true`) or not (`false`) to reset all parameters in the DB parameter group to default values.
     *
     * Default: `true`
     */
    public val resetAllParameters: kotlin.Boolean? = builder.resetAllParameters

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

    override fun toString(): kotlin.String = buildString {
        append("ResetDbParameterGroupRequest(")
        append("dbParameterGroupName=$dbParameterGroupName,")
        append("parameters=$parameters,")
        append("resetAllParameters=$resetAllParameters")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = dbParameterGroupName?.hashCode() ?: 0
        result = 31 * result + (parameters?.hashCode() ?: 0)
        result = 31 * result + (resetAllParameters?.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 ResetDbParameterGroupRequest

        if (dbParameterGroupName != other.dbParameterGroupName) return false
        if (parameters != other.parameters) return false
        if (resetAllParameters != other.resetAllParameters) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the DB parameter group.
         *
         * Constraints:
         * + Must match the name of an existing DBParameterGroup.
         */
        public var dbParameterGroupName: kotlin.String? = null
        /**
         * To reset the entire DB parameter group, specify the `DBParameterGroup` name and `ResetAllParameters` parameters. To reset specific parameters, provide a list of the following: `ParameterName` and `ApplyMethod`. A maximum of 20 parameters can be modified in a single request.
         *
         * Valid Values (for Apply method): `pending-reboot`
         */
        public var parameters: List? = null
        /**
         * Specifies whether (`true`) or not (`false`) to reset all parameters in the DB parameter group to default values.
         *
         * Default: `true`
         */
        public var resetAllParameters: kotlin.Boolean? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.neptune.model.ResetDbParameterGroupRequest) : this() {
            this.dbParameterGroupName = x.dbParameterGroupName
            this.parameters = x.parameters
            this.resetAllParameters = x.resetAllParameters
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy