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

commonMain.aws.sdk.kotlin.services.redshiftserverless.model.CreateWorkgroupRequest.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 CreateWorkgroupRequest private constructor(builder: Builder) {
    /**
     * The base data warehouse capacity of the workgroup 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 instead of over the internet.
     */
    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 name of the namespace to associate with the workgroup.
     */
    public val namespaceName: kotlin.String? = builder.namespaceName
    /**
     * 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 accessed 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
    /**
     * A array of tag instances.
     */
    public val tags: List? = builder.tags
    /**
     * The name of the created workgroup.
     */
    public val workgroupName: kotlin.String? = builder.workgroupName

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

    override fun toString(): kotlin.String = buildString {
        append("CreateWorkgroupRequest(")
        append("baseCapacity=$baseCapacity,")
        append("configParameters=$configParameters,")
        append("enhancedVpcRouting=$enhancedVpcRouting,")
        append("ipAddressType=$ipAddressType,")
        append("maxCapacity=$maxCapacity,")
        append("namespaceName=$namespaceName,")
        append("port=$port,")
        append("pricePerformanceTarget=$pricePerformanceTarget,")
        append("publiclyAccessible=$publiclyAccessible,")
        append("securityGroupIds=$securityGroupIds,")
        append("subnetIds=$subnetIds,")
        append("tags=$tags,")
        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 + (namespaceName?.hashCode() ?: 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 + (tags?.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 CreateWorkgroupRequest

        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 (namespaceName != other.namespaceName) 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 (tags != other.tags) return false
        if (workgroupName != other.workgroupName) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The base data warehouse capacity of the workgroup 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 instead of over the internet.
         */
        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 name of the namespace to associate with the workgroup.
         */
        public var namespaceName: kotlin.String? = 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 accessed 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
        /**
         * A array of tag instances.
         */
        public var tags: List? = null
        /**
         * The name of the created workgroup.
         */
        public var workgroupName: kotlin.String? = null

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

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.redshiftserverless.model.CreateWorkgroupRequest = CreateWorkgroupRequest(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