commonMain.aws.sdk.kotlin.services.redshift.model.ClusterParameterGroupStatus.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 the status of a parameter group.
*/
public class ClusterParameterGroupStatus private constructor(builder: Builder) {
/**
* The list of parameter statuses.
*
* For more information about parameters and parameter groups, go to [Amazon Redshift Parameter Groups](https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) in the *Amazon Redshift Cluster Management Guide*.
*/
public val clusterParameterStatusList: List? = builder.clusterParameterStatusList
/**
* The status of parameter updates.
*/
public val parameterApplyStatus: kotlin.String? = builder.parameterApplyStatus
/**
* The name of the cluster parameter group.
*/
public val parameterGroupName: kotlin.String? = builder.parameterGroupName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshift.model.ClusterParameterGroupStatus = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ClusterParameterGroupStatus(")
append("clusterParameterStatusList=$clusterParameterStatusList,")
append("parameterApplyStatus=$parameterApplyStatus,")
append("parameterGroupName=$parameterGroupName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clusterParameterStatusList?.hashCode() ?: 0
result = 31 * result + (parameterApplyStatus?.hashCode() ?: 0)
result = 31 * result + (parameterGroupName?.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 ClusterParameterGroupStatus
if (clusterParameterStatusList != other.clusterParameterStatusList) return false
if (parameterApplyStatus != other.parameterApplyStatus) return false
if (parameterGroupName != other.parameterGroupName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshift.model.ClusterParameterGroupStatus = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The list of parameter statuses.
*
* For more information about parameters and parameter groups, go to [Amazon Redshift Parameter Groups](https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html) in the *Amazon Redshift Cluster Management Guide*.
*/
public var clusterParameterStatusList: List? = null
/**
* The status of parameter updates.
*/
public var parameterApplyStatus: kotlin.String? = null
/**
* The name of the cluster parameter group.
*/
public var parameterGroupName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshift.model.ClusterParameterGroupStatus) : this() {
this.clusterParameterStatusList = x.clusterParameterStatusList
this.parameterApplyStatus = x.parameterApplyStatus
this.parameterGroupName = x.parameterGroupName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshift.model.ClusterParameterGroupStatus = ClusterParameterGroupStatus(this)
internal fun correctErrors(): Builder {
return this
}
}
}