commonMain.aws.sdk.kotlin.services.neptune.model.CreateDbParameterGroupRequest.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 CreateDbParameterGroupRequest private constructor(builder: Builder) {
/**
* The DB parameter group family name. A DB parameter group can be associated with one and only one DB parameter group family, and can be applied only to a DB instance running a database engine and engine version compatible with that DB parameter group family.
*/
public val dbParameterGroupFamily: kotlin.String? = builder.dbParameterGroupFamily
/**
* The name of the DB parameter group.
*
* Constraints:
* + Must be 1 to 255 letters, numbers, or hyphens.
* + First character must be a letter
* + Cannot end with a hyphen or contain two consecutive hyphens
*
* This value is stored as a lowercase string.
*/
public val dbParameterGroupName: kotlin.String? = builder.dbParameterGroupName
/**
* The description for the DB parameter group.
*/
public val description: kotlin.String? = builder.description
/**
* The tags to be assigned to the new DB 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.CreateDbParameterGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateDbParameterGroupRequest(")
append("dbParameterGroupFamily=$dbParameterGroupFamily,")
append("dbParameterGroupName=$dbParameterGroupName,")
append("description=$description,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dbParameterGroupFamily?.hashCode() ?: 0
result = 31 * result + (dbParameterGroupName?.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 CreateDbParameterGroupRequest
if (dbParameterGroupFamily != other.dbParameterGroupFamily) return false
if (dbParameterGroupName != other.dbParameterGroupName) 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.CreateDbParameterGroupRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The DB parameter group family name. A DB parameter group can be associated with one and only one DB parameter group family, and can be applied only to a DB instance running a database engine and engine version compatible with that DB parameter group family.
*/
public var dbParameterGroupFamily: kotlin.String? = null
/**
* The name of the DB parameter group.
*
* Constraints:
* + Must be 1 to 255 letters, numbers, or hyphens.
* + First character must be a letter
* + Cannot end with a hyphen or contain two consecutive hyphens
*
* This value is stored as a lowercase string.
*/
public var dbParameterGroupName: kotlin.String? = null
/**
* The description for the DB parameter group.
*/
public var description: kotlin.String? = null
/**
* The tags to be assigned to the new DB parameter group.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptune.model.CreateDbParameterGroupRequest) : this() {
this.dbParameterGroupFamily = x.dbParameterGroupFamily
this.dbParameterGroupName = x.dbParameterGroupName
this.description = x.description
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptune.model.CreateDbParameterGroupRequest = CreateDbParameterGroupRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}