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

commonMain.aws.sdk.kotlin.services.finspace.model.KxScalingGroup.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.finspace.model

import aws.smithy.kotlin.runtime.time.Instant

/**
 * A structure for storing metadata of scaling group.
 */
public class KxScalingGroup private constructor(builder: Builder) {
    /**
     * The identifier of the availability zones.
     */
    public val availabilityZoneId: kotlin.String? = builder.availabilityZoneId
    /**
     * The list of clusters currently active in a given scaling group.
     */
    public val clusters: List? = builder.clusters
    /**
     * The timestamp at which the scaling group was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
     */
    public val createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTimestamp
    /**
     * The memory and CPU capabilities of the scaling group host on which FinSpace Managed kdb clusters will be placed.
     */
    public val hostType: kotlin.String? = builder.hostType
    /**
     * The last time that the scaling group was updated in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
     */
    public val lastModifiedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedTimestamp
    /**
     * A unique identifier for the kdb scaling group.
     */
    public val scalingGroupName: kotlin.String? = builder.scalingGroupName
    /**
     * The status of scaling groups.
     */
    public val status: aws.sdk.kotlin.services.finspace.model.KxScalingGroupStatus? = builder.status
    /**
     * The error message when a failed state occurs.
     */
    public val statusReason: kotlin.String? = builder.statusReason

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

    override fun toString(): kotlin.String = buildString {
        append("KxScalingGroup(")
        append("availabilityZoneId=$availabilityZoneId,")
        append("clusters=$clusters,")
        append("createdTimestamp=$createdTimestamp,")
        append("hostType=$hostType,")
        append("lastModifiedTimestamp=$lastModifiedTimestamp,")
        append("scalingGroupName=$scalingGroupName,")
        append("status=$status,")
        append("statusReason=$statusReason")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = availabilityZoneId?.hashCode() ?: 0
        result = 31 * result + (clusters?.hashCode() ?: 0)
        result = 31 * result + (createdTimestamp?.hashCode() ?: 0)
        result = 31 * result + (hostType?.hashCode() ?: 0)
        result = 31 * result + (lastModifiedTimestamp?.hashCode() ?: 0)
        result = 31 * result + (scalingGroupName?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (statusReason?.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 KxScalingGroup

        if (availabilityZoneId != other.availabilityZoneId) return false
        if (clusters != other.clusters) return false
        if (createdTimestamp != other.createdTimestamp) return false
        if (hostType != other.hostType) return false
        if (lastModifiedTimestamp != other.lastModifiedTimestamp) return false
        if (scalingGroupName != other.scalingGroupName) return false
        if (status != other.status) return false
        if (statusReason != other.statusReason) return false

        return true
    }

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

    public class Builder {
        /**
         * The identifier of the availability zones.
         */
        public var availabilityZoneId: kotlin.String? = null
        /**
         * The list of clusters currently active in a given scaling group.
         */
        public var clusters: List? = null
        /**
         * The timestamp at which the scaling group was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
         */
        public var createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The memory and CPU capabilities of the scaling group host on which FinSpace Managed kdb clusters will be placed.
         */
        public var hostType: kotlin.String? = null
        /**
         * The last time that the scaling group was updated in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
         */
        public var lastModifiedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A unique identifier for the kdb scaling group.
         */
        public var scalingGroupName: kotlin.String? = null
        /**
         * The status of scaling groups.
         */
        public var status: aws.sdk.kotlin.services.finspace.model.KxScalingGroupStatus? = null
        /**
         * The error message when a failed state occurs.
         */
        public var statusReason: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.finspace.model.KxScalingGroup) : this() {
            this.availabilityZoneId = x.availabilityZoneId
            this.clusters = x.clusters
            this.createdTimestamp = x.createdTimestamp
            this.hostType = x.hostType
            this.lastModifiedTimestamp = x.lastModifiedTimestamp
            this.scalingGroupName = x.scalingGroupName
            this.status = x.status
            this.statusReason = x.statusReason
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy