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

commonMain.aws.sdk.kotlin.services.redshift.model.ResetClusterParameterGroupRequest.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.redshift.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 *
 */
public class ResetClusterParameterGroupRequest private constructor(builder: Builder) {
    /**
     * The name of the cluster parameter group to be reset.
     */
    public val parameterGroupName: kotlin.String? = builder.parameterGroupName
    /**
     * An array of names of parameters to be reset. If *ResetAllParameters* option is not used, then at least one parameter name must be supplied.
     *
     * Constraints: A maximum of 20 parameters can be reset in a single request.
     */
    public val parameters: List? = builder.parameters
    /**
     * If `true`, all parameters in the specified parameter group will be reset to their 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.redshift.model.ResetClusterParameterGroupRequest = Builder().apply(block).build()
    }

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

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

        if (parameterGroupName != other.parameterGroupName) 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.redshift.model.ResetClusterParameterGroupRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The name of the cluster parameter group to be reset.
         */
        public var parameterGroupName: kotlin.String? = null
        /**
         * An array of names of parameters to be reset. If *ResetAllParameters* option is not used, then at least one parameter name must be supplied.
         *
         * Constraints: A maximum of 20 parameters can be reset in a single request.
         */
        public var parameters: List? = null
        /**
         * If `true`, all parameters in the specified parameter group will be reset to their default values.
         *
         * Default: `true`
         */
        public var resetAllParameters: kotlin.Boolean? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.redshift.model.ResetClusterParameterGroupRequest) : this() {
            this.parameterGroupName = x.parameterGroupName
            this.parameters = x.parameters
            this.resetAllParameters = x.resetAllParameters
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy