commonMain.aws.sdk.kotlin.services.redshift.model.ClusterParameterGroup.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshift-jvm Show documentation
Show all versions of redshift-jvm Show documentation
The AWS SDK for Kotlin client for Redshift
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshift.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Describes a parameter group.
*/
public class ClusterParameterGroup private constructor(builder: Builder) {
/**
* The description of the parameter group.
*/
public val description: kotlin.String? = builder.description
/**
* The name of the cluster parameter group family that this cluster parameter group is compatible with.
*/
public val parameterGroupFamily: kotlin.String? = builder.parameterGroupFamily
/**
* The name of the cluster parameter group.
*/
public val parameterGroupName: kotlin.String? = builder.parameterGroupName
/**
* The list of tags for the cluster parameter group.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshift.model.ClusterParameterGroup = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ClusterParameterGroup(")
append("description=$description,")
append("parameterGroupFamily=$parameterGroupFamily,")
append("parameterGroupName=$parameterGroupName,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (parameterGroupFamily?.hashCode() ?: 0)
result = 31 * result + (parameterGroupName?.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 ClusterParameterGroup
if (description != other.description) return false
if (parameterGroupFamily != other.parameterGroupFamily) return false
if (parameterGroupName != other.parameterGroupName) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshift.model.ClusterParameterGroup = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The description of the parameter group.
*/
public var description: kotlin.String? = null
/**
* The name of the cluster parameter group family that this cluster parameter group is compatible with.
*/
public var parameterGroupFamily: kotlin.String? = null
/**
* The name of the cluster parameter group.
*/
public var parameterGroupName: kotlin.String? = null
/**
* The list of tags for the cluster parameter group.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshift.model.ClusterParameterGroup) : this() {
this.description = x.description
this.parameterGroupFamily = x.parameterGroupFamily
this.parameterGroupName = x.parameterGroupName
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshift.model.ClusterParameterGroup = ClusterParameterGroup(this)
internal fun correctErrors(): Builder {
return this
}
}
}