commonMain.aws.sdk.kotlin.services.finspace.model.CreateKxScalingGroupRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finspace-jvm Show documentation
Show all versions of finspace-jvm Show documentation
The AWS SDK for Kotlin client for finspace
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.finspace.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateKxScalingGroupRequest private constructor(builder: Builder) {
/**
* The identifier of the availability zones.
*/
public val availabilityZoneId: kotlin.String? = builder.availabilityZoneId
/**
* A token that ensures idempotency. This token expires in 10 minutes.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* A unique identifier for the kdb environment, where you want to create the scaling group.
*/
public val environmentId: kotlin.String? = builder.environmentId
/**
* The memory and CPU capabilities of the scaling group host on which FinSpace Managed kdb clusters will be placed.
*
* You can add one of the following values:
* + `kx.sg.4xlarge` – The host type with a configuration of 108 GiB memory and 16 vCPUs.
* + `kx.sg.8xlarge` – The host type with a configuration of 216 GiB memory and 32 vCPUs.
* + `kx.sg.16xlarge` – The host type with a configuration of 432 GiB memory and 64 vCPUs.
* + `kx.sg.32xlarge` – The host type with a configuration of 864 GiB memory and 128 vCPUs.
* + `kx.sg1.16xlarge` – The host type with a configuration of 1949 GiB memory and 64 vCPUs.
* + `kx.sg1.24xlarge` – The host type with a configuration of 2948 GiB memory and 96 vCPUs.
*/
public val hostType: kotlin.String? = builder.hostType
/**
* A unique identifier for the kdb scaling group.
*/
public val scalingGroupName: kotlin.String? = builder.scalingGroupName
/**
* A list of key-value pairs to label the scaling group. You can add up to 50 tags to a scaling group.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspace.model.CreateKxScalingGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateKxScalingGroupRequest(")
append("availabilityZoneId=$availabilityZoneId,")
append("clientToken=$clientToken,")
append("environmentId=$environmentId,")
append("hostType=$hostType,")
append("scalingGroupName=$scalingGroupName,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = availabilityZoneId?.hashCode() ?: 0
result = 31 * result + (clientToken?.hashCode() ?: 0)
result = 31 * result + (environmentId?.hashCode() ?: 0)
result = 31 * result + (hostType?.hashCode() ?: 0)
result = 31 * result + (scalingGroupName?.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 CreateKxScalingGroupRequest
if (availabilityZoneId != other.availabilityZoneId) return false
if (clientToken != other.clientToken) return false
if (environmentId != other.environmentId) return false
if (hostType != other.hostType) return false
if (scalingGroupName != other.scalingGroupName) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspace.model.CreateKxScalingGroupRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The identifier of the availability zones.
*/
public var availabilityZoneId: kotlin.String? = null
/**
* A token that ensures idempotency. This token expires in 10 minutes.
*/
public var clientToken: kotlin.String? = null
/**
* A unique identifier for the kdb environment, where you want to create the scaling group.
*/
public var environmentId: kotlin.String? = null
/**
* The memory and CPU capabilities of the scaling group host on which FinSpace Managed kdb clusters will be placed.
*
* You can add one of the following values:
* + `kx.sg.4xlarge` – The host type with a configuration of 108 GiB memory and 16 vCPUs.
* + `kx.sg.8xlarge` – The host type with a configuration of 216 GiB memory and 32 vCPUs.
* + `kx.sg.16xlarge` – The host type with a configuration of 432 GiB memory and 64 vCPUs.
* + `kx.sg.32xlarge` – The host type with a configuration of 864 GiB memory and 128 vCPUs.
* + `kx.sg1.16xlarge` – The host type with a configuration of 1949 GiB memory and 64 vCPUs.
* + `kx.sg1.24xlarge` – The host type with a configuration of 2948 GiB memory and 96 vCPUs.
*/
public var hostType: kotlin.String? = null
/**
* A unique identifier for the kdb scaling group.
*/
public var scalingGroupName: kotlin.String? = null
/**
* A list of key-value pairs to label the scaling group. You can add up to 50 tags to a scaling group.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.finspace.model.CreateKxScalingGroupRequest) : this() {
this.availabilityZoneId = x.availabilityZoneId
this.clientToken = x.clientToken
this.environmentId = x.environmentId
this.hostType = x.hostType
this.scalingGroupName = x.scalingGroupName
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.finspace.model.CreateKxScalingGroupRequest = CreateKxScalingGroupRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy