All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.redshiftserverless.model.UpdateWorkgroupRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.redshiftserverless.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateWorkgroupRequest private constructor(builder: Builder) {
    /**
     * The new base data warehouse capacity in Redshift Processing Units (RPUs).
     */
    public val baseCapacity: kotlin.Int? = builder.baseCapacity
    /**
     * An array of parameters to set for advanced control over a database. 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 configParameters: List? = builder.configParameters
    /**
     * The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.
     */
    public val enhancedVpcRouting: kotlin.Boolean? = builder.enhancedVpcRouting
    /**
     * The IP address type that the workgroup supports. Possible values are `ipv4` and `dualstack`.
     */
    public val ipAddressType: kotlin.String? = builder.ipAddressType
    /**
     * The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries. The max capacity is specified in RPUs.
     */
    public val maxCapacity: kotlin.Int? = builder.maxCapacity
    /**
     * The custom port to use when connecting to a workgroup. Valid port ranges are 5431-5455 and 8191-8215. The default is 5439.
     */
    public val port: kotlin.Int? = builder.port
    /**
     * An object that represents the price performance target settings for the workgroup.
     */
    public val pricePerformanceTarget: aws.sdk.kotlin.services.redshiftserverless.model.PerformanceTarget? = builder.pricePerformanceTarget
    /**
     * A value that specifies whether the workgroup can be accessible from a public network.
     */
    public val publiclyAccessible: kotlin.Boolean? = builder.publiclyAccessible
    /**
     * An array of security group IDs to associate with the workgroup.
     */
    public val securityGroupIds: List? = builder.securityGroupIds
    /**
     * An array of VPC subnet IDs to associate with the workgroup.
     */
    public val subnetIds: List? = builder.subnetIds
    /**
     * The name of the workgroup to update. You can't update the name of a workgroup once it is created.
     */
    public val workgroupName: kotlin.String? = builder.workgroupName

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshiftserverless.model.UpdateWorkgroupRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("UpdateWorkgroupRequest(")
        append("baseCapacity=$baseCapacity,")
        append("configParameters=$configParameters,")
        append("enhancedVpcRouting=$enhancedVpcRouting,")
        append("ipAddressType=$ipAddressType,")
        append("maxCapacity=$maxCapacity,")
        append("port=$port,")
        append("pricePerformanceTarget=$pricePerformanceTarget,")
        append("publiclyAccessible=$publiclyAccessible,")
        append("securityGroupIds=$securityGroupIds,")
        append("subnetIds=$subnetIds,")
        append("workgroupName=$workgroupName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = baseCapacity ?: 0
        result = 31 * result + (configParameters?.hashCode() ?: 0)
        result = 31 * result + (enhancedVpcRouting?.hashCode() ?: 0)
        result = 31 * result + (ipAddressType?.hashCode() ?: 0)
        result = 31 * result + (maxCapacity ?: 0)
        result = 31 * result + (port ?: 0)
        result = 31 * result + (pricePerformanceTarget?.hashCode() ?: 0)
        result = 31 * result + (publiclyAccessible?.hashCode() ?: 0)
        result = 31 * result + (securityGroupIds?.hashCode() ?: 0)
        result = 31 * result + (subnetIds?.hashCode() ?: 0)
        result = 31 * result + (workgroupName?.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 UpdateWorkgroupRequest

        if (baseCapacity != other.baseCapacity) return false
        if (configParameters != other.configParameters) return false
        if (enhancedVpcRouting != other.enhancedVpcRouting) return false
        if (ipAddressType != other.ipAddressType) return false
        if (maxCapacity != other.maxCapacity) return false
        if (port != other.port) return false
        if (pricePerformanceTarget != other.pricePerformanceTarget) return false
        if (publiclyAccessible != other.publiclyAccessible) return false
        if (securityGroupIds != other.securityGroupIds) return false
        if (subnetIds != other.subnetIds) return false
        if (workgroupName != other.workgroupName) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshiftserverless.model.UpdateWorkgroupRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The new base data warehouse capacity in Redshift Processing Units (RPUs).
         */
        public var baseCapacity: kotlin.Int? = null
        /**
         * An array of parameters to set for advanced control over a database. 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 configParameters: List? = null
        /**
         * The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.
         */
        public var enhancedVpcRouting: kotlin.Boolean? = null
        /**
         * The IP address type that the workgroup supports. Possible values are `ipv4` and `dualstack`.
         */
        public var ipAddressType: kotlin.String? = null
        /**
         * The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries. The max capacity is specified in RPUs.
         */
        public var maxCapacity: kotlin.Int? = null
        /**
         * The custom port to use when connecting to a workgroup. Valid port ranges are 5431-5455 and 8191-8215. The default is 5439.
         */
        public var port: kotlin.Int? = null
        /**
         * An object that represents the price performance target settings for the workgroup.
         */
        public var pricePerformanceTarget: aws.sdk.kotlin.services.redshiftserverless.model.PerformanceTarget? = null
        /**
         * A value that specifies whether the workgroup can be accessible from a public network.
         */
        public var publiclyAccessible: kotlin.Boolean? = null
        /**
         * An array of security group IDs to associate with the workgroup.
         */
        public var securityGroupIds: List? = null
        /**
         * An array of VPC subnet IDs to associate with the workgroup.
         */
        public var subnetIds: List? = null
        /**
         * The name of the workgroup to update. You can't update the name of a workgroup once it is created.
         */
        public var workgroupName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.redshiftserverless.model.UpdateWorkgroupRequest) : this() {
            this.baseCapacity = x.baseCapacity
            this.configParameters = x.configParameters
            this.enhancedVpcRouting = x.enhancedVpcRouting
            this.ipAddressType = x.ipAddressType
            this.maxCapacity = x.maxCapacity
            this.port = x.port
            this.pricePerformanceTarget = x.pricePerformanceTarget
            this.publiclyAccessible = x.publiclyAccessible
            this.securityGroupIds = x.securityGroupIds
            this.subnetIds = x.subnetIds
            this.workgroupName = x.workgroupName
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.redshiftserverless.model.UpdateWorkgroupRequest = UpdateWorkgroupRequest(this)

        /**
         * construct an [aws.sdk.kotlin.services.redshiftserverless.model.PerformanceTarget] inside the given [block]
         */
        public fun pricePerformanceTarget(block: aws.sdk.kotlin.services.redshiftserverless.model.PerformanceTarget.Builder.() -> kotlin.Unit) {
            this.pricePerformanceTarget = aws.sdk.kotlin.services.redshiftserverless.model.PerformanceTarget.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy