commonMain.aws.sdk.kotlin.services.neptune.model.ModifyDbParameterGroupRequest.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 ModifyDbParameterGroupRequest private constructor(builder: Builder) {
/**
* The name of the DB parameter group.
*
* Constraints:
* + If supplied, must match the name of an existing DBParameterGroup.
*/
public val dbParameterGroupName: kotlin.String? = builder.dbParameterGroupName
/**
* An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters can be modified in a single request.
*
* Valid Values (for the application method): `immediate | pending-reboot`
*
* You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when you reboot the DB instance without failover.
*/
public val parameters: List? = builder.parameters
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptune.model.ModifyDbParameterGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ModifyDbParameterGroupRequest(")
append("dbParameterGroupName=$dbParameterGroupName,")
append("parameters=$parameters")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dbParameterGroupName?.hashCode() ?: 0
result = 31 * result + (parameters?.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 ModifyDbParameterGroupRequest
if (dbParameterGroupName != other.dbParameterGroupName) return false
if (parameters != other.parameters) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptune.model.ModifyDbParameterGroupRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the DB parameter group.
*
* Constraints:
* + If supplied, must match the name of an existing DBParameterGroup.
*/
public var dbParameterGroupName: kotlin.String? = null
/**
* An array of parameter names, values, and the apply method for the parameter update. At least one parameter name, value, and apply method must be supplied; subsequent arguments are optional. A maximum of 20 parameters can be modified in a single request.
*
* Valid Values (for the application method): `immediate | pending-reboot`
*
* You can use the immediate value with dynamic parameters only. You can use the pending-reboot value for both dynamic and static parameters, and changes are applied when you reboot the DB instance without failover.
*/
public var parameters: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptune.model.ModifyDbParameterGroupRequest) : this() {
this.dbParameterGroupName = x.dbParameterGroupName
this.parameters = x.parameters
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptune.model.ModifyDbParameterGroupRequest = ModifyDbParameterGroupRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}