commonMain.aws.sdk.kotlin.services.neptune.model.CreateDbClusterParameterGroupRequest.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 CreateDbClusterParameterGroupRequest private constructor(builder: Builder) {
/**
* The name of the DB cluster parameter group.
*
* Constraints:
* + Must match the name of an existing DBClusterParameterGroup.
*
* This value is stored as a lowercase string.
*/
public val dbClusterParameterGroupName: kotlin.String? = builder.dbClusterParameterGroupName
/**
* The DB cluster parameter group family name. A DB cluster parameter group can be associated with one and only one DB cluster parameter group family, and can be applied only to a DB cluster running a database engine and engine version compatible with that DB cluster parameter group family.
*/
public val dbParameterGroupFamily: kotlin.String? = builder.dbParameterGroupFamily
/**
* The description for the DB cluster parameter group.
*/
public val description: kotlin.String? = builder.description
/**
* The tags to be assigned to the new DB cluster parameter group.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptune.model.CreateDbClusterParameterGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateDbClusterParameterGroupRequest(")
append("dbClusterParameterGroupName=$dbClusterParameterGroupName,")
append("dbParameterGroupFamily=$dbParameterGroupFamily,")
append("description=$description,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dbClusterParameterGroupName?.hashCode() ?: 0
result = 31 * result + (dbParameterGroupFamily?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateDbClusterParameterGroupRequest
if (dbClusterParameterGroupName != other.dbClusterParameterGroupName) return false
if (dbParameterGroupFamily != other.dbParameterGroupFamily) return false
if (description != other.description) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptune.model.CreateDbClusterParameterGroupRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the DB cluster parameter group.
*
* Constraints:
* + Must match the name of an existing DBClusterParameterGroup.
*
* This value is stored as a lowercase string.
*/
public var dbClusterParameterGroupName: kotlin.String? = null
/**
* The DB cluster parameter group family name. A DB cluster parameter group can be associated with one and only one DB cluster parameter group family, and can be applied only to a DB cluster running a database engine and engine version compatible with that DB cluster parameter group family.
*/
public var dbParameterGroupFamily: kotlin.String? = null
/**
* The description for the DB cluster parameter group.
*/
public var description: kotlin.String? = null
/**
* The tags to be assigned to the new DB cluster parameter group.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptune.model.CreateDbClusterParameterGroupRequest) : this() {
this.dbClusterParameterGroupName = x.dbClusterParameterGroupName
this.dbParameterGroupFamily = x.dbParameterGroupFamily
this.description = x.description
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptune.model.CreateDbClusterParameterGroupRequest = CreateDbClusterParameterGroupRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}