commonMain.aws.sdk.kotlin.services.neptune.model.ResetDbClusterParameterGroupRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neptune-jvm Show documentation
Show all versions of neptune-jvm Show documentation
The AWS SDK for Kotlin client for Neptune
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.neptune.model
import aws.smithy.kotlin.runtime.SdkDsl
public class ResetDbClusterParameterGroupRequest private constructor(builder: Builder) {
/**
* The name of the DB cluster parameter group to reset.
*/
public val dbClusterParameterGroupName: kotlin.String? = builder.dbClusterParameterGroupName
/**
* A list of parameter names in the DB cluster parameter group to reset to the default values. You can't use this parameter if the `ResetAllParameters` parameter is set to `true`.
*/
public val parameters: List? = builder.parameters
/**
* A value that is set to `true` to reset all parameters in the DB cluster parameter group to their default values, and `false` otherwise. You can't use this parameter if there is a list of parameter names specified for the `Parameters` parameter.
*/
public val resetAllParameters: kotlin.Boolean? = builder.resetAllParameters
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptune.model.ResetDbClusterParameterGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ResetDbClusterParameterGroupRequest(")
append("dbClusterParameterGroupName=$dbClusterParameterGroupName,")
append("parameters=$parameters,")
append("resetAllParameters=$resetAllParameters")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dbClusterParameterGroupName?.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 ResetDbClusterParameterGroupRequest
if (dbClusterParameterGroupName != other.dbClusterParameterGroupName) 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.ResetDbClusterParameterGroupRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the DB cluster parameter group to reset.
*/
public var dbClusterParameterGroupName: kotlin.String? = null
/**
* A list of parameter names in the DB cluster parameter group to reset to the default values. You can't use this parameter if the `ResetAllParameters` parameter is set to `true`.
*/
public var parameters: List? = null
/**
* A value that is set to `true` to reset all parameters in the DB cluster parameter group to their default values, and `false` otherwise. You can't use this parameter if there is a list of parameter names specified for the `Parameters` parameter.
*/
public var resetAllParameters: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptune.model.ResetDbClusterParameterGroupRequest) : this() {
this.dbClusterParameterGroupName = x.dbClusterParameterGroupName
this.parameters = x.parameters
this.resetAllParameters = x.resetAllParameters
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptune.model.ResetDbClusterParameterGroupRequest = ResetDbClusterParameterGroupRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}