commonMain.aws.sdk.kotlin.services.redshiftserverless.model.ConfigParameter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshiftserverless-jvm Show documentation
Show all versions of redshiftserverless-jvm Show documentation
The AWS SDK for Kotlin client for Redshift Serverless
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshiftserverless.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An array of key-value pairs to set for advanced control over Amazon Redshift Serverless.
*/
public class ConfigParameter private constructor(builder: Builder) {
/**
* The key of the parameter. The options are `auto_mv`, `datestyle`, `enable_case_sensitive_identifier`, `enable_user_activity_logging`, `query_group`, `search_path`, `require_ssl`, `use_fips_ssl`, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see [Query monitoring metrics for Amazon Redshift Serverless](https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless).
*/
public val parameterKey: kotlin.String? = builder.parameterKey
/**
* The value of the parameter to set.
*/
public val parameterValue: kotlin.String? = builder.parameterValue
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshiftserverless.model.ConfigParameter = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConfigParameter(")
append("parameterKey=$parameterKey,")
append("parameterValue=$parameterValue")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = parameterKey?.hashCode() ?: 0
result = 31 * result + (parameterValue?.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 ConfigParameter
if (parameterKey != other.parameterKey) return false
if (parameterValue != other.parameterValue) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshiftserverless.model.ConfigParameter = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The key of the parameter. The options are `auto_mv`, `datestyle`, `enable_case_sensitive_identifier`, `enable_user_activity_logging`, `query_group`, `search_path`, `require_ssl`, `use_fips_ssl`, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see [Query monitoring metrics for Amazon Redshift Serverless](https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless).
*/
public var parameterKey: kotlin.String? = null
/**
* The value of the parameter to set.
*/
public var parameterValue: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshiftserverless.model.ConfigParameter) : this() {
this.parameterKey = x.parameterKey
this.parameterValue = x.parameterValue
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshiftserverless.model.ConfigParameter = ConfigParameter(this)
internal fun correctErrors(): Builder {
return this
}
}
}